Built motion from commit b322525.|0.0.112
[motion.git] / server / config / routing / chat / index.js
index 7471f78..2230818 100644 (file)
@@ -1 +1 @@
-var _0x46e4=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\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","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x55\x73\x65\x72","\x2E\x2F\x73\x65\x73\x73\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x20\x52\x6F\x75\x74\x69\x6E\x67\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E","\x6C\x6F\x67","\x6F\x72\x69\x67\x69\x6E","\x77\x65\x62\x63\x68\x61\x74","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x77\x65\x62\x73\x69\x74\x65\x69\x64","\x69\x64","\x77\x65\x62\x73\x69\x74\x65\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x77\x65\x62\x73\x69\x74\x65\x61\x64\x64\x72\x65\x73\x73","\x61\x64\x64\x72\x65\x73\x73","\x66\x69\x64\x65\x6C\x69\x74\x79","\x61\x70\x70\x74\x69\x6D\x65\x6F\x75\x74","\x71\x75\x65\x75\x65\x74\x69\x6D\x65\x6F\x75\x74","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x70\x72\x69\x6F\x72\x69\x74\x79\x20\x41\x53\x43","\x6F\x6E\x6C\x69\x6E\x65","\x63\x68\x61\x74\x50\x61\x75\x73\x65","\x67\x65\x74\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x76\x69\x73\x69\x74\x6F\x72\x69\x64","\x63\x72\x65\x61\x74\x65","\x72\x6F\x6F\x6D\x69\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x25\x73\x2E\x25\x73","\x75\x6E\x69\x78","\x66\x6F\x72\x6D\x61\x74","\x61\x67\x65\x6E\x74\x73","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x63\x6C\x6F\x6E\x65\x44\x65\x65\x70","\x6C\x65\x6E\x67\x74\x68","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x76\x69\x73\x69\x74\x6F\x72\x6E\x61\x6D\x65","\x76\x69\x73\x69\x74\x6F\x72\x65\x6D\x61\x69\x6C","\x61\x67\x65\x6E\x74","\x71\x75\x65\x75\x65\x69\x64","\x71\x75\x65\x75\x65\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x73\x6C\x6F\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x33","\x61\x70\x70","\x55\x73\x65\x72\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65\x2E\x70\x65\x6E\x61\x6C\x74\x79","\x6F\x72\x64\x65\x72\x42\x79","\x70\x65\x6E\x61\x6C\x74\x79","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x6D\x61\x70","\x71\x75\x65\x75\x65","\x75\x70\x64\x61\x74\x65","\x45\x6E\x64\x20\x63\x68\x61\x74\x20\x72\x6F\x75\x74\x69\x6E\x67\x2E\x2E","\x43\x68\x61\x74\x20\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x3A","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x43\x68\x61\x74\x20\x61\x62\x61\x6E\x64\x6F\x6E\x3A","\x41\x42\x41\x4E\x44\x4F\x4E","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x61\x62\x61\x6E\x64\x6F\x6E","\x75\x6E\x73\x65\x72\x76\x65\x64","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x65\x72\x72","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x43\x68\x61\x74\x52\x6F\x6F\x6D\x2E\x2E","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73\x2E\x2E","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x2E\x2E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x44\x45\x53\x43","\x66\x69\x6E\x64\x4F\x6E\x65"];_0x46e4[0];var _=require(_0x46e4[1]);var moment=require(_0x46e4[2]);var util=require(_0x46e4[3]);var async=require(_0x46e4[4]);var Util=require(_0x46e4[5]);var ChatApplication=require(_0x46e4[7])[_0x46e4[6]];var ChatVisitor=require(_0x46e4[7])[_0x46e4[8]];var ChatWebsite=require(_0x46e4[7])[_0x46e4[9]];var ChatQueue=require(_0x46e4[7])[_0x46e4[10]];var ChatRoom=require(_0x46e4[7])[_0x46e4[11]];var ReportChat=require(_0x46e4[7])[_0x46e4[12]];var ReportChatSession=require(_0x46e4[7])[_0x46e4[13]];var ReportChatRoom=require(_0x46e4[7])[_0x46e4[14]];var Interval=require(_0x46e4[7])[_0x46e4[15]];var User=require(_0x46e4[7])[_0x46e4[16]];var Session=require(_0x46e4[17]);module[_0x46e4[18]]=function(){console[_0x46e4[20]](_0x46e4[19]);ChatVisitor[_0x46e4[23]](function(_0xf4f9x11){if(_0xf4f9x11[_0x46e4[21]]===_0x46e4[22]){handleVisitor(_0xf4f9x11)}})};function handleEntityNotFound(_0xf4f9x13){return function(_0xf4f9x14){if(!_0xf4f9x14){throw {message:_0xf4f9x13}};return _0xf4f9x14}}function handleChatWebsite(_0xf4f9x16,_0xf4f9x17){return function(_0xf4f9x18){_0xf4f9x16[_0x46e4[24]]=_0xf4f9x18[_0x46e4[25]];_0xf4f9x16[_0x46e4[26]]=_0xf4f9x18[_0x46e4[27]];_0xf4f9x16[_0x46e4[28]]=_0xf4f9x18[_0x46e4[29]];_0xf4f9x17[_0x46e4[30]]=_0xf4f9x18[_0x46e4[30]];if(_0xf4f9x18[_0x46e4[30]]){_0xf4f9x17[_0x46e4[31]]=_0xf4f9x17[_0x46e4[32]]=_0xf4f9x18[_0x46e4[33]];_0xf4f9x17[_0x46e4[30]]=_0xf4f9x18[_0x46e4[33]];_0xf4f9x17[_0x46e4[34]]=_0x46e4[35]};return _0xf4f9x18[_0x46e4[39]]({order:_0x46e4[36],include:[{model:ChatQueue,attributes:[_0x46e4[25],_0x46e4[27],_0x46e4[33],_0x46e4[34]],include:[{model:User,attributes:[_0x46e4[25],_0x46e4[27],_0x46e4[37],_0x46e4[38]]}]},{model:User,attributes:[_0x46e4[25],_0x46e4[27],_0x46e4[37],_0x46e4[38]]},{model:Interval,include:[{all:true}]}]})}}function handleChatRoom(_0xf4f9x16,_0xf4f9x1a,_0xf4f9x17){return function(_0xf4f9x1b){_0xf4f9x1b[_0x46e4[41]](function(_0xf4f9x1c){_0xf4f9x1a[_0x46e4[40]](_0xf4f9x1c)});_0xf4f9x1a=_0xf4f9x1b;return ChatRoom[_0x46e4[44]]({type:_0x46e4[42],ChatVisitorId:_0xf4f9x16[_0x46e4[43]],ChatWebsiteId:_0xf4f9x16[_0x46e4[24]]},{include:[{all:true}]})}}function handleApps(_0xf4f9x16,_0xf4f9x1a,_0xf4f9x17){return function(_0xf4f9x1e){var _0xf4f9x1f=[];_0xf4f9x16[_0x46e4[45]]=_0xf4f9x1e[_0x46e4[25]];_0xf4f9x16[_0x46e4[46]]=util[_0x46e4[49]](_0x46e4[47],moment()[_0x46e4[48]](),_0xf4f9x1e[_0x46e4[25]]);if(_0xf4f9x17[_0x46e4[30]]){_0xf4f9x16[_0x46e4[32]]=_0xf4f9x17[_0x46e4[30]];_0xf4f9x16[_0x46e4[31]]=_0xf4f9x17[_0x46e4[30]];_0xf4f9x16[_0x46e4[50]]=_0xf4f9x17[_0x46e4[50]];_0xf4f9x16[_0x46e4[51]]=_0x46e4[30];_0xf4f9x16[_0x46e4[34]]=_0x46e4[35];var _0xf4f9x20=_[_0x46e4[52]](_0xf4f9x16);if(_0xf4f9x20[_0x46e4[50]][_0x46e4[53]]){_0xf4f9x1f[_0x46e4[40]](function(_0xf4f9x21){return ReportChatRoom[_0x46e4[44]]({uniqueid:_0xf4f9x20[_0x46e4[46]],subject:_0xf4f9x20[_0x46e4[64]],websitename:_0xf4f9x20[_0x46e4[26]],websiteaddress:_0xf4f9x20[_0x46e4[28]],websiteid:_0xf4f9x20[_0x46e4[24]],visitorid:_0xf4f9x20[_0x46e4[43]],visitorname:_0xf4f9x20[_0x46e4[57]],visitoremail:_0xf4f9x20[_0x46e4[58]],from:_0xf4f9x20[_0x46e4[65]],roomid:_0xf4f9x20[_0x46e4[45]],data1:_0xf4f9x16[_0x46e4[66]],data2:_0xf4f9x16[_0x46e4[67]],data3:_0xf4f9x16[_0x46e4[68]],labelData1:_0xf4f9x16[_0x46e4[69]],labelData2:_0xf4f9x16[_0x46e4[70]],labelData3:_0xf4f9x16[_0x46e4[71]],joinAt:moment()[_0x46e4[49]](_0x46e4[63])})[_0x46e4[56]](function(){return ReportChatSession[_0x46e4[44]]({uniqueid:_0xf4f9x20[_0x46e4[46]],websitename:_0xf4f9x20[_0x46e4[26]],websiteaddress:_0xf4f9x20[_0x46e4[28]],websiteid:_0xf4f9x20[_0x46e4[24]],application:_0xf4f9x20[_0x46e4[51]],visitorid:_0xf4f9x20[_0x46e4[43]],visitorname:_0xf4f9x20[_0x46e4[57]],visitoremail:_0xf4f9x20[_0x46e4[58]],memberid:(_0xf4f9x20[_0x46e4[51]]===_0x46e4[59]&&_0xf4f9x20[_0x46e4[50]][0])?_0xf4f9x20[_0x46e4[50]][0][_0x46e4[25]]:null,membername:(_0xf4f9x20[_0x46e4[51]]===_0x46e4[59]&&_0xf4f9x20[_0x46e4[50]][0])?_0xf4f9x20[_0x46e4[50]][0][_0x46e4[27]]:null,queueid:_0xf4f9x20[_0x46e4[60]],queuename:_0xf4f9x20[_0x46e4[61]],roomid:_0xf4f9x20[_0x46e4[45]],fidelity:_0xf4f9x20[_0x46e4[51]]===_0x46e4[30]?_0xf4f9x20[_0x46e4[62]]:null,joinAt:moment()[_0x46e4[49]](_0x46e4[63])})})[_0x46e4[56]](function(){ new Session(_0xf4f9x20,_0xf4f9x21)})[_0x46e4[55]](function(_0xf4f9x22){console[_0x46e4[54]](_0xf4f9x22)})})}};_0xf4f9x1a[_0x46e4[41]](function(_0xf4f9x1c,_0xf4f9x23){var _0xf4f9x20=_[_0x46e4[52]](_0xf4f9x16);_0xf4f9x20[_0x46e4[31]]=_0xf4f9x1c[_0x46e4[33]];_0xf4f9x20[_0x46e4[51]]=_0xf4f9x1c[_0x46e4[72]];switch(_0xf4f9x1c[_0x46e4[72]]){case _0x46e4[79]:_0xf4f9x20[_0x46e4[60]]=_0xf4f9x1c[_0x46e4[10]][_0x46e4[25]];_0xf4f9x20[_0x46e4[61]]=_0xf4f9x1c[_0x46e4[10]][_0x46e4[27]];_0xf4f9x20[_0x46e4[34]]=_0xf4f9x1c[_0x46e4[10]][_0x46e4[34]];_0xf4f9x20[_0x46e4[32]]=_0xf4f9x1c[_0x46e4[10]][_0x46e4[33]];_0xf4f9x1c[_0x46e4[10]][_0x46e4[73]]=_[_0x46e4[75]](_0xf4f9x1c[_0x46e4[10]].Users,_0x46e4[74]);_0xf4f9x20[_0x46e4[50]]=_[_0x46e4[78]](_0xf4f9x1c[_0x46e4[10]].Users,function(_0xf4f9x24){return {id:_0xf4f9x24[_0x46e4[25]],name:_0xf4f9x24[_0x46e4[27]],penalty:_0xf4f9x24[_0x46e4[77]][_0x46e4[76]]}});break;case _0x46e4[59]:_0xf4f9x20[_0x46e4[32]]=_0xf4f9x1c[_0x46e4[33]];_0xf4f9x20[_0x46e4[34]]=_0x46e4[35];_0xf4f9x20[_0x46e4[50]]=[{id:_0xf4f9x1c[_0x46e4[16]][_0x46e4[25]],name:_0xf4f9x1c[_0x46e4[16]][_0x46e4[27]],penalty:0}];break;default:};if(_0xf4f9x1f[_0x46e4[53]]){_0xf4f9x1f[_0x46e4[40]](function(_0xf4f9x25,_0xf4f9x26,_0xf4f9x21){if(_0xf4f9x25){return _0xf4f9x21(null,_0xf4f9x25,_0xf4f9x26)}else {return ReportChatSession[_0x46e4[80]]({leaveAt:moment()[_0x46e4[49]](_0x46e4[63]),unmanaged:true},{where:{leaveAt:null,uniqueid:_0xf4f9x20[_0x46e4[46]]},individualHooks:true})[_0x46e4[56]](function(){return ReportChatSession[_0x46e4[44]]({uniqueid:_0xf4f9x20[_0x46e4[46]],websitename:_0xf4f9x20[_0x46e4[26]],websiteaddress:_0xf4f9x20[_0x46e4[28]],websiteid:_0xf4f9x20[_0x46e4[24]],application:_0xf4f9x20[_0x46e4[51]],visitorid:_0xf4f9x20[_0x46e4[43]],visitorname:_0xf4f9x20[_0x46e4[57]],visitoremail:_0xf4f9x20[_0x46e4[58]],memberid:(_0xf4f9x20[_0x46e4[51]]===_0x46e4[59]&&_0xf4f9x20[_0x46e4[50]][0])?_0xf4f9x20[_0x46e4[50]][0][_0x46e4[25]]:null,membername:(_0xf4f9x20[_0x46e4[51]]===_0x46e4[59]&&_0xf4f9x20[_0x46e4[50]][0])?_0xf4f9x20[_0x46e4[50]][0][_0x46e4[27]]:null,queueid:_0xf4f9x20[_0x46e4[60]],queuename:_0xf4f9x20[_0x46e4[61]],roomid:_0xf4f9x20[_0x46e4[45]],fidelity:_0xf4f9x20[_0x46e4[51]]===_0x46e4[30]?_0xf4f9x20[_0x46e4[62]]:null,joinAt:moment()[_0x46e4[49]](_0x46e4[63])})})[_0x46e4[56]](function(){ new Session(_0xf4f9x20,_0xf4f9x21)})[_0x46e4[55]](function(_0xf4f9x22){console[_0x46e4[54]](_0xf4f9x22)})}})}else {_0xf4f9x1f[_0x46e4[40]](function(_0xf4f9x21){return ReportChatRoom[_0x46e4[44]]({uniqueid:_0xf4f9x20[_0x46e4[46]],subject:_0xf4f9x20[_0x46e4[64]],websitename:_0xf4f9x20[_0x46e4[26]],websiteaddress:_0xf4f9x20[_0x46e4[28]],websiteid:_0xf4f9x20[_0x46e4[24]],visitorid:_0xf4f9x20[_0x46e4[43]],visitorname:_0xf4f9x20[_0x46e4[57]],visitoremail:_0xf4f9x20[_0x46e4[58]],from:_0xf4f9x20[_0x46e4[65]],roomid:_0xf4f9x20[_0x46e4[45]],data1:_0xf4f9x16[_0x46e4[66]],data2:_0xf4f9x16[_0x46e4[67]],data3:_0xf4f9x16[_0x46e4[68]],labelData1:_0xf4f9x16[_0x46e4[69]],labelData2:_0xf4f9x16[_0x46e4[70]],labelData3:_0xf4f9x16[_0x46e4[71]],joinAt:moment()[_0x46e4[49]](_0x46e4[63])})[_0x46e4[56]](function(){return ReportChatSession[_0x46e4[44]]({uniqueid:_0xf4f9x20[_0x46e4[46]],websitename:_0xf4f9x20[_0x46e4[26]],websiteaddress:_0xf4f9x20[_0x46e4[28]],websiteid:_0xf4f9x20[_0x46e4[24]],application:_0xf4f9x20[_0x46e4[51]],visitorid:_0xf4f9x20[_0x46e4[43]],visitorname:_0xf4f9x20[_0x46e4[57]],visitoremail:_0xf4f9x20[_0x46e4[58]],memberid:(_0xf4f9x20[_0x46e4[51]]===_0x46e4[59]&&_0xf4f9x20[_0x46e4[50]][0])?_0xf4f9x20[_0x46e4[50]][0][_0x46e4[25]]:null,membername:(_0xf4f9x20[_0x46e4[51]]===_0x46e4[59]&&_0xf4f9x20[_0x46e4[50]][0])?_0xf4f9x20[_0x46e4[50]][0][_0x46e4[27]]:null,queueid:_0xf4f9x20[_0x46e4[60]],queuename:_0xf4f9x20[_0x46e4[61]],roomid:_0xf4f9x20[_0x46e4[45]],fidelity:_0xf4f9x20[_0x46e4[51]]===_0x46e4[30]?_0xf4f9x20[_0x46e4[62]]:null,joinAt:moment()[_0x46e4[49]](_0x46e4[63])})})[_0x46e4[56]](function(){ new Session(_0xf4f9x20,_0xf4f9x21)})[_0x46e4[55]](function(_0xf4f9x22){console[_0x46e4[54]](_0xf4f9x22)})})}});async[_0x46e4[86]](_0xf4f9x1f,function(_0xf4f9x22,_0xf4f9x27,_0xf4f9x26){if(_0xf4f9x22){console[_0x46e4[54]](_0xf4f9x22)};console[_0x46e4[20]](_0x46e4[81]);if(!_0xf4f9x27){console[_0x46e4[20]](_0x46e4[82],_0xf4f9x16[_0x46e4[46]]);return ReportChatRoom[_0x46e4[80]]({leaveAt:moment()[_0x46e4[49]](_0x46e4[63]),unmanaged:true,status:_0x46e4[83]},{where:{leaveAt:null,uniqueid:_0xf4f9x16[_0x46e4[46]]},individualHooks:true})[_0x46e4[56]](function(){return ReportChatSession[_0x46e4[80]]({leaveAt:moment()[_0x46e4[49]](_0x46e4[63]),unmanaged:true},{where:{leaveAt:null,uniqueid:_0xf4f9x16[_0x46e4[46]]},individualHooks:true})})[_0x46e4[56]](handleUnmanaged(_0xf4f9x16))[_0x46e4[55]](function(_0xf4f9x22){console[_0x46e4[54]](_0xf4f9x22)})};if(_0xf4f9x26){console[_0x46e4[20]](_0x46e4[84],_0xf4f9x16[_0x46e4[46]]);return ReportChatRoom[_0x46e4[80]]({leaveAt:moment()[_0x46e4[49]](_0x46e4[63]),abandon:true,status:_0x46e4[85]},{where:{leaveAt:null,uniqueid:_0xf4f9x16[_0x46e4[46]]},individualHooks:true})[_0x46e4[56]](handleAbandon(_0xf4f9x16))[_0x46e4[55]](function(_0xf4f9x22){console[_0x46e4[54]](_0xf4f9x22)})};return})}}function handleAbandon(_0xf4f9x16){return function(_0xf4f9x29){return ChatVisitor[_0x46e4[80]]({status:_0x46e4[87]},{where:{id:_0xf4f9x16[_0x46e4[43]]}})}}function handleUnmanaged(_0xf4f9x16){return function(_0xf4f9x2b){return ChatVisitor[_0x46e4[80]]({status:_0x46e4[88]},{where:{id:_0xf4f9x16[_0x46e4[43]]}})[_0x46e4[56]](function(){return ChatRoom[_0x46e4[80]]({status:_0x46e4[83]},{where:{id:_0xf4f9x16[_0x46e4[45]]}})})}}function handleVisitor(_0xf4f9x11){var _0xf4f9x1a=[];var _0xf4f9x17={agents:[]};var _0xf4f9x16={visitorid:_0xf4f9x11[_0x46e4[25]],visitorname:_0xf4f9x11[_0x46e4[89]],visitoremail:_0xf4f9x11[_0x46e4[90]],websiteid:_0xf4f9x11[_0x46e4[91]],data1:_0xf4f9x11[_0x46e4[66]]||null,data2:_0xf4f9x11[_0x46e4[67]]||null,data3:_0xf4f9x11[_0x46e4[68]]||null,labelData1:_0xf4f9x11[_0x46e4[69]]||null,labelData2:_0xf4f9x11[_0x46e4[70]]||null,labelData3:_0xf4f9x11[_0x46e4[71]]||null,joinAt:moment()[_0x46e4[49]](_0x46e4[63])};return ChatRoom[_0x46e4[99]]({order:[[_0x46e4[97],_0x46e4[98]]],include:[{model:User,attributes:[_0x46e4[25],_0x46e4[27],_0x46e4[37],_0x46e4[38]],where:{id:{$gt:0}}},{model:ChatVisitor,where:{email:_0xf4f9x11[_0x46e4[90]]}}]})[_0x46e4[56]](function(_0xf4f9x2d){if(_0xf4f9x2d&&_0xf4f9x2d[_0x46e4[73]][_0x46e4[53]]>0){_0xf4f9x17[_0x46e4[50]]=_[_0x46e4[78]](_0xf4f9x2d.Users,function(_0xf4f9x2e){return {id:_0xf4f9x2e[_0x46e4[25]],name:_0xf4f9x2e[_0x46e4[27]],penalty:0}})};return})[_0x46e4[56]](function(){return ChatWebsite[_0x46e4[96]](_0xf4f9x11.ChatWebsiteId)})[_0x46e4[56]](handleEntityNotFound(_0x46e4[95]))[_0x46e4[56]](handleChatWebsite(_0xf4f9x16,_0xf4f9x17))[_0x46e4[56]](handleEntityNotFound(_0x46e4[94]))[_0x46e4[56]](handleChatRoom(_0xf4f9x16,_0xf4f9x1a,_0xf4f9x17))[_0x46e4[56]](handleEntityNotFound(_0x46e4[93]))[_0x46e4[56]](handleApps(_0xf4f9x16,_0xf4f9x1a,_0xf4f9x17))[_0x46e4[55]](function(_0xf4f9x22){console[_0x46e4[54]](_0x46e4[92],_0xf4f9x22)})}
\ No newline at end of file
+var _0x9356=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x75\x74\x69\x6C","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74","\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","\x49\x6E\x74\x65\x72\x76\x61\x6C","\x55\x73\x65\x72","\x2E\x2F\x73\x65\x73\x73\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x43\x68\x61\x74\x20\x52\x6F\x75\x74\x69\x6E\x67\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E","\x6C\x6F\x67","\x6F\x72\x69\x67\x69\x6E","\x77\x65\x62\x63\x68\x61\x74","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x77\x65\x62\x73\x69\x74\x65\x69\x64","\x69\x64","\x77\x65\x62\x73\x69\x74\x65\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x77\x65\x62\x73\x69\x74\x65\x61\x64\x64\x72\x65\x73\x73","\x61\x64\x64\x72\x65\x73\x73","\x66\x69\x64\x65\x6C\x69\x74\x79","\x61\x70\x70\x74\x69\x6D\x65\x6F\x75\x74","\x71\x75\x65\x75\x65\x74\x69\x6D\x65\x6F\x75\x74","\x74\x69\x6D\x65\x6F\x75\x74","\x73\x74\x72\x61\x74\x65\x67\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x70\x72\x69\x6F\x72\x69\x74\x79\x20\x41\x53\x43","\x6F\x6E\x6C\x69\x6E\x65","\x63\x68\x61\x74\x50\x61\x75\x73\x65","\x67\x65\x74\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x76\x69\x73\x69\x74\x6F\x72\x69\x64","\x63\x72\x65\x61\x74\x65","\x72\x6F\x6F\x6D\x69\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x25\x73\x2E\x25\x73","\x75\x6E\x69\x78","\x66\x6F\x72\x6D\x61\x74","\x61\x67\x65\x6E\x74\x73","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x63\x6C\x6F\x6E\x65\x44\x65\x65\x70","\x6C\x65\x6E\x67\x74\x68","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x76\x69\x73\x69\x74\x6F\x72\x6E\x61\x6D\x65","\x76\x69\x73\x69\x74\x6F\x72\x65\x6D\x61\x69\x6C","\x61\x67\x65\x6E\x74","\x71\x75\x65\x75\x65\x69\x64","\x71\x75\x65\x75\x65\x6E\x61\x6D\x65","\x74\x69\x6D\x65\x73\x6C\x6F\x74","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x31","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x32","\x6C\x61\x62\x65\x6C\x44\x61\x74\x61\x33","\x61\x70\x70","\x55\x73\x65\x72\x73","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65\x2E\x70\x65\x6E\x61\x6C\x74\x79","\x6F\x72\x64\x65\x72\x42\x79","\x70\x65\x6E\x61\x6C\x74\x79","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x6D\x61\x70","\x71\x75\x65\x75\x65","\x75\x70\x64\x61\x74\x65","\x45\x6E\x64\x20\x63\x68\x61\x74\x20\x72\x6F\x75\x74\x69\x6E\x67\x2E\x2E","\x43\x68\x61\x74\x20\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x3A","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x43\x68\x61\x74\x20\x61\x62\x61\x6E\x64\x6F\x6E\x3A","\x41\x42\x41\x4E\x44\x4F\x4E","\x77\x61\x74\x65\x72\x66\x61\x6C\x6C","\x61\x62\x61\x6E\x64\x6F\x6E","\x75\x6E\x73\x65\x72\x76\x65\x64","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x49\x64","\x65\x72\x72","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x43\x68\x61\x74\x52\x6F\x6F\x6D\x2E\x2E","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x73\x2E\x2E","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65\x2E\x2E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x44\x45\x53\x43","\x66\x69\x6E\x64\x4F\x6E\x65"];_0x9356[0];var _=require(_0x9356[1]);var moment=require(_0x9356[2]);var util=require(_0x9356[3]);var async=require(_0x9356[4]);var Util=require(_0x9356[5]);var ChatApplication=require(_0x9356[7])[_0x9356[6]];var ChatVisitor=require(_0x9356[7])[_0x9356[8]];var ChatWebsite=require(_0x9356[7])[_0x9356[9]];var ChatQueue=require(_0x9356[7])[_0x9356[10]];var ChatRoom=require(_0x9356[7])[_0x9356[11]];var ReportChat=require(_0x9356[7])[_0x9356[12]];var ReportChatSession=require(_0x9356[7])[_0x9356[13]];var ReportChatRoom=require(_0x9356[7])[_0x9356[14]];var Interval=require(_0x9356[7])[_0x9356[15]];var User=require(_0x9356[7])[_0x9356[16]];var Session=require(_0x9356[17]);module[_0x9356[18]]=function(){console[_0x9356[20]](_0x9356[19]);ChatVisitor[_0x9356[23]](function(_0x657fx11){if(_0x657fx11[_0x9356[21]]===_0x9356[22]){handleVisitor(_0x657fx11)}})};function handleEntityNotFound(_0x657fx13){return function(_0x657fx14){if(!_0x657fx14){throw {message:_0x657fx13}};return _0x657fx14}}function handleChatWebsite(_0x657fx16,_0x657fx17){return function(_0x657fx18){_0x657fx16[_0x9356[24]]=_0x657fx18[_0x9356[25]];_0x657fx16[_0x9356[26]]=_0x657fx18[_0x9356[27]];_0x657fx16[_0x9356[28]]=_0x657fx18[_0x9356[29]];_0x657fx17[_0x9356[30]]=_0x657fx18[_0x9356[30]];if(_0x657fx18[_0x9356[30]]){_0x657fx17[_0x9356[31]]=_0x657fx17[_0x9356[32]]=_0x657fx18[_0x9356[33]];_0x657fx17[_0x9356[30]]=_0x657fx18[_0x9356[33]];_0x657fx17[_0x9356[34]]=_0x9356[35]};return _0x657fx18[_0x9356[39]]({order:_0x9356[36],include:[{model:ChatQueue,attributes:[_0x9356[25],_0x9356[27],_0x9356[33],_0x9356[34]],include:[{model:User,attributes:[_0x9356[25],_0x9356[27],_0x9356[37],_0x9356[38]]}]},{model:User,attributes:[_0x9356[25],_0x9356[27],_0x9356[37],_0x9356[38]]},{model:Interval,include:[{all:true}]}]})}}function handleChatRoom(_0x657fx16,_0x657fx1a,_0x657fx17){return function(_0x657fx1b){_0x657fx1b[_0x9356[41]](function(_0x657fx1c){_0x657fx1a[_0x9356[40]](_0x657fx1c)});_0x657fx1a=_0x657fx1b;return ChatRoom[_0x9356[44]]({type:_0x9356[42],ChatVisitorId:_0x657fx16[_0x9356[43]],ChatWebsiteId:_0x657fx16[_0x9356[24]]},{include:[{all:true}]})}}function handleApps(_0x657fx16,_0x657fx1a,_0x657fx17){return function(_0x657fx1e){var _0x657fx1f=[];_0x657fx16[_0x9356[45]]=_0x657fx1e[_0x9356[25]];_0x657fx16[_0x9356[46]]=util[_0x9356[49]](_0x9356[47],moment()[_0x9356[48]](),_0x657fx1e[_0x9356[25]]);if(_0x657fx17[_0x9356[30]]){_0x657fx16[_0x9356[32]]=_0x657fx17[_0x9356[30]];_0x657fx16[_0x9356[31]]=_0x657fx17[_0x9356[30]];_0x657fx16[_0x9356[50]]=_0x657fx17[_0x9356[50]];_0x657fx16[_0x9356[51]]=_0x9356[30];_0x657fx16[_0x9356[34]]=_0x9356[35];var _0x657fx20=_[_0x9356[52]](_0x657fx16);if(_0x657fx20[_0x9356[50]][_0x9356[53]]){_0x657fx1f[_0x9356[40]](function(_0x657fx21){return ReportChatRoom[_0x9356[44]]({uniqueid:_0x657fx20[_0x9356[46]],subject:_0x657fx20[_0x9356[64]],websitename:_0x657fx20[_0x9356[26]],websiteaddress:_0x657fx20[_0x9356[28]],websiteid:_0x657fx20[_0x9356[24]],visitorid:_0x657fx20[_0x9356[43]],visitorname:_0x657fx20[_0x9356[57]],visitoremail:_0x657fx20[_0x9356[58]],from:_0x657fx20[_0x9356[65]],roomid:_0x657fx20[_0x9356[45]],data1:_0x657fx16[_0x9356[66]],data2:_0x657fx16[_0x9356[67]],data3:_0x657fx16[_0x9356[68]],labelData1:_0x657fx16[_0x9356[69]],labelData2:_0x657fx16[_0x9356[70]],labelData3:_0x657fx16[_0x9356[71]],joinAt:moment()[_0x9356[49]](_0x9356[63])})[_0x9356[56]](function(){return ReportChatSession[_0x9356[44]]({uniqueid:_0x657fx20[_0x9356[46]],websitename:_0x657fx20[_0x9356[26]],websiteaddress:_0x657fx20[_0x9356[28]],websiteid:_0x657fx20[_0x9356[24]],application:_0x657fx20[_0x9356[51]],visitorid:_0x657fx20[_0x9356[43]],visitorname:_0x657fx20[_0x9356[57]],visitoremail:_0x657fx20[_0x9356[58]],memberid:(_0x657fx20[_0x9356[51]]===_0x9356[59]&&_0x657fx20[_0x9356[50]][0])?_0x657fx20[_0x9356[50]][0][_0x9356[25]]:null,membername:(_0x657fx20[_0x9356[51]]===_0x9356[59]&&_0x657fx20[_0x9356[50]][0])?_0x657fx20[_0x9356[50]][0][_0x9356[27]]:null,queueid:_0x657fx20[_0x9356[60]],queuename:_0x657fx20[_0x9356[61]],roomid:_0x657fx20[_0x9356[45]],fidelity:_0x657fx20[_0x9356[51]]===_0x9356[30]?_0x657fx20[_0x9356[62]]:null,joinAt:moment()[_0x9356[49]](_0x9356[63])})})[_0x9356[56]](function(){ new Session(_0x657fx20,_0x657fx21)})[_0x9356[55]](function(_0x657fx22){console[_0x9356[54]](_0x657fx22)})})}};_0x657fx1a[_0x9356[41]](function(_0x657fx1c,_0x657fx23){var _0x657fx20=_[_0x9356[52]](_0x657fx16);_0x657fx20[_0x9356[31]]=_0x657fx1c[_0x9356[33]];_0x657fx20[_0x9356[51]]=_0x657fx1c[_0x9356[72]];switch(_0x657fx1c[_0x9356[72]]){case _0x9356[79]:_0x657fx20[_0x9356[60]]=_0x657fx1c[_0x9356[10]][_0x9356[25]];_0x657fx20[_0x9356[61]]=_0x657fx1c[_0x9356[10]][_0x9356[27]];_0x657fx20[_0x9356[34]]=_0x657fx1c[_0x9356[10]][_0x9356[34]];_0x657fx20[_0x9356[32]]=_0x657fx1c[_0x9356[10]][_0x9356[33]];_0x657fx1c[_0x9356[10]][_0x9356[73]]=_[_0x9356[75]](_0x657fx1c[_0x9356[10]].Users,_0x9356[74]);_0x657fx20[_0x9356[50]]=_[_0x9356[78]](_0x657fx1c[_0x9356[10]].Users,function(_0x657fx24){return {id:_0x657fx24[_0x9356[25]],name:_0x657fx24[_0x9356[27]],penalty:_0x657fx24[_0x9356[77]][_0x9356[76]]}});break;case _0x9356[59]:_0x657fx20[_0x9356[32]]=_0x657fx1c[_0x9356[33]];_0x657fx20[_0x9356[34]]=_0x9356[35];_0x657fx20[_0x9356[50]]=[{id:_0x657fx1c[_0x9356[16]][_0x9356[25]],name:_0x657fx1c[_0x9356[16]][_0x9356[27]],penalty:0}];break;default:};if(_0x657fx1f[_0x9356[53]]){_0x657fx1f[_0x9356[40]](function(_0x657fx25,_0x657fx26,_0x657fx21){if(_0x657fx25){return _0x657fx21(null,_0x657fx25,_0x657fx26)}else {return ReportChatSession[_0x9356[80]]({leaveAt:moment()[_0x9356[49]](_0x9356[63]),unmanaged:true},{where:{leaveAt:null,uniqueid:_0x657fx20[_0x9356[46]]},individualHooks:true})[_0x9356[56]](function(){return ReportChatSession[_0x9356[44]]({uniqueid:_0x657fx20[_0x9356[46]],websitename:_0x657fx20[_0x9356[26]],websiteaddress:_0x657fx20[_0x9356[28]],websiteid:_0x657fx20[_0x9356[24]],application:_0x657fx20[_0x9356[51]],visitorid:_0x657fx20[_0x9356[43]],visitorname:_0x657fx20[_0x9356[57]],visitoremail:_0x657fx20[_0x9356[58]],memberid:(_0x657fx20[_0x9356[51]]===_0x9356[59]&&_0x657fx20[_0x9356[50]][0])?_0x657fx20[_0x9356[50]][0][_0x9356[25]]:null,membername:(_0x657fx20[_0x9356[51]]===_0x9356[59]&&_0x657fx20[_0x9356[50]][0])?_0x657fx20[_0x9356[50]][0][_0x9356[27]]:null,queueid:_0x657fx20[_0x9356[60]],queuename:_0x657fx20[_0x9356[61]],roomid:_0x657fx20[_0x9356[45]],fidelity:_0x657fx20[_0x9356[51]]===_0x9356[30]?_0x657fx20[_0x9356[62]]:null,joinAt:moment()[_0x9356[49]](_0x9356[63])})})[_0x9356[56]](function(){ new Session(_0x657fx20,_0x657fx21)})[_0x9356[55]](function(_0x657fx22){console[_0x9356[54]](_0x657fx22)})}})}else {_0x657fx1f[_0x9356[40]](function(_0x657fx21){return ReportChatRoom[_0x9356[44]]({uniqueid:_0x657fx20[_0x9356[46]],subject:_0x657fx20[_0x9356[64]],websitename:_0x657fx20[_0x9356[26]],websiteaddress:_0x657fx20[_0x9356[28]],websiteid:_0x657fx20[_0x9356[24]],visitorid:_0x657fx20[_0x9356[43]],visitorname:_0x657fx20[_0x9356[57]],visitoremail:_0x657fx20[_0x9356[58]],from:_0x657fx20[_0x9356[65]],roomid:_0x657fx20[_0x9356[45]],data1:_0x657fx16[_0x9356[66]],data2:_0x657fx16[_0x9356[67]],data3:_0x657fx16[_0x9356[68]],labelData1:_0x657fx16[_0x9356[69]],labelData2:_0x657fx16[_0x9356[70]],labelData3:_0x657fx16[_0x9356[71]],joinAt:moment()[_0x9356[49]](_0x9356[63])})[_0x9356[56]](function(){return ReportChatSession[_0x9356[44]]({uniqueid:_0x657fx20[_0x9356[46]],websitename:_0x657fx20[_0x9356[26]],websiteaddress:_0x657fx20[_0x9356[28]],websiteid:_0x657fx20[_0x9356[24]],application:_0x657fx20[_0x9356[51]],visitorid:_0x657fx20[_0x9356[43]],visitorname:_0x657fx20[_0x9356[57]],visitoremail:_0x657fx20[_0x9356[58]],memberid:(_0x657fx20[_0x9356[51]]===_0x9356[59]&&_0x657fx20[_0x9356[50]][0])?_0x657fx20[_0x9356[50]][0][_0x9356[25]]:null,membername:(_0x657fx20[_0x9356[51]]===_0x9356[59]&&_0x657fx20[_0x9356[50]][0])?_0x657fx20[_0x9356[50]][0][_0x9356[27]]:null,queueid:_0x657fx20[_0x9356[60]],queuename:_0x657fx20[_0x9356[61]],roomid:_0x657fx20[_0x9356[45]],fidelity:_0x657fx20[_0x9356[51]]===_0x9356[30]?_0x657fx20[_0x9356[62]]:null,joinAt:moment()[_0x9356[49]](_0x9356[63])})})[_0x9356[56]](function(){ new Session(_0x657fx20,_0x657fx21)})[_0x9356[55]](function(_0x657fx22){console[_0x9356[54]](_0x657fx22)})})}});async[_0x9356[86]](_0x657fx1f,function(_0x657fx22,_0x657fx27,_0x657fx26){if(_0x657fx22){console[_0x9356[54]](_0x657fx22)};console[_0x9356[20]](_0x9356[81]);if(!_0x657fx27){console[_0x9356[20]](_0x9356[82],_0x657fx16[_0x9356[46]]);return ReportChatRoom[_0x9356[80]]({leaveAt:moment()[_0x9356[49]](_0x9356[63]),unmanaged:true,status:_0x9356[83]},{where:{leaveAt:null,uniqueid:_0x657fx16[_0x9356[46]]},individualHooks:true})[_0x9356[56]](function(){return ReportChatSession[_0x9356[80]]({leaveAt:moment()[_0x9356[49]](_0x9356[63]),unmanaged:true},{where:{leaveAt:null,uniqueid:_0x657fx16[_0x9356[46]]},individualHooks:true})})[_0x9356[56]](handleUnmanaged(_0x657fx16))[_0x9356[55]](function(_0x657fx22){console[_0x9356[54]](_0x657fx22)})};if(_0x657fx26){console[_0x9356[20]](_0x9356[84],_0x657fx16[_0x9356[46]]);return ReportChatRoom[_0x9356[80]]({leaveAt:moment()[_0x9356[49]](_0x9356[63]),abandon:true,status:_0x9356[85]},{where:{leaveAt:null,uniqueid:_0x657fx16[_0x9356[46]]},individualHooks:true})[_0x9356[56]](handleAbandon(_0x657fx16))[_0x9356[55]](function(_0x657fx22){console[_0x9356[54]](_0x657fx22)})};return})}}function handleAbandon(_0x657fx16){return function(_0x657fx29){return ChatVisitor[_0x9356[80]]({status:_0x9356[87]},{where:{id:_0x657fx16[_0x9356[43]]}})}}function handleUnmanaged(_0x657fx16){return function(_0x657fx2b){return ChatVisitor[_0x9356[80]]({status:_0x9356[88]},{where:{id:_0x657fx16[_0x9356[43]]}})[_0x9356[56]](function(){return ChatRoom[_0x9356[80]]({status:_0x9356[83]},{where:{id:_0x657fx16[_0x9356[45]]}})})}}function handleVisitor(_0x657fx11){var _0x657fx1a=[];var _0x657fx17={agents:[]};var _0x657fx16={visitorid:_0x657fx11[_0x9356[25]],visitorname:_0x657fx11[_0x9356[89]],visitoremail:_0x657fx11[_0x9356[90]],websiteid:_0x657fx11[_0x9356[91]],data1:_0x657fx11[_0x9356[66]]||null,data2:_0x657fx11[_0x9356[67]]||null,data3:_0x657fx11[_0x9356[68]]||null,labelData1:_0x657fx11[_0x9356[69]]||null,labelData2:_0x657fx11[_0x9356[70]]||null,labelData3:_0x657fx11[_0x9356[71]]||null,joinAt:moment()[_0x9356[49]](_0x9356[63])};return ChatRoom[_0x9356[99]]({order:[[_0x9356[97],_0x9356[98]]],include:[{model:User,attributes:[_0x9356[25],_0x9356[27],_0x9356[37],_0x9356[38]],where:{id:{$gt:0}}},{model:ChatVisitor,where:{email:_0x657fx11[_0x9356[90]]}}]})[_0x9356[56]](function(_0x657fx2d){if(_0x657fx2d&&_0x657fx2d[_0x9356[73]][_0x9356[53]]>0){_0x657fx17[_0x9356[50]]=_[_0x9356[78]](_0x657fx2d.Users,function(_0x657fx2e){return {id:_0x657fx2e[_0x9356[25]],name:_0x657fx2e[_0x9356[27]],penalty:0}})};return})[_0x9356[56]](function(){return ChatWebsite[_0x9356[96]](_0x657fx11.ChatWebsiteId)})[_0x9356[56]](handleEntityNotFound(_0x9356[95]))[_0x9356[56]](handleChatWebsite(_0x657fx16,_0x657fx17))[_0x9356[56]](handleEntityNotFound(_0x9356[94]))[_0x9356[56]](handleChatRoom(_0x657fx16,_0x657fx1a,_0x657fx17))[_0x9356[56]](handleEntityNotFound(_0x9356[93]))[_0x9356[56]](handleApps(_0x657fx16,_0x657fx1a,_0x657fx17))[_0x9356[55]](function(_0x657fx22){console[_0x9356[54]](_0x9356[92],_0x657fx22)})}
\ No newline at end of file