1 var _0x8595=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x63\x68\x61\x74","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x73\x74\x61\x74\x75\x73","\x63\x68\x61\x6E\x67\x65\x64","\x43\x4C\x4F\x53\x45\x44","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72\x49\x64","\x43\x68\x61\x74\x20\x72\x6F\x6F\x6D\x20\x63\x6C\x6F\x73\x65\x20\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x63\x6F\x6D\x70\x6C\x65\x74\x65\x52\x65\x61\x73\x6F\x6E","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x69\x64","\x75\x70\x64\x61\x74\x65","\x74\x68\x65\x6E","\x73\x65\x72\x76\x65\x64","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x41\x42\x41\x4E\x44\x4F\x4E","\x43\x68\x61\x74\x20\x72\x6F\x6F\x6D\x20\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x20\x65\x72\x72\x6F\x72","\x61\x62\x61\x6E\x64\x6F\x6E","\x72\x61\x74\x69\x6E\x67","\x43\x68\x61\x74\x20\x72\x6F\x6F\x6D\x20\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x20\x72\x61\x74\x69\x6E\x67","\x72\x61\x74\x69\x6E\x67\x4D\x65\x73\x73\x61\x67\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x8595[0];var _=require(_0x8595[1]);var moment=require(_0x8595[2]);var ChatRoomModel=require(_0x8595[4])[_0x8595[3]];var ChatVisitorModel=require(_0x8595[4])[_0x8595[5]];var ReportChatSessionModel=require(_0x8595[4])[_0x8595[6]];var ReportChatRoomModel=require(_0x8595[4])[_0x8595[7]];var logger=require(_0x8595[9])(_0x8595[8]);function ChatRoom(){ChatRoomModel[_0x8595[34]](function(_0xc4c6x9){if(_0xc4c6x9[_0x8595[11]](_0x8595[10])&& _0xc4c6x9[_0x8595[10]]=== _0x8595[12]){if(_0xc4c6x9[_0x8595[13]]){return ChatVisitorModel[_0x8595[27]](_0xc4c6x9.ChatVisitorId)[_0x8595[23]](function(_0xc4c6xb){if(_0xc4c6xb){var _0xc4c6xc=_[_0x8595[25]](_0xc4c6xb,{status:_0x8595[24]});return _0xc4c6xc[_0x8595[26]]()}})[_0x8595[23]](function(){return ReportChatSessionModel[_0x8595[22]]({complete:true,completeReason:_0xc4c6x9[_0x8595[18]],completeAt:moment()[_0x8595[20]](_0x8595[19])},{where:{roomid:_0xc4c6x9[_0x8595[21]],complete:false,abandon:false,timeout:false},individualHooks:true})})[_0x8595[17]](function(_0xc4c6xa){logger[_0x8595[16]](_0x8595[14],_0xc4c6xa[_0x8595[15]])})}};if(_0xc4c6x9[_0x8595[11]](_0x8595[10])&& _0xc4c6x9[_0x8595[10]]=== _0x8595[28]){if(_0xc4c6x9[_0x8595[13]]){return ChatVisitorModel[_0x8595[27]](_0xc4c6x9.ChatVisitorId)[_0x8595[23]](function(_0xc4c6xb){if(_0xc4c6xb){return _0xc4c6xb[_0x8595[22]]({status:_0x8595[30]})}})[_0x8595[17]](function(_0xc4c6xa){logger[_0x8595[16]](_0x8595[29],_0xc4c6xa[_0x8595[15]])})}};if(_0xc4c6x9[_0x8595[11]](_0x8595[31])){if(_0xc4c6x9[_0x8595[21]]){return ReportChatRoomModel[_0x8595[22]]({crating:_0xc4c6x9[_0x8595[31]],cratingMessage:_0xc4c6x9[_0x8595[33]]},{where:{roomid:_0xc4c6x9[_0x8595[21]]},individualHooks:true})[_0x8595[17]](function(_0xc4c6xa){logger[_0x8595[16]](_0x8595[32],_0xc4c6xa[_0x8595[15]])})}}})}module[_0x8595[35]]= ChatRoom