// 当前项目的配置
window.CHAT_CURRENT_PROJECT_TYPE = window.CHAT_CURRENT_PROJECT_TYPE || 'SUPPLIER'; // SUPPLIER, PURCHASER, STATE_SITE
window.API_GATEWAY_CHAT = window.API_GATEWAY_CHAT || "//apigw.tradechina.com/api-supplier/";
window.API_GATEWAY_IM = window.API_GATEWAY_IM || "//apigw.tradechina.com/api-chat/";
window.API_GATEWAY_MICRO = window.API_GATEWAY_MICRO || "//micro.tradechina.com/";
window.timSDKAppID = window.timSDKAppID || 1400377642; // tim SDK AppID
window.chatAppReadyForProduction = window.chatAppReadyForProduction === true;//系统开关
// 图标配置
window.CHAT_POSITION = window.CHAT_POSITION || {BOTTOM: 50, RIGHT: 100}; // 图标位置
window.CHAT_MESSAGE_SIZE_LIMIT = window.CHAT_MESSAGE_SIZE_LIMIT || 400; // 消息限制
window.CHAT_GET_MSG_INTERVAL = window.CHAT_GET_MSG_INTERVAL || 10; // 聊天页消息的加载间隔，单位：秒
window.CHAT_GET_CHAT_LIST_INTERVAL = window.CHAT_GET_CHAT_LIST_INTERVAL || 60; // 聊天列表数据的加载间隔，单位：秒
// 常量
window.CHAT_ENTERPRISE_TYPE_MAP = {MEORIENT: 1, SUPPLIER: 3, PURCHASER: 2, STATE_SITE: 2};

window.CHAT_SYSTEM_MEMBER_TYPE = CHAT_ENTERPRISE_TYPE_MAP[CHAT_CURRENT_PROJECT_TYPE]; //采购商 供应商 运营平台
window.CHAT_LANGUAGE_KEY_MAP = {SUPPLIER: 'chinaLanguage', PURCHASER: '247Language', STATE_SITE: '247StateLanguage'};
window.CHAT_LANGUAGE_KEY = CHAT_LANGUAGE_KEY_MAP[CHAT_CURRENT_PROJECT_TYPE]; //cookie中存放的语言位标记
window.CHAT_TOKEN_KEY_MAP = {SUPPLIER: 'tokenSupplier', PURCHASER: 'tokenPurchaser', STATE_SITE: 'tokenStateSite'};
window.CHAT_TOKEN_KEY = CHAT_TOKEN_KEY_MAP[CHAT_CURRENT_PROJECT_TYPE]; //系统采用的token


