| Line 13... |
Line 13... |
| 13 |
import java.util.List;
|
13 |
import java.util.List;
|
| 14 |
import java.util.Map;
|
14 |
import java.util.Map;
|
| 15 |
|
15 |
|
| 16 |
/**
|
16 |
/**
|
| 17 |
* @author mandeep
|
17 |
* @author mandeep
|
| 18 |
*
|
18 |
*
|
| 19 |
* Class containing constants used across CRM
|
19 |
* Class containing constants used across CRM
|
| 20 |
*/
|
20 |
*/
|
| 21 |
public class CRMConstants {
|
21 |
public class CRMConstants {
|
| 22 |
public static final String ATTACHMENTS_ARCHIVE_DIR = "/var/crm/archive/";
|
22 |
public static final String ATTACHMENTS_ARCHIVE_DIR = "/var/crm/archive/";
|
| 23 |
public static final String CRM_EMAIL_SENDOR = "Saholic <help@saholic.com>";
|
23 |
public static final String CRM_EMAIL_SENDOR = "Saholic <help@saholic.com>";
|
| 24 |
public static final String PROFIT_MANDI_EMAIL_SENDER = "ProfitMandi <help@profitmandi.com>";
|
24 |
public static final String PROFIT_MANDI_EMAIL_SENDER = "ProfitMandi <help@profitmandi.com>";
|
| 25 |
public static final String CRM_EMAIL_TYPE = "CRMInfo";
|
25 |
public static final String CRM_EMAIL_TYPE = "CRMInfo";
|
| 26 |
public static final String PROFIT_MANDI_EMAIL_TYPE = "ProfitMandiInfo";
|
26 |
public static final String PROFIT_MANDI_EMAIL_TYPE = "ProfitMandiInfo";
|
| 27 |
public static final String CRM_SUBJECT_PREFIX_FOR_TICKET_ID = "Saholic#";
|
27 |
public static final String CRM_SUBJECT_PREFIX_FOR_TICKET_ID = "Saholic#";
|
| 28 |
public static final String PROFIT_MANDI_SUBJECT_PREFIX_FOR_TICKET_ID = "ProfitMandi#";
|
28 |
public static final String PROFIT_MANDI_SUBJECT_PREFIX_FOR_TICKET_ID = "ProfitMandi#";
|
| 29 |
public static final long ADMIN_AGENT_ID = 1;
|
29 |
public static final long ADMIN_AGENT_ID = 1;
|
| 30 |
public static final int DESCRIPTION_MAX_WIDTH = 8000;
|
30 |
public static final int DESCRIPTION_MAX_WIDTH = 8000;
|
| 31 |
public static final String ADWORDS_EMAIL = "adwords@shop2020.in";
|
31 |
public static final String ADWORDS_EMAIL = "adwords@shop2020.in";
|
| 32 |
public static final String ADWORDS_PASSWORD = "adwords_shop2020";
|
32 |
public static final String ADWORDS_PASSWORD = "adwords_shop2020";
|
| 33 |
|
33 |
|
| 34 |
public static final List<OrderStatus> failedStatusList = Arrays
|
34 |
|
| 35 |
.asList(new OrderStatus[] { OrderStatus.RTO_RESHIPPED,
|
35 |
public static final List<OrderStatus> failedStatusList = Arrays.asList(new OrderStatus[] {
|
| 36 |
OrderStatus.PAYMENT_FAILED, OrderStatus.RTO_REFUNDED,
|
36 |
OrderStatus.RTO_RESHIPPED,
|
| 37 |
OrderStatus.DOA_INVALID_REFUNDED,
|
37 |
OrderStatus.PAYMENT_FAILED,
|
| 38 |
OrderStatus.DOA_INVALID_RESHIPPED,
|
38 |
OrderStatus.RTO_REFUNDED,
|
| 39 |
OrderStatus.DOA_VALID_REFUNDED,
|
39 |
OrderStatus.DOA_INVALID_REFUNDED,
|
| 40 |
OrderStatus.DOA_VALID_RESHIPPED,
|
40 |
OrderStatus.DOA_INVALID_RESHIPPED,
|
| 41 |
OrderStatus.CANCELLED_DUE_TO_LOW_INVENTORY,
|
41 |
OrderStatus.DOA_VALID_REFUNDED,
|
| 42 |
OrderStatus.REJECTED, OrderStatus.FAILED });
|
42 |
OrderStatus.DOA_VALID_RESHIPPED,
|
| 43 |
|
43 |
OrderStatus.CANCELLED_DUE_TO_LOW_INVENTORY,
|
| 44 |
@SuppressWarnings("serial")
|
44 |
OrderStatus.REJECTED,
|
| 45 |
public static final Map<Long, String> PAYMENT_GATEWAYS = Collections
|
45 |
OrderStatus.FAILED});
|
| 46 |
.unmodifiableMap(new HashMap<Long, String>() {
|
46 |
|
| 47 |
{
|
47 |
@SuppressWarnings("serial")
|
| 48 |
put(1l, "hdfc");
|
48 |
public static final Map<Long, String> PAYMENT_GATEWAYS = Collections.unmodifiableMap(
|
| 49 |
put(2l, "ebs");
|
49 |
new HashMap<Long, String>(){
|
| 50 |
put(3l, "Cheque");
|
50 |
{
|
| 51 |
put(4l, "COD");
|
51 |
put(1l,"hdfc");
|
| 52 |
put(5l, "hdfc-emi-3");
|
52 |
put(2l,"ebs");
|
| 53 |
put(6l, "rtgs");
|
53 |
put(3l,"Cheque");
|
| 54 |
put(8l, "Wallet");
|
54 |
put(4l,"COD");
|
| 55 |
put(9l, "GiftVoucher");
|
55 |
put(5l,"hdfc-emi-3");
|
| 56 |
put(10l, "hdfc-emi-6");
|
56 |
put(6l,"rtgs");
|
| 57 |
put(11l, "hdfc-emi-9");
|
57 |
put(8l,"Wallet");
|
| 58 |
put(12l, "hdfc-emi-12");
|
58 |
put(9l,"GiftVoucher");
|
| 59 |
put(13l, "innoviti");
|
59 |
put(10l,"hdfc-emi-6");
|
| 60 |
put(14l, "hdfc-emi-18");
|
60 |
put(11l,"hdfc-emi-9");
|
| 61 |
put(15l, "Amazon");
|
61 |
put(12l,"hdfc-emi-12");
|
| 62 |
put(16l, "Ebay");
|
62 |
put(13l,"innoviti");
|
| 63 |
put(17l, "Flipkart");
|
63 |
put(14l,"hdfc-emi-18");
|
| 64 |
put(18l, "Snapdeal");
|
64 |
put(15l,"Amazon");
|
| 65 |
put(19l, "PAYU");
|
65 |
put(16l,"Ebay");
|
| 66 |
}
|
66 |
put(17l,"Flipkart");
|
| 67 |
});
|
67 |
put(18l,"Snapdeal");
|
| 68 |
|
68 |
put(19l,"PAYU");
|
| 69 |
public static enum EscalationMatrix {
|
69 |
}
|
| 70 |
SHIPPING_AND_DELIVERY("Product shipping and delivery related issues",
|
70 |
});
|
| 71 |
Arrays.asList(34, 65, 47, 33)), RETURN_AND_REFUND(
|
71 |
|
| 72 |
"Product return, order refund, Payment status related issues",
|
72 |
public static enum EscalationMatrix {
|
| 73 |
Arrays.asList(34)), CONTENT(
|
73 |
SHIPPING_AND_DELIVERY("Product shipping and delivery related issues", Arrays.asList(34, 65, 33)),
|
| 74 |
"Any questions or errors on the content about the product on our site",
|
74 |
RETURN_AND_REFUND("Product return, order refund, Payment status related issues", Arrays.asList(34, 33)),
|
| 75 |
Arrays.asList(34, 10)), PRODUCT_AND_PRICE(
|
75 |
CONTENT("Any questions or errors on the content about the product on our site", Arrays.asList(34, 10, 33)),
|
| 76 |
"Product availability and its price related enquiries", Arrays
|
76 |
PRODUCT_AND_PRICE("Product availability and its price related enquiries", Arrays.asList(34, 13, 33)),
|
| 77 |
.asList(34, 13)), TECHNICAL(
|
77 |
TECHNICAL("Any technical errors on the site (or site not working properly)", Arrays.asList(34, 35, 33)),
|
| 78 |
"Any technical errors on the site (or site not working properly)",
|
78 |
ORDER_CANCELLATION("Cancelling an order", Arrays.asList(65, 34, 33)),
|
| 79 |
Arrays.asList(34, 35)), ORDER_CANCELLATION(
|
79 |
BULK_DEAL("Any bulk deals related enquiries", Arrays.asList(34, 33)),
|
| 80 |
"Cancelling an order", Arrays.asList(65, 34, 33)), BULK_DEAL(
|
80 |
PROMOTION_MARKETING_PARTNERSHIP("Any promotion, marketing or partnership proposals' related queries", Arrays.asList(34, 41, 33)),
|
| 81 |
"Any bulk deals related enquiries", Arrays.asList(34)), PROMOTION_MARKETING_PARTNERSHIP(
|
81 |
COD_VERIFICATION("Any COD verification related tickets", Arrays.asList(34, 33)),
|
| 82 |
"Any promotion, marketing or partnership proposals' related queries",
|
82 |
ON_TIME_GUARANTEE("On Time Guarantee related enquiries",Arrays.asList(65, 34, 33)),
|
| 83 |
Arrays.asList(34, 41)), COD_VERIFICATION(
|
83 |
RECHARGE_RELATED("Recharge related", Arrays.asList(34, 33)),
|
| 84 |
"Any COD verification related tickets", Arrays.asList(34, 33)), ON_TIME_GUARANTEE(
|
84 |
DELIVERY_PROBLEM("", Arrays.asList(34, 65, 33)),
|
| 85 |
"On Time Guarantee related enquiries", Arrays
|
85 |
OTHER("Any other issues", Arrays.asList(65, 34, 33));
|
| 86 |
.asList(65, 47, 34)), RECHARGE_RELATED(
|
86 |
|
| 87 |
"Recharge related", Arrays.asList(34, 33)), DELIVERY_PROBLEM(
|
87 |
private String description;
|
| 88 |
"", Arrays.asList(34, 47, 65, 33)), OTHER("Any other issues",
|
88 |
private List<Integer> agentIds;
|
| 89 |
Arrays.asList(65, 34, 33));
|
89 |
|
| 90 |
|
90 |
EscalationMatrix(String description, List<Integer> agentIds) {
|
| 91 |
private String description;
|
91 |
this.description = description;
|
| 92 |
private List<Integer> agentIds;
|
92 |
this.agentIds = agentIds;
|
| 93 |
|
93 |
}
|
| 94 |
EscalationMatrix(String description, List<Integer> agentIds) {
|
94 |
|
| 95 |
this.description = description;
|
95 |
public String getDescription() {
|
| 96 |
this.agentIds = agentIds;
|
96 |
return description;
|
| 97 |
}
|
97 |
}
|
| 98 |
|
98 |
|
| 99 |
public String getDescription() {
|
99 |
public List<Integer> getAgentIds() {
|
| 100 |
return description;
|
100 |
return agentIds;
|
| 101 |
}
|
101 |
}
|
| 102 |
|
102 |
};
|
| 103 |
public List<Integer> getAgentIds() {
|
103 |
|
| 104 |
return agentIds;
|
104 |
|
| 105 |
}
|
105 |
public static enum PMEscalationMatrix {
|
| 106 |
};
|
106 |
PM_CASH_BACK_INQUIRY("Customer wanted to know about cash back", Arrays.asList(34, 33, 35)),
|
| 107 |
|
107 |
PM_RECHARGE_FAILED_OR_COMPLAINT("Customer complaint about recharge", Arrays.asList(34, 33, 35)),
|
| 108 |
public static enum PMEscalationMatrix {
|
108 |
PM_WALLET_AMOUNT_ISSUE("Some issue in wallet amount", Arrays.asList(34, 33, 35)),
|
| 109 |
PM_CASH_BACK_INQUIRY("Customer wanted to know about cash back", Arrays
|
109 |
PM_ORDER_NOT_SHOWING("Customer Order not showing at App", Arrays.asList(34, 33,35)),
|
| 110 |
.asList(34, 33)), PM_RECHARGE_FAILED_OR_COMPLAINT(
|
110 |
PM_BULK_INQUIRY("Customer wanted to know about bulk purchase inquiry", Arrays.asList(34, 33, 35)),
|
| 111 |
"Customer complaint about recharge", Arrays.asList(34, 33)), PM_WALLET_AMOUNT_ISSUE(
|
111 |
PM_TAX_INVOICE_ISSUE("Customer wanted to complaint about tax invoice", Arrays.asList(34, 33, 35)),
|
| 112 |
"Some issue in wallet amount", Arrays.asList(34, 33)), PM_ORDER_NOT_SHOWING(
|
112 |
PM_ORDER_STATUS_SAHOLIC_ORDER("Customer wanted to know status of order", Arrays.asList(34, 33, 35)),
|
| 113 |
"Customer Order not showing at App", Arrays.asList(34, 33)), PM_BULK_INQUIRY(
|
113 |
PM_PRODUCT_DEMAND("Customer wanted information about any product demand", Arrays.asList(34, 33, 35)),
|
| 114 |
"Customer wanted to know about bulk purchase inquiry", Arrays
|
114 |
PM_PRICING_ERROR("Customer wanted to ask questions about some error in pricing", Arrays.asList(34, 33, 35)),
|
| 115 |
.asList(34, 33)), PM_TAX_INVOICE_ISSUE(
|
115 |
PM_TECHNICAL_ISSUE("Some technical issue at app", Arrays.asList(34, 33));
|
| 116 |
"Customer wanted to complaint about tax invoice", Arrays
|
116 |
|
| 117 |
.asList(34, 33)), PM_ORDER_STATUS_SAHOLIC_ORDER(
|
117 |
private String description;
|
| 118 |
"Customer wanted to know status of order", Arrays
|
118 |
private List<Integer> agentIds;
|
| 119 |
.asList(34, 33)), PM_PRODUCT_DEMAND(
|
119 |
|
| 120 |
"Customer wanted information about any product demand", Arrays
|
120 |
PMEscalationMatrix(String description, List<Integer> agentIds) {
|
| 121 |
.asList(34, 33)), PM_PRICING_ERROR(
|
121 |
this.description = description;
|
| 122 |
"Customer wanted to ask questions about some error in pricing",
|
122 |
this.agentIds = agentIds;
|
| 123 |
Arrays.asList(34, 33)), PM_TECHNICAL_ISSUE(
|
123 |
}
|
| 124 |
"Some technical issue at app", Arrays.asList(34, 33));
|
124 |
|
| 125 |
|
125 |
public String getDescription() {
|
| 126 |
private String description;
|
126 |
return description;
|
| 127 |
private List<Integer> agentIds;
|
127 |
}
|
| 128 |
|
128 |
|
| 129 |
PMEscalationMatrix(String description, List<Integer> agentIds) {
|
129 |
public List<Integer> getAgentIds() {
|
| 130 |
this.description = description;
|
130 |
return agentIds;
|
| 131 |
this.agentIds = agentIds;
|
131 |
}
|
| 132 |
}
|
132 |
};
|
| 133 |
|
133 |
|
| 134 |
public String getDescription() {
|
134 |
public static enum CODCancelMatrix {
|
| 135 |
return description;
|
135 |
INVALID_ADDRESS_PIN_CODE_PHONE("Address/PinCode/Phone number provided by customer"),
|
| 136 |
}
|
136 |
NOT_PICKING("Customer is not picking the call"),
|
| 137 |
|
137 |
NOT_REACHABLE_SWITCHED_OFF("Customer number is not reachable or switched off"),
|
| 138 |
public List<Integer> getAgentIds() {
|
138 |
LOWER_PRICE_AVAILABLE_ELSEWHERE("Customer getting better price elsewhere"),
|
| 139 |
return agentIds;
|
139 |
CUSTOMER_TESTING_WEBSITE("Customer is testing the site"),
|
| 140 |
}
|
140 |
DUPLICATE_BOOKING("Customer booked an order twice by mistake"),
|
| 141 |
};
|
141 |
DEALER_ORDER("Order was place by a dealer"),
|
| 142 |
|
142 |
OUT_OF_STOCK("Ordered item is out of stock"),
|
| 143 |
public static enum CODCancelMatrix {
|
143 |
CUSTOMER_WANTS_EARLY_DELIVERY("Customer wants order to be delivered before promised and expected date"),
|
| 144 |
INVALID_ADDRESS_PIN_CODE_PHONE(
|
144 |
NOT_INTERESTED_THIS_TIME("Customer decided against buying the product"),
|
| 145 |
"Address/PinCode/Phone number provided by customer"), NOT_PICKING(
|
145 |
WANT_SOME_OTHER_PRODUCT("Customer wants to buy different product"),
|
| 146 |
"Customer is not picking the call"), NOT_REACHABLE_SWITCHED_OFF(
|
146 |
PLACED_ANOTHER_ORDER("Customer has placed another order buying different product"),
|
| 147 |
"Customer number is not reachable or switched off"), LOWER_PRICE_AVAILABLE_ELSEWHERE(
|
147 |
USER_WANTS_DELAYED_DELIVERY("Customer wants order to be delivered after promised and expected date"),
|
| 148 |
"Customer getting better price elsewhere"), CUSTOMER_TESTING_WEBSITE(
|
148 |
COLOR_OUT_OF_STOCK("Order Item(s) not present in the requested color"),
|
| 149 |
"Customer is testing the site"), DUPLICATE_BOOKING(
|
149 |
CUSTOMER_WANTS_OPEN_DELIVERY("Customer wants to pay money after seeing the product"),
|
| 150 |
"Customer booked an order twice by mistake"), DEALER_ORDER(
|
150 |
CUSTOMER_DENIED_PLACING_ORDER("Customer denied placing any order on our site"),
|
| 151 |
"Order was place by a dealer"), OUT_OF_STOCK(
|
151 |
PAYMENT_FLAGGED_BY_GATEWAY("This payment is flagged"),
|
| 152 |
"Ordered item is out of stock"), CUSTOMER_WANTS_EARLY_DELIVERY(
|
152 |
OTHER("Order cancelled because of some miscellaneous reason");
|
| 153 |
"Customer wants order to be delivered before promised and expected date"), NOT_INTERESTED_THIS_TIME(
|
153 |
|
| 154 |
"Customer decided against buying the product"), WANT_SOME_OTHER_PRODUCT(
|
154 |
private String description;
|
| 155 |
"Customer wants to buy different product"), PLACED_ANOTHER_ORDER(
|
155 |
|
| 156 |
"Customer has placed another order buying different product"), USER_WANTS_DELAYED_DELIVERY(
|
156 |
CODCancelMatrix(String description) {
|
| 157 |
"Customer wants order to be delivered after promised and expected date"), COLOR_OUT_OF_STOCK(
|
157 |
this.description = description;
|
| 158 |
"Order Item(s) not present in the requested color"), CUSTOMER_WANTS_OPEN_DELIVERY(
|
158 |
}
|
| 159 |
"Customer wants to pay money after seeing the product"), CUSTOMER_DENIED_PLACING_ORDER(
|
159 |
|
| 160 |
"Customer denied placing any order on our site"), PAYMENT_FLAGGED_BY_GATEWAY(
|
160 |
public String getDescription() {
|
| 161 |
"This payment is flagged"), OTHER(
|
161 |
return description;
|
| 162 |
"Order cancelled because of some miscellaneous reason");
|
162 |
}
|
| 163 |
|
163 |
};
|
| 164 |
private String description;
|
164 |
|
| 165 |
|
165 |
public static enum ActivityCommonDescriptionMatrix{
|
| 166 |
CODCancelMatrix(String description) {
|
166 |
BULK_INQUIRY("Customer wanted to know about bulk order"),
|
| 167 |
this.description = description;
|
167 |
CALL_HUNGUP_DISCONNECTED("Call got disconnected or was hung up by customer"),
|
| 168 |
}
|
168 |
COD_VERIFICATION("Call to customer to verify COD"),
|
| 169 |
|
169 |
COMPLAINT_OR_DELIVERY_ISSUE("Call for complaint or delivery issue from customer"),
|
| 170 |
public String getDescription() {
|
170 |
COURIER_PARTNER_DETAIL("Customer wanted to know about courier partner"),
|
| 171 |
return description;
|
171 |
ORDER_CANCELLATION("Customer wanted to cancel order"),
|
| 172 |
}
|
172 |
ORDER_STATUS("Customer wanted to know status of order"),
|
| 173 |
};
|
173 |
PAYMENT_MODE_QUERY("Customer wantedinformation about payment mode"),
|
| 174 |
|
174 |
PRODUCT_QUERY("Customer wanted to ask questions about product"),
|
| 175 |
public static enum ActivityCommonDescriptionMatrix {
|
175 |
PROMOTION_CALL("Promotion call"),
|
| 176 |
BULK_INQUIRY("Customer wanted to know about bulk order"), CALL_HUNGUP_DISCONNECTED(
|
176 |
RETURN_OR_REFUND("Return or Refund"),
|
| 177 |
"Call got disconnected or was hung up by customer"), COD_VERIFICATION(
|
177 |
TEST_CALL("test call"),
|
| 178 |
"Call to customer to verify COD"), COMPLAINT_OR_DELIVERY_ISSUE(
|
178 |
VOICE_ISSUE_OR_TECHNICAL_ISSUE("voice issue or technical issue"),
|
| 179 |
"Call for complaint or delivery issue from customer"), COURIER_PARTNER_DETAIL(
|
179 |
WRONG_CALL("wrong call");
|
| 180 |
"Customer wanted to know about courier partner"), ORDER_CANCELLATION(
|
180 |
|
| 181 |
"Customer wanted to cancel order"), ORDER_STATUS(
|
181 |
private String description;
|
| 182 |
"Customer wanted to know status of order"), PAYMENT_MODE_QUERY(
|
182 |
|
| 183 |
"Customer wantedinformation about payment mode"), PRODUCT_QUERY(
|
183 |
ActivityCommonDescriptionMatrix(String description) {
|
| 184 |
"Customer wanted to ask questions about product"), PROMOTION_CALL(
|
184 |
this.description = description;
|
| 185 |
"Promotion call"), RETURN_OR_REFUND("Return or Refund"), TEST_CALL(
|
185 |
}
|
| 186 |
"test call"), VOICE_ISSUE_OR_TECHNICAL_ISSUE(
|
186 |
|
| 187 |
"voice issue or technical issue"), WRONG_CALL("wrong call");
|
187 |
public String getDescription() {
|
| 188 |
|
188 |
return description;
|
| 189 |
private String description;
|
189 |
}
|
| 190 |
|
190 |
|
| 191 |
ActivityCommonDescriptionMatrix(String description) {
|
191 |
};
|
| 192 |
this.description = description;
|
192 |
|
| 193 |
}
|
193 |
public static enum ActivityPMCommonDescriptionMatrix{
|
| 194 |
|
194 |
CASH_BACK_INQUIRY("Customer wanted to know about cash back"),
|
| 195 |
public String getDescription() {
|
195 |
RECHARGE_FAILED_OR_COMPLAINT("Customer complaint about recharge"),
|
| 196 |
return description;
|
196 |
WALLET_AMOUNT_ISSUE("Some issue in wallet amount"),
|
| 197 |
}
|
197 |
ORDER_NOT_SHOWING("Customer Order not showing at App"),
|
| 198 |
|
198 |
BULK_INQUIRY("Customer wanted to know about bulk purchase inquiry"),
|
| 199 |
};
|
199 |
TAX_INVOICE_ISSUE("Customer wanted to complaint about tax invoice"),
|
| 200 |
|
200 |
ORDER_STATUS_SAHOLIC_ORDER("Customer wanted to know status of order"),
|
| 201 |
public static enum ActivityPMCommonDescriptionMatrix {
|
201 |
PRODUCT_DEMAND("Customer wanted information about any product demand"),
|
| 202 |
CASH_BACK_INQUIRY("Customer wanted to know about cash back"), RECHARGE_FAILED_OR_COMPLAINT(
|
202 |
PRICING_ERROR("Customer wanted to ask questions about some error in pricing"),
|
| 203 |
"Customer complaint about recharge"), WALLET_AMOUNT_ISSUE(
|
203 |
TECHNICAL_ISSUE("Some technical issue at app");
|
| 204 |
"Some issue in wallet amount"), ORDER_NOT_SHOWING(
|
204 |
|
| 205 |
"Customer Order not showing at App"), BULK_INQUIRY(
|
205 |
private String description;
|
| 206 |
"Customer wanted to know about bulk purchase inquiry"), TAX_INVOICE_ISSUE(
|
206 |
|
| 207 |
"Customer wanted to complaint about tax invoice"), ORDER_STATUS_SAHOLIC_ORDER(
|
207 |
ActivityPMCommonDescriptionMatrix(String description) {
|
| 208 |
"Customer wanted to know status of order"), PRODUCT_DEMAND(
|
208 |
this.description = description;
|
| 209 |
"Customer wanted information about any product demand"), PRICING_ERROR(
|
209 |
}
|
| 210 |
"Customer wanted to ask questions about some error in pricing"), TECHNICAL_ISSUE(
|
210 |
|
| 211 |
"Some technical issue at app");
|
211 |
public String getDescription() {
|
| 212 |
|
212 |
return description;
|
| 213 |
private String description;
|
213 |
}
|
| 214 |
|
214 |
|
| 215 |
ActivityPMCommonDescriptionMatrix(String description) {
|
215 |
};
|
| 216 |
this.description = description;
|
216 |
|
| 217 |
}
|
217 |
public enum Actionable{
|
| 218 |
|
218 |
NO_ACTION(0),
|
| 219 |
public String getDescription() {
|
219 |
EMAIL_PROVIDER_REATTEMPT_DELIVERY(1);
|
| 220 |
return description;
|
220 |
|
| 221 |
}
|
221 |
private int value;
|
| 222 |
|
222 |
Actionable(int value){
|
| 223 |
};
|
223 |
this.value = value;
|
| 224 |
|
224 |
}
|
| 225 |
public enum Actionable {
|
225 |
|
| 226 |
NO_ACTION(0), EMAIL_PROVIDER_REATTEMPT_DELIVERY(1);
|
226 |
public int getValue(){
|
| 227 |
|
227 |
return value;
|
| 228 |
private int value;
|
228 |
}
|
| 229 |
|
229 |
};
|
| 230 |
Actionable(int value) {
|
230 |
|
| 231 |
this.value = value;
|
231 |
@SuppressWarnings("serial")
|
| 232 |
}
|
232 |
public static final Map<TicketCategory, List<String>> CATEGORY_ACTION_MAP = Collections.unmodifiableMap(
|
| 233 |
|
233 |
new HashMap<TicketCategory, List<String>>(){
|
| 234 |
public int getValue() {
|
234 |
{
|
| 235 |
return value;
|
235 |
|
| 236 |
}
|
236 |
for(TicketCategory category : TicketCategory.values()){
|
| 237 |
};
|
237 |
put(category, new ArrayList<String>());
|
| 238 |
|
238 |
}
|
| 239 |
@SuppressWarnings("serial")
|
239 |
put(TicketCategory.UNDELIVERED,
|
| 240 |
public static final Map<TicketCategory, List<String>> CATEGORY_ACTION_MAP = Collections
|
240 |
Arrays.asList(
|
| 241 |
.unmodifiableMap(new HashMap<TicketCategory, List<String>>() {
|
241 |
new String[]{
|
| 242 |
{
|
242 |
Actionable.NO_ACTION.toString(),
|
| 243 |
|
243 |
Actionable.EMAIL_PROVIDER_REATTEMPT_DELIVERY.toString()
|
| 244 |
for (TicketCategory category : TicketCategory.values()) {
|
244 |
}
|
| 245 |
put(category, new ArrayList<String>());
|
245 |
));
|
| 246 |
}
|
246 |
put(TicketCategory.DELIVERY_ATTEMPT_FAILED,
|
| 247 |
put(TicketCategory.UNDELIVERED, Arrays.asList(new String[] {
|
247 |
Arrays.asList(
|
| 248 |
Actionable.NO_ACTION.toString(),
|
248 |
new String[]{
|
| 249 |
Actionable.EMAIL_PROVIDER_REATTEMPT_DELIVERY
|
249 |
Actionable.NO_ACTION.toString(),
|
| 250 |
.toString() }));
|
250 |
Actionable.EMAIL_PROVIDER_REATTEMPT_DELIVERY.toString()
|
| 251 |
put(TicketCategory.DELIVERY_ATTEMPT_FAILED,
|
251 |
}
|
| 252 |
Arrays.asList(new String[] {
|
252 |
));
|
| 253 |
Actionable.NO_ACTION.toString(),
|
253 |
|
| 254 |
Actionable.EMAIL_PROVIDER_REATTEMPT_DELIVERY
|
254 |
|
| 255 |
.toString() }));
|
255 |
}
|
| 256 |
|
256 |
|
| 257 |
}
|
257 |
});
|
| 258 |
|
258 |
|
| 259 |
});
|
259 |
public static enum LogisticProvider{
|
| 260 |
|
260 |
BLUEDART(1),
|
| 261 |
public static enum LogisticProvider {
|
261 |
ARAMEX(2),
|
| 262 |
BLUEDART(1), ARAMEX(2), DELHIVERY(3), REDEXPRESS(6), FEDEX(7), FEDEX_SURFACE(
|
262 |
DELHIVERY(3),
|
| 263 |
46);
|
263 |
REDEXPRESS(6),
|
| 264 |
|
264 |
FEDEX(7),
|
| 265 |
private long value;
|
265 |
FEDEX_SURFACE(46);
|
| 266 |
|
266 |
|
| 267 |
private LogisticProvider(long value) {
|
267 |
private long value;
|
| 268 |
this.value = value;
|
268 |
|
| 269 |
}
|
269 |
private LogisticProvider(long value){
|
| 270 |
|
270 |
this.value = value;
|
| 271 |
public long getValue() {
|
271 |
}
|
| 272 |
return value;
|
272 |
public long getValue(){
|
| 273 |
}
|
273 |
return value;
|
| 274 |
|
274 |
}
|
| 275 |
public static LogisticProvider findByValue(long value) {
|
275 |
|
| 276 |
int v = (int) value;
|
276 |
public static LogisticProvider findByValue(long value) {
|
| 277 |
switch (v) {
|
277 |
int v = (int) value;
|
| 278 |
case 1:
|
278 |
switch (v) {
|
| 279 |
return BLUEDART;
|
279 |
case 1:
|
| 280 |
case 2:
|
280 |
return BLUEDART;
|
| 281 |
return ARAMEX;
|
281 |
case 2:
|
| 282 |
case 3:
|
282 |
return ARAMEX;
|
| 283 |
return DELHIVERY;
|
283 |
case 3:
|
| 284 |
case 6:
|
284 |
return DELHIVERY;
|
| 285 |
return REDEXPRESS;
|
285 |
case 6:
|
| 286 |
case 7:
|
286 |
return REDEXPRESS;
|
| 287 |
return FEDEX;
|
287 |
case 7:
|
| 288 |
case 46:
|
288 |
return FEDEX;
|
| 289 |
return FEDEX_SURFACE;
|
289 |
case 46:
|
| 290 |
default:
|
290 |
return FEDEX_SURFACE;
|
| 291 |
return null;
|
291 |
default:
|
| 292 |
}
|
292 |
return null;
|
| 293 |
}
|
293 |
}
|
| 294 |
}
|
294 |
}
|
| 295 |
|
295 |
}
|
| 296 |
@SuppressWarnings("serial")
|
296 |
|
| 297 |
public static final Map<LogisticProvider, List<String>> LOGISTIC_PROVIDER_MAP = Collections
|
297 |
@SuppressWarnings("serial")
|
| 298 |
.unmodifiableMap(new HashMap<LogisticProvider, List<String>>() {
|
298 |
public static final Map<LogisticProvider, List<String> > LOGISTIC_PROVIDER_MAP = Collections.unmodifiableMap(
|
| 299 |
{
|
299 |
new HashMap<LogisticProvider, List<String>>(){
|
| 300 |
put(LogisticProvider.BLUEDART,
|
300 |
{
|
| 301 |
Arrays.asList(new String[] {
|
301 |
put(LogisticProvider.BLUEDART,
|
| 302 |
"SunilB@bluedart.com,AnilKumar@bluedart.com,HarshaK@bluedart.com,AveekP@bluedart.com",
|
302 |
Arrays.asList(
|
| 303 |
"khushal.bhatia@shop2020.in,amit.sirohi@shop2020.in,himanshu.pandey@shop2020.in,shiv.kumar@shop2020.in,shailesh.kumar@saholic.com" }));
|
303 |
new String[]{"SunilB@bluedart.com,AnilKumar@bluedart.com,HarshaK@bluedart.com,AveekP@bluedart.com",
|
| 304 |
put(LogisticProvider.DELHIVERY,
|
304 |
"khushal.bhatia@shop2020.in,amit.gupta@shop2020.in,himanshu.pandey@shop2020.in,ritesh.chauhan@shop2020.in"}));
|
| 305 |
Arrays.asList(new String[] {
|
305 |
put(LogisticProvider.DELHIVERY,
|
| 306 |
"client.support@delhivery.com,aakershit.gupta@delhivery.com,mamta.bhandari@delhivery.com,shinu.mathew@delhivery.com,ohm.chaudhury@delhivery.com",
|
306 |
Arrays.asList(
|
| 307 |
"khushal.bhatia@shop2020.in,amit.sirohi@shop2020.in,himanshu.pandey@shop2020.in,shiv.kumar@shop2020.in,shailesh.kumar@saholic.com" }));
|
307 |
new String[]{"client.support@delhivery.com,aakershit.gupta@delhivery.com,mamta.bhandari@delhivery.com,shinu.mathew@delhivery.com,ohm.chaudhury@delhivery.com",
|
| 308 |
put(LogisticProvider.FEDEX,
|
308 |
"khushal.bhatia@shop2020.in,amit.gupta@shop2020.in,himanshu.pandey@shop2020.in,ritesh.chauhan@shop2020.in"}));
|
| 309 |
Arrays.asList(new String[] {
|
309 |
put(LogisticProvider.FEDEX,
|
| 310 |
"india@fedex.com,adesh.kumar@fedex.com,priyap@fedex.com",
|
310 |
Arrays.asList(
|
| 311 |
"khushal.bhatia@shop2020.in,amit.sirohi@shop2020.in,himanshu.pandey@shop2020.in,shiv.kumar@shop2020.in,shailesh.kumar@saholic.com" }));
|
311 |
new String[]{"india@fedex.com,adesh.kumar@fedex.com,priyap@fedex.com",
|
| 312 |
put(LogisticProvider.FEDEX_SURFACE,
|
312 |
"khushal.bhatia@shop2020.in,amit.gupta@shop2020.in,himanshu.pandey@shop2020.in,ritesh.chauhan@shop2020.in"}));
|
| 313 |
Arrays.asList(new String[] {
|
313 |
put(LogisticProvider.FEDEX_SURFACE,
|
| 314 |
"india@fedex.com,adesh.kumar@fedex.com,priyap@fedex.com",
|
314 |
Arrays.asList(
|
| 315 |
"khushal.bhatia@shop2020.in,amit.sirohi@shop2020.in,himanshu.pandey@shop2020.in,shiv.kumar@shop2020.in,shailesh.kumar@saholic.com" }));
|
315 |
new String[]{"india@fedex.com,adesh.kumar@fedex.com,priyap@fedex.com",
|
| 316 |
|
316 |
"khushal.bhatia@shop2020.in,amit.gupta@shop2020.in,himanshu.pandey@shop2020.in,ritesh.chauhan@shop2020.in"}));
|
| 317 |
}
|
317 |
|
| 318 |
});
|
318 |
|
| - |
|
319 |
|
| - |
|
320 |
|
| - |
|
321 |
|
| - |
|
322 |
}
|
| - |
|
323 |
});
|
| - |
|
324 |
|
| 319 |
|
325 |
|
| 320 |
}
|
326 |
}
|