1 var _0xa0c1=["\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","\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","\x45\x72\x72\x6F\x72\x3A","\x6C\x6F\x67","\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","\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"];_0xa0c1[0];var _=require(_0xa0c1[1]);var moment=require(_0xa0c1[2]);var ChatRoomModel=require(_0xa0c1[4])[_0xa0c1[3]];var ChatVisitorModel=require(_0xa0c1[4])[_0xa0c1[5]];var ReportChatSessionModel=require(_0xa0c1[4])[_0xa0c1[6]];var ReportChatRoomModel=require(_0xa0c1[4])[_0xa0c1[7]];function ChatRoom(){ChatRoomModel[_0xa0c1[27]](function(_0x522bx8){if(_0x522bx8[_0xa0c1[9]](_0xa0c1[8])&&_0x522bx8[_0xa0c1[8]]===_0xa0c1[10]){if(_0x522bx8[_0xa0c1[11]]){return ChatVisitorModel[_0xa0c1[24]](_0x522bx8.ChatVisitorId)[_0xa0c1[20]](function(_0x522bxa){if(_0x522bxa){var _0x522bxb=_[_0xa0c1[22]](_0x522bxa,{status:_0xa0c1[21]});return _0x522bxb[_0xa0c1[23]]()}})[_0xa0c1[20]](function(){return ReportChatRoomModel[_0xa0c1[19]]({complete:true,completeReason:_0x522bx8[_0xa0c1[15]],completeAt:moment()[_0xa0c1[17]](_0xa0c1[16]),status:_0xa0c1[10]},{where:{roomid:_0x522bx8[_0xa0c1[18]],complete:false},individualHooks:true})})[_0xa0c1[20]](function(){return ReportChatSessionModel[_0xa0c1[19]]({complete:true,completeReason:_0x522bx8[_0xa0c1[15]],completeAt:moment()[_0xa0c1[17]](_0xa0c1[16])},{where:{roomid:_0x522bx8[_0xa0c1[18]],complete:false,abandon:false,unmanaged:false},individualHooks:true})})[_0xa0c1[14]](function(_0x522bx9){console[_0xa0c1[13]](_0xa0c1[12],_0x522bx9)})}};if(_0x522bx8[_0xa0c1[9]](_0xa0c1[25])){if(_0x522bx8[_0xa0c1[18]]){return ReportChatRoomModel[_0xa0c1[19]]({crating:_0x522bx8[_0xa0c1[25]],cratingMessage:_0x522bx8[_0xa0c1[26]]},{where:{roomid:_0x522bx8[_0xa0c1[18]]},individualHooks:true})[_0xa0c1[14]](function(_0x522bx9){console[_0xa0c1[13]](_0xa0c1[12],_0x522bx9)})}}})}module[_0xa0c1[28]]=ChatRoom