| Line 44... |
Line 44... |
| 44 |
* @author mandeep
|
44 |
* @author mandeep
|
| 45 |
*/
|
45 |
*/
|
| 46 |
@Service
|
46 |
@Service
|
| 47 |
public class CRMServiceHandler implements Iface {
|
47 |
public class CRMServiceHandler implements Iface {
|
| 48 |
public static final long ADMIN_AGENT_ID = 1;
|
48 |
public static final long ADMIN_AGENT_ID = 1;
|
| - |
|
49 |
public static final long OUTBOUND_DEFAULT_ASSIGNEE_ID = 12;
|
| 49 |
ApplicationContext context = new ClassPathXmlApplicationContext(
|
50 |
ApplicationContext context = new ClassPathXmlApplicationContext(
|
| 50 |
"context.xml");
|
51 |
"context.xml");
|
| 51 |
TicketHandler ticketHandler = context.getBean(TicketHandler.class);
|
52 |
TicketHandler ticketHandler = context.getBean(TicketHandler.class);
|
| 52 |
ActivityHandler activityHandler = context.getBean(ActivityHandler.class);
|
53 |
ActivityHandler activityHandler = context.getBean(ActivityHandler.class);
|
| 53 |
AgentHandler agentHandler = context.getBean(AgentHandler.class);
|
54 |
AgentHandler agentHandler = context.getBean(AgentHandler.class);
|
| Line 221... |
Line 222... |
| 221 |
ticket.setCreatorId(ADMIN_AGENT_ID);
|
222 |
ticket.setCreatorId(ADMIN_AGENT_ID);
|
| 222 |
ticket.setCustomerId(transaction.getCustomer_id());
|
223 |
ticket.setCustomerId(transaction.getCustomer_id());
|
| 223 |
ticket.setDescription("Requires COD verification");
|
224 |
ticket.setDescription("Requires COD verification");
|
| 224 |
ticket.setPriority(TicketPriority.HIGH);
|
225 |
ticket.setPriority(TicketPriority.HIGH);
|
| 225 |
ticket.setStatus(TicketStatus.OPEN);
|
226 |
ticket.setStatus(TicketStatus.OPEN);
|
| 226 |
ticket.setAssigneeId(ADMIN_AGENT_ID);
|
227 |
ticket.setAssigneeId(OUTBOUND_DEFAULT_ASSIGNEE_ID);
|
| 227 |
|
228 |
|
| 228 |
Activity activity = new Activity();
|
229 |
Activity activity = new Activity();
|
| 229 |
activity.setCreatorId(ticket.getCreatorId());
|
230 |
activity.setCreatorId(ticket.getCreatorId());
|
| 230 |
activity.setCustomerId(ticket.getCustomerId());
|
231 |
activity.setCustomerId(ticket.getCustomerId());
|
| 231 |
activity.setDescription("Creating ticket");
|
232 |
activity.setDescription("Creating ticket");
|
| Line 281... |
Line 282... |
| 281 |
ticket.setCreatorId(ADMIN_AGENT_ID);
|
282 |
ticket.setCreatorId(ADMIN_AGENT_ID);
|
| 282 |
ticket.setCustomerId(customerId);
|
283 |
ticket.setCustomerId(customerId);
|
| 283 |
ticket.setDescription("Requires payment failures' follow-up!");
|
284 |
ticket.setDescription("Requires payment failures' follow-up!");
|
| 284 |
ticket.setPriority(TicketPriority.HIGH);
|
285 |
ticket.setPriority(TicketPriority.HIGH);
|
| 285 |
ticket.setStatus(TicketStatus.OPEN);
|
286 |
ticket.setStatus(TicketStatus.OPEN);
|
| 286 |
ticket.setAssigneeId(ADMIN_AGENT_ID);
|
287 |
ticket.setAssigneeId(OUTBOUND_DEFAULT_ASSIGNEE_ID);
|
| 287 |
|
288 |
|
| 288 |
Activity activity = new Activity();
|
289 |
Activity activity = new Activity();
|
| 289 |
activity.setCreatorId(ticket.getCreatorId());
|
290 |
activity.setCreatorId(ticket.getCreatorId());
|
| 290 |
activity.setCustomerId(ticket.getCustomerId());
|
291 |
activity.setCustomerId(ticket.getCustomerId());
|
| 291 |
activity.setDescription("Creating ticket");
|
292 |
activity.setDescription("Creating ticket");
|