Built motion from commit 0c27b27.|1.0.11
[motion.git] / server / api / report_chat_session / report_chat_session.socket.js
index a002c3b..f3daf34 100644 (file)
@@ -1 +1 @@
-var _0xca6e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x65\x76\x65\x6E\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x69\x64","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x75\x73\x65\x72\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x45\x72\x72\x6F\x72\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x72\x65\x70\x6F\x72\x74\x20\x63\x68\x61\x74\x20\x73\x65\x73\x73\x69\x6F\x6E\x73\x20\x61\x66\x74\x65\x72\x20\x73\x61\x76\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x61\x64\x6D\x69\x6E","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x71\x75\x65\x75\x65","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x6C\x6C","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0xca6e[0];const ReportChatSessionEvents=require(_0xca6e[1]);const ReportChatSession=require(_0xca6e[3])[_0xca6e[2]];const User=require(_0xca6e[3])[_0xca6e[4]];const Util=require(_0xca6e[5]);const _=require(_0xca6e[6]);const Promise=require(_0xca6e[7]);var events=[_0xca6e[8],_0xca6e[9]];exports[_0xca6e[10]]= function(_0xdb35x8){for(var _0xdb35x9=0,_0xdb35xa=events[_0xca6e[11]];_0xdb35x9< _0xdb35xa;_0xdb35x9++){var _0xdb35xb=events[_0xdb35x9];var _0xdb35xc=createListener(_0xca6e[12]+ _0xdb35xb,_0xdb35x8);ReportChatSessionEvents[_0xca6e[13]](_0xdb35xb,_0xdb35xc);_0xdb35x8[_0xca6e[13]](_0xca6e[14],removeListener(_0xdb35xb,_0xdb35xc))}};function createListener(_0xdb35xb,_0xdb35x8){return function(_0xdb35xe){onSave(_0xdb35x8,_0xdb35xe)}}function removeListener(_0xdb35xb,_0xdb35xc){return function(){ReportChatSessionEvents[_0xca6e[15]](_0xdb35xb,_0xdb35xc)}}function getChatQueues(_0xdb35x11){return function(){switch(_0xdb35x11[_0xca6e[28]]){case _0xca6e[25]:return User[_0xca6e[24]](_0xdb35x11[_0xca6e[23]],{attributes:[_0xca6e[16]]})[_0xca6e[21]](Util[_0xca6e[22]]({},{attributes:[_0xca6e[16]],include:[{raw:true,model:User,attributes:[_0xca6e[16]]}]}))[_0xca6e[21]](function(_0xdb35x12){var _0xdb35x13=[];_0xdb35x12[_0xca6e[20]][_0xca6e[19]](function(_0xdb35x14){_0xdb35x13= _[_0xca6e[18]](_0xdb35x13,_[_0xca6e[17]](_0xdb35x14.Users,_0xca6e[16]))});return {queue:_[_0xca6e[17]](_0xdb35x12[_0xca6e[20]],_0xca6e[16]),memberid:_0xdb35x13}});case _0xca6e[27]:return User[_0xca6e[24]](_0xdb35x11[_0xca6e[23]],{attributes:[_0xca6e[16]]})[_0xca6e[21]](function(_0xdb35x15){return _0xdb35x15[_0xca6e[26]]({attributes:[_0xca6e[16]]})})[_0xca6e[21]](function(_0xdb35x12){return {queue:_[_0xca6e[17]](_0xdb35x12,_0xca6e[16]),memberid:_0xdb35x11[_0xca6e[23]]}});default:return {}}}}function onSave(_0xdb35x8,_0xdb35xe,_0xdb35x17){return Promise[_0xca6e[38]]([])[_0xca6e[21]](getChatQueues(_0xdb35x8))[_0xca6e[21]](function(_0xdb35x19){if(_0xdb35x8[_0xca6e[28]]=== _0xca6e[32]|| _[_0xca6e[34]](_0xdb35x19[_0xca6e[33]],_0xdb35xe[_0xca6e[33]])|| _[_0xca6e[34]](_0xdb35x19[_0xca6e[35]],_0xdb35xe[_0xca6e[35]])){_0xdb35x8[_0xca6e[37]](_0xca6e[36],_0xdb35xe)}})[_0xca6e[31]](function(_0xdb35x18){console[_0xca6e[30]](_0xca6e[29],_0xdb35x18)})}function onRemove(_0xdb35x8,_0xdb35xe,_0xdb35x17){_0xdb35x8[_0xca6e[37]](_0xca6e[39],_0xdb35xe)}
\ No newline at end of file
+var _0x3489=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x2E\x65\x76\x65\x6E\x74\x73","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x69\x64","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x75\x73\x65\x72\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x45\x72\x72\x6F\x72\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x72\x65\x70\x6F\x72\x74\x20\x63\x68\x61\x74\x20\x73\x65\x73\x73\x69\x6F\x6E\x73\x20\x61\x66\x74\x65\x72\x20\x73\x61\x76\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x61\x64\x6D\x69\x6E","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x71\x75\x65\x75\x65","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x6C\x6C","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x72\x65\x6D\x6F\x76\x65"];_0x3489[0];const ReportChatSessionEvents=require(_0x3489[1]);const ReportChatSession=require(_0x3489[3])[_0x3489[2]];const User=require(_0x3489[3])[_0x3489[4]];const Util=require(_0x3489[5]);const _=require(_0x3489[6]);const Promise=require(_0x3489[7]);var events=[_0x3489[8],_0x3489[9]];exports[_0x3489[10]]= function(_0xfc70x8){for(var _0xfc70x9=0,_0xfc70xa=events[_0x3489[11]];_0xfc70x9< _0xfc70xa;_0xfc70x9++){var _0xfc70xb=events[_0xfc70x9];var _0xfc70xc=createListener(_0x3489[12]+ _0xfc70xb,_0xfc70x8);ReportChatSessionEvents[_0x3489[13]](_0xfc70xb,_0xfc70xc);_0xfc70x8[_0x3489[13]](_0x3489[14],removeListener(_0xfc70xb,_0xfc70xc))}};function createListener(_0xfc70xb,_0xfc70x8){return function(_0xfc70xe){onSave(_0xfc70x8,_0xfc70xe)}}function removeListener(_0xfc70xb,_0xfc70xc){return function(){ReportChatSessionEvents[_0x3489[15]](_0xfc70xb,_0xfc70xc)}}function getChatQueues(_0xfc70x11){return function(){switch(_0xfc70x11[_0x3489[28]]){case _0x3489[25]:return User[_0x3489[24]](_0xfc70x11[_0x3489[23]],{attributes:[_0x3489[16]]})[_0x3489[21]](Util[_0x3489[22]]({},{attributes:[_0x3489[16]],include:[{raw:true,model:User,attributes:[_0x3489[16]]}]}))[_0x3489[21]](function(_0xfc70x12){var _0xfc70x13=[];_0xfc70x12[_0x3489[20]][_0x3489[19]](function(_0xfc70x14){_0xfc70x13= _[_0x3489[18]](_0xfc70x13,_[_0x3489[17]](_0xfc70x14.Users,_0x3489[16]))});return {queue:_[_0x3489[17]](_0xfc70x12[_0x3489[20]],_0x3489[16]),memberid:_0xfc70x13}});case _0x3489[27]:return User[_0x3489[24]](_0xfc70x11[_0x3489[23]],{attributes:[_0x3489[16]]})[_0x3489[21]](function(_0xfc70x15){return _0xfc70x15[_0x3489[26]]({attributes:[_0x3489[16]]})})[_0x3489[21]](function(_0xfc70x12){return {queue:_[_0x3489[17]](_0xfc70x12,_0x3489[16]),memberid:_0xfc70x11[_0x3489[23]]}});default:return {}}}}function onSave(_0xfc70x8,_0xfc70xe,_0xfc70x17){return Promise[_0x3489[38]]([])[_0x3489[21]](getChatQueues(_0xfc70x8))[_0x3489[21]](function(_0xfc70x19){if(_0xfc70x8[_0x3489[28]]=== _0x3489[32]|| _[_0x3489[34]](_0xfc70x19[_0x3489[33]],_0xfc70xe[_0x3489[33]])|| _[_0x3489[34]](_0xfc70x19[_0x3489[35]],_0xfc70xe[_0x3489[35]])){_0xfc70x8[_0x3489[37]](_0x3489[36],_0xfc70xe)}})[_0x3489[31]](function(_0xfc70x18){console[_0x3489[30]](_0x3489[29],_0xfc70x18)})}function onRemove(_0xfc70x8,_0xfc70xe,_0xfc70x17){_0xfc70x8[_0x3489[37]](_0x3489[39],_0xfc70xe)}
\ No newline at end of file