Subversion Repositories SmartDukaan

Rev

Rev 27007 | Rev 27124 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27007 Rev 27077
Line 24... Line 24...
24
import com.smartdukaan.cron.migrations.RunOnceTasks;
24
import com.smartdukaan.cron.migrations.RunOnceTasks;
25
import com.smartdukaan.cron.scheduled.Reconciliation;
25
import com.smartdukaan.cron.scheduled.Reconciliation;
26
import com.smartdukaan.cron.scheduled.ScheduledSkeleton;
26
import com.smartdukaan.cron.scheduled.ScheduledSkeleton;
27
import com.smartdukaan.cron.scheduled.ScheduledTasks;
27
import com.smartdukaan.cron.scheduled.ScheduledTasks;
28
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
28
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
-
 
29
import com.spice.profitmandi.common.model.ProfitMandiConstants;
29
import com.spice.profitmandi.common.solr.SolrService;
30
import com.spice.profitmandi.common.solr.SolrService;
-
 
31
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
-
 
32
import com.spice.profitmandi.dao.repository.cs.CsService;
30
import com.spice.profitmandi.dao.repository.dtr.InsurancePolicyRepository;
33
import com.spice.profitmandi.dao.repository.dtr.InsurancePolicyRepository;
31
import com.spice.profitmandi.service.integrations.toffee.ToffeeService;
34
import com.spice.profitmandi.service.integrations.toffee.ToffeeService;
32
 
35
 
33
@SpringBootApplication
36
@SpringBootApplication
34
@EnableCaching
37
@EnableCaching
Line 42... Line 45...
42
	@Autowired
45
	@Autowired
43
	LeadSyncRunner leadSyncRunner;
46
	LeadSyncRunner leadSyncRunner;
44
	
47
	
45
	@Autowired
48
	@Autowired
46
	private ScheduledSkeleton scheduledSkeleton;
49
	private ScheduledSkeleton scheduledSkeleton;
-
 
50
	
-
 
51
	@Autowired
-
 
52
	private CsService csService;
47
 
53
 
48
	public static void main(String[] args) throws Throwable {
54
	public static void main(String[] args) throws Throwable {
49
		new SpringApplicationBuilder(Application.class).web(WebApplicationType.NONE).run(args);
55
		new SpringApplicationBuilder(Application.class).web(WebApplicationType.NONE).run(args);
50
	}
56
	}
51
 
57
 
Line 306... Line 312...
306
				runOnceTasks.fixScheme();
312
				runOnceTasks.fixScheme();
307
			}
313
			}
308
			if(args.containsOption("syncLeads")) {
314
			if(args.containsOption("syncLeads")) {
309
				leadSyncRunner.syncLeads();
315
				leadSyncRunner.syncLeads();
310
			}
316
			}
-
 
317
			if(args.containsOption("testCs")) {
-
 
318
				int category = Integer.parseInt(args.getOptionValues("category").get(0));
-
 
319
				EscalationType escalationType = EscalationType.valueOf(args.getOptionValues("escalation").get(0));
-
 
320
				int fofoId = Integer.parseInt(args.getOptionValues("fofoid").get(0));
-
 
321
				csService.getAuthUserId(category, escalationType, fofoId);
-
 
322
			}
311
			System.exit(0);
323
			System.exit(0);
312
		}
324
		}
313
	}
325
	}
314
 
326
 
315
}
327
}
316
328