| Line 14... |
Line 14... |
| 14 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
14 |
import com.spice.profitmandi.dao.repository.cs.CsService;
|
| 15 |
import com.spice.profitmandi.dao.repository.fofo.FofoOrderItemRepository;
|
15 |
import com.spice.profitmandi.dao.repository.fofo.FofoOrderItemRepository;
|
| 16 |
import com.spice.profitmandi.dao.service.shopify.ShopifyProductSyncService;
|
16 |
import com.spice.profitmandi.dao.service.shopify.ShopifyProductSyncService;
|
| 17 |
import com.spice.profitmandi.dao.util.ContentPojoPopulator;
|
17 |
import com.spice.profitmandi.dao.util.ContentPojoPopulator;
|
| 18 |
import com.spice.profitmandi.service.integrations.samsung.upgradeoffer.UpgradeOfferService;
|
18 |
import com.spice.profitmandi.service.integrations.samsung.upgradeoffer.UpgradeOfferService;
|
| - |
|
19 |
import com.spice.profitmandi.service.mail.MailOutboxService;
|
| 19 |
import org.apache.logging.log4j.LogManager;
|
20 |
import org.apache.logging.log4j.LogManager;
|
| 20 |
import org.apache.logging.log4j.Logger;
|
21 |
import org.apache.logging.log4j.Logger;
|
| 21 |
import org.apache.velocity.app.VelocityEngine;
|
22 |
import org.apache.velocity.app.VelocityEngine;
|
| 22 |
import org.apache.velocity.exception.VelocityException;
|
23 |
import org.apache.velocity.exception.VelocityException;
|
| 23 |
import org.springframework.beans.factory.annotation.Autowired;
|
24 |
import org.springframework.beans.factory.annotation.Autowired;
|
| Line 234... |
Line 235... |
| 234 |
ShopifyProductSyncService shopifyProductSyncService;
|
235 |
ShopifyProductSyncService shopifyProductSyncService;
|
| 235 |
|
236 |
|
| 236 |
@Autowired
|
237 |
@Autowired
|
| 237 |
KnowlarityCallMonitorScheduler knowlarityCallMonitorScheduler;
|
238 |
KnowlarityCallMonitorScheduler knowlarityCallMonitorScheduler;
|
| 238 |
|
239 |
|
| - |
|
240 |
@Autowired
|
| - |
|
241 |
MailOutboxService mailOutboxService;
|
| - |
|
242 |
|
| 239 |
@Override
|
243 |
@Override
|
| 240 |
public void run(ApplicationArguments args) throws Exception {
|
244 |
public void run(ApplicationArguments args) throws Exception {
|
| 241 |
//scheduledTasks.test();
|
245 |
//scheduledTasks.test();
|
| 242 |
//System.exit();
|
246 |
//System.exit();
|
| 243 |
LOGGER.info("Called run method");
|
247 |
LOGGER.info("Called run method");
|
| Line 387... |
Line 391... |
| 387 |
if (args.containsOption("sendNotification")) {
|
391 |
if (args.containsOption("sendNotification")) {
|
| 388 |
scheduledTasks.sendNotification();
|
392 |
scheduledTasks.sendNotification();
|
| 389 |
System.exit(0);
|
393 |
System.exit(0);
|
| 390 |
}
|
394 |
}
|
| 391 |
|
395 |
|
| - |
|
396 |
if (args.containsOption("processPendingMails")) {
|
| - |
|
397 |
System.out.println("Processing pending mails...");
|
| - |
|
398 |
mailOutboxService.processPendingMails();
|
| - |
|
399 |
System.exit(0);
|
| - |
|
400 |
}
|
| - |
|
401 |
|
| 392 |
if (args.containsOption("ticketClosed")) {
|
402 |
if (args.containsOption("ticketClosed")) {
|
| 393 |
// Redirected to TicketRelatedScheduledTask which handles auto-close as part of escalateTicket
|
403 |
// Redirected to TicketRelatedScheduledTask which handles auto-close as part of escalateTicket
|
| 394 |
ticketRelatedScheduledTask.escalateTicket();
|
404 |
ticketRelatedScheduledTask.escalateTicket();
|
| 395 |
System.exit(0);
|
405 |
System.exit(0);
|
| 396 |
}
|
406 |
}
|