Rev 7162 | Rev 8126 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/****/package in.shop2020.util;import in.shop2020.model.v1.order.OrderStatus;import java.util.Arrays;import java.util.Collections;import java.util.List;/*** @author mandeep** Class containing constants used across CRM*/public class CRMConstants {public static final String ATTACHMENTS_ARCHIVE_DIR = "/var/crm/archive/";public static final String CRM_EMAIL_SENDOR = "help@saholic.com";public static final String CRM_EMAIL_TYPE = "CRMInfo";public static final String CRM_SUBJECT_PREFIX_FOR_TICKET_ID = "Saholic#";public static final long ADMIN_AGENT_ID = 1;public static final int DESCRIPTION_MAX_WIDTH = 8000;public static final List<OrderStatus> failedStatusList = Arrays.asList(new OrderStatus[] {OrderStatus.RTO_RESHIPPED,OrderStatus.PAYMENT_FAILED,OrderStatus.RTO_REFUNDED,OrderStatus.DOA_INVALID_REFUNDED,OrderStatus.DOA_INVALID_RESHIPPED,OrderStatus.DOA_VALID_REFUNDED,OrderStatus.DOA_VALID_RESHIPPED,OrderStatus.CANCELLED_DUE_TO_LOW_INVENTORY,OrderStatus.REJECTED,OrderStatus.FAILED});public static enum EscalationMatrix {SHIPPING_AND_DELIVERY("Product shipping and delivery related issues", Arrays.asList(45, 34, 18, 19)),RETURN_AND_REFUND("Product return, order refund, Payment status related issues", Arrays.asList(45, 34)),CONTENT("Any questions or errors on the content about the product on our site", Arrays.asList(45, 34, 10)),PRODUCT_AND_PRICE("Product availability and its price related enquiries", Arrays.asList(45, 34, 13)),TECHNICAL("Any technical errors on the site (or site not working properly)", Arrays.asList(45, 34, 35)),ORDER_CANCELLATION("Cancelling an order", Arrays.asList(45, 33, 29, 34)),BULK_DEAL("Any bulk deals related enquiries", Arrays.asList(45, 34, 13)),PROMOTION_MARKETING_PARTNERSHIP("Any promotion, marketing or partnership proposals' related queries", Arrays.asList(45, 34, 41)),COD_VERIFICATION("Any COD verification related tickets", Arrays.asList(45, 34, 29)),ON_TIME_GUARANTEE("On Time Guarantee related enquiries",Arrays.asList(45, 18, 19, 34)),RECHARGE_RELATED("Recharge related", Arrays.asList(45, 34, 33, 29)),DELIVERY_PROBLEM("", Arrays.asList(45, 34, 19, 18)),OTHER("Any other issues", Arrays.asList(45, 29, 33, 34));private String description;private List<Integer> agentIds;EscalationMatrix(String description, List<Integer> agentIds) {this.description = description;this.agentIds = agentIds;}public String getDescription() {return description;}public List<Integer> getAgentIds() {return agentIds;}};public static enum CODCancelMatrix {INVALID_ADDRESS_PIN_CODE_PHONE("Address/PinCode/Phone number provided by customer"),NOT_PICKING("Customer is not picking the call"),NOT_REACHABLE_SWITCHED_OFF("Customer number is not reachable or switched off"),LOWER_PRICE_AVAILABLE_ELSEWHERE("Customer getting better price elsewhere"),CUSTOMER_TESTING_WEBSITE("Customer is testing the site"),DUPLICATE_BOOKING("Customer booked an order twice by mistake"),DEALER_ORDER("Order was place by a dealer"),OUT_OF_STOCK("Ordered item is out of stock"),CUSTOMER_WANTS_EARLY_DELIVERY("Customer wants order to be delivered before promised and expected date"),NOT_INTERESTED_THIS_TIME("Customer decided against buying the product"),WANT_SOME_OTHER_PRODUCT("Customer wants to buy different product"),PLACED_ANOTHER_ORDER("Customer has placed another order buying different product"),USER_WANTS_DELAYED_DELIVERY("Customer wants order to be delivered after promised and expected date"),COLOR_OUT_OF_STOCK("Order Item(s) not present in the requested color"),CUSTOMER_WANTS_OPEN_DELIVERY("Customer wants to pay money after seeing the product"),CUSTOMER_DENIED_PLACING_ORDER("Customer denied placing any order on our site"),OTHER("Order cancelled because of some miscellaneous reason");private String description;CODCancelMatrix(String description) {this.description = description;}public String getDescription() {return description;}};public static enum ActivityCommonDescriptionMatrix{BULK_INQUIRY("Customer wanted to know about bulk order"),CALL_HUNGUP_DISCONNECTED("Call got disconnected or was hung up by customer"),COD_VERIFICATION("Call to customer to verify COD"),COMPLAINT_OR_DELIVERY_ISSUE("Call for complaint or delivery issue from customer"),COURIER_PARTNER_DETAIL("Customer wanted to know about courier partner"),ORDER_CANCELLATION("Customer wanted to cancel order"),ORDER_STATUS("Customer wanted to know status of order"),PAYMENT_MODE_QUERY("Customer wantedinformation about payment mode"),PRODUCT_QUERY("Customer wanted to ask questions about product"),PROMOTION_CALL("Promotion call"),RETURN_OR_REFUND("Return or Refund"),TEST_CALL("test call"),VOICE_ISSUE_OR_TECHNICAL_ISSUE("voice issue or technical issue"),WRONG_CALL("wrong call");private String description;ActivityCommonDescriptionMatrix(String description) {this.description = description;}public String getDescription() {return description;}};}