Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public CronTriggerFactoryBean processMQTriggerForEverwellDataSync() {
public JobDetailFactoryBean processMQJobForCtiDataSync() {
JobDetailFactoryBean jobDetailFactory;
jobDetailFactory = new JobDetailFactoryBean();
jobDetailFactory.setJobClass(ScheduleForCzentrixCall.class);
jobDetailFactory.setJobClass(ScheduleForCallCentre.class);
jobDetailFactory.setGroup(quartzJobGroup);
return jobDetailFactory;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.iemr.common.service.ctiCall.CzentrixDataSync;
import com.iemr.common.service.ctiCall.CallCentreDataSync;


@Service
@Transactional
public class ScheduleForCzentrixCall implements Job {
public class ScheduleForCallCentre implements Job {
private final Logger logger = LoggerFactory.getLogger(this.getClass().getName());

@Autowired
private CzentrixDataSync czentrixDataSync;
private CallCentreDataSync callCentreDataSync;

@Override
public void execute(JobExecutionContext arg0) throws JobExecutionException
{
logger.info("Started job for sync " + arg0.getClass().getName());
czentrixDataSync.ctiDataSync();
callCentreDataSync.ctiDataSync();
logger.info("Completed job for sync " + arg0.getClass().getName());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class NationalHealthMissionDashboardController {
private NHM_DashboardService nHM_DashboardService;

@CrossOrigin()
@ApiOperation(value = "Push abandoned calls from czentrix")
@ApiOperation(value = "Push abandoned calls from call centre")
@RequestMapping(value = "/push/abandon_calls", method = RequestMethod.POST, headers = "Authorization")
public String pushAbandonCallsFromC_Zentrix(@RequestBody AbandonCallSummary abandonCallSummary) {
OutputResponse output = new OutputResponse();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
package com.iemr.common.service.ctiCall;

public interface CzentrixDataSync {
public interface CallCentreDataSync {
public void ctiDataSync();
String callUrl(String urlRequest);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

@Service
@PropertySource("classpath:application.properties")
public class CzentrixDataSyncImpl implements CzentrixDataSync {
public class CallCentreDataSyncImpl implements CallCentreDataSync {

private Logger logger = LoggerFactory.getLogger(this.getClass().getSimpleName());

Expand All @@ -70,7 +70,7 @@ public class CzentrixDataSyncImpl implements CzentrixDataSync {
private CTIService ctiService;
private static String ctiLoggerURL = ConfigProperties.getPropertyByName("cti-logger_base_url");

public CzentrixDataSyncImpl() {
public CallCentreDataSyncImpl() {
if (httpUtils == null) {
httpUtils = new HttpUtils();
}
Expand Down