| Line 4... |
Line 4... |
| 4 |
import in.shop2020.crm.Agent;
|
4 |
import in.shop2020.crm.Agent;
|
| 5 |
import in.shop2020.crm.SearchFilter;
|
5 |
import in.shop2020.crm.SearchFilter;
|
| 6 |
import in.shop2020.crm.Ticket;
|
6 |
import in.shop2020.crm.Ticket;
|
| 7 |
import in.shop2020.crm.TicketCategory;
|
7 |
import in.shop2020.crm.TicketCategory;
|
| 8 |
import in.shop2020.crm.TicketStatus;
|
8 |
import in.shop2020.crm.TicketStatus;
|
| 9 |
|
- |
|
| 10 |
import in.shop2020.model.v1.order.Order;
|
9 |
import in.shop2020.model.v1.order.Order;
|
| 11 |
import in.shop2020.model.v1.order.OrderStatus;
|
10 |
import in.shop2020.model.v1.order.OrderStatus;
|
| 12 |
import in.shop2020.model.v1.order.TransactionServiceException;
|
11 |
import in.shop2020.model.v1.order.TransactionServiceException;
|
| 13 |
import in.shop2020.model.v1.user.Cart;
|
12 |
import in.shop2020.model.v1.user.Cart;
|
| 14 |
import in.shop2020.model.v1.user.Line;
|
13 |
import in.shop2020.model.v1.user.Line;
|
| 15 |
import in.shop2020.model.v1.user.User;
|
14 |
import in.shop2020.model.v1.user.User;
|
| 16 |
import in.shop2020.model.v1.user.UserCommunication;
|
15 |
import in.shop2020.model.v1.user.UserCommunication;
|
| 17 |
import in.shop2020.model.v1.user.UserCommunicationException;
|
16 |
import in.shop2020.model.v1.user.UserCommunicationException;
|
| 18 |
import in.shop2020.model.v1.user.UserContextException;
|
17 |
import in.shop2020.model.v1.user.UserContextException;
|
| 19 |
import in.shop2020.model.v1.user.UserState;
|
18 |
import in.shop2020.model.v1.user.UserState;
|
| 20 |
|
- |
|
| 21 |
import in.shop2020.serving.auth.CRMAuthorizingRealm;
|
19 |
import in.shop2020.serving.auth.CRMAuthorizingRealm;
|
| 22 |
import in.shop2020.thrift.clients.CRMClient;
|
20 |
import in.shop2020.thrift.clients.CRMClient;
|
| 23 |
import in.shop2020.thrift.clients.TransactionClient;
|
21 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 24 |
import in.shop2020.thrift.clients.UserClient;
|
22 |
import in.shop2020.thrift.clients.UserClient;
|
| 25 |
import in.shop2020.util.CRMConstants;
|
23 |
import in.shop2020.util.CRMConstants;
|
| 26 |
|
24 |
|
| - |
|
25 |
import java.util.ArrayList;
|
| 27 |
import java.util.Calendar;
|
26 |
import java.util.Calendar;
|
| 28 |
import java.util.Collections;
|
27 |
import java.util.Collections;
|
| 29 |
import java.util.Date;
|
28 |
import java.util.Date;
|
| 30 |
import java.util.List;
|
29 |
import java.util.List;
|
| 31 |
|
30 |
|
| Line 155... |
Line 154... |
| 155 |
}
|
154 |
}
|
| 156 |
}
|
155 |
}
|
| 157 |
|
156 |
|
| 158 |
private void loadTicketCounts() throws TException {
|
157 |
private void loadTicketCounts() throws TException {
|
| 159 |
SearchFilter searchFilter = new SearchFilter();
|
158 |
SearchFilter searchFilter = new SearchFilter();
|
| - |
|
159 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
| - |
|
160 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
| - |
|
161 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
| 160 |
searchFilter.setTicketAssigneeIds(Collections
|
162 |
searchFilter.setTicketAssigneeIds(Collections
|
| 161 |
.singletonList(CRMAuthorizingRealm.getAgent(currentAgentEmailId).getId()));
|
163 |
.singletonList(CRMAuthorizingRealm.getAgent(currentAgentEmailId).getId()));
|
| 162 |
|
164 |
|
| 163 |
crmServiceClient = new CRMClient().getClient();
|
165 |
crmServiceClient = new CRMClient().getClient();
|
| 164 |
agentOpenTicketCount = crmServiceClient.getTickets(searchFilter).size();
|
166 |
agentOpenTicketCount = crmServiceClient.getTickets(searchFilter).size();
|
| 165 |
unassignedTicketCount = crmServiceClient.getUnassignedTickets().size();
|
167 |
unassignedTicketCount = crmServiceClient.getUnassignedTickets().size();
|
| 166 |
|
168 |
|
| 167 |
searchFilter = new SearchFilter();
|
169 |
searchFilter = new SearchFilter();
|
| 168 |
searchFilter.setTicketCategory(TicketCategory.COD_VERIFICATION);
|
170 |
searchFilter.setTicketCategory(TicketCategory.COD_VERIFICATION);
|
| - |
|
171 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
| 169 |
searchFilter.setTicketStatus(TicketStatus.OPEN);
|
172 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
| - |
|
173 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
| - |
|
174 |
|
| 170 |
crmServiceClient = new CRMClient().getClient();
|
175 |
crmServiceClient = new CRMClient().getClient();
|
| 171 |
pendingCodVerificationCount = crmServiceClient.getTickets(searchFilter).size();
|
176 |
pendingCodVerificationCount = crmServiceClient.getTickets(searchFilter).size();
|
| 172 |
}
|
177 |
}
|
| 173 |
|
178 |
|
| 174 |
private void loadUserCommunicationDetails()
|
179 |
private void loadUserCommunicationDetails()
|