Built motion from commit 943eae279.|1.0.24
[motion.git] / server / api / report_chat_session / report_chat_session.socket.js
index 78d8600..2194892 100644 (file)
@@ -1 +1 @@
-var _0xf192=["\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"];_0xf192[0];const ReportChatSessionEvents=require(_0xf192[1]);const ReportChatSession=require(_0xf192[3])[_0xf192[2]];const User=require(_0xf192[3])[_0xf192[4]];const Util=require(_0xf192[5]);const _=require(_0xf192[6]);const Promise=require(_0xf192[7]);var events=[_0xf192[8],_0xf192[9]];exports[_0xf192[10]]= function(_0xa264x8){for(var _0xa264x9=0,_0xa264xa=events[_0xf192[11]];_0xa264x9< _0xa264xa;_0xa264x9++){var _0xa264xb=events[_0xa264x9];var _0xa264xc=createListener(_0xf192[12]+ _0xa264xb,_0xa264x8);ReportChatSessionEvents[_0xf192[13]](_0xa264xb,_0xa264xc);_0xa264x8[_0xf192[13]](_0xf192[14],removeListener(_0xa264xb,_0xa264xc))}};function createListener(_0xa264xb,_0xa264x8){return function(_0xa264xe){onSave(_0xa264x8,_0xa264xe)}}function removeListener(_0xa264xb,_0xa264xc){return function(){ReportChatSessionEvents[_0xf192[15]](_0xa264xb,_0xa264xc)}}function getChatQueues(_0xa264x11){return function(){switch(_0xa264x11[_0xf192[28]]){case _0xf192[25]:return User[_0xf192[24]](_0xa264x11[_0xf192[23]],{attributes:[_0xf192[16]]})[_0xf192[21]](Util[_0xf192[22]]({},{attributes:[_0xf192[16]],include:[{raw:true,model:User,attributes:[_0xf192[16]]}]}))[_0xf192[21]](function(_0xa264x12){var _0xa264x13=[];_0xa264x12[_0xf192[20]][_0xf192[19]](function(_0xa264x14){_0xa264x13= _[_0xf192[18]](_0xa264x13,_[_0xf192[17]](_0xa264x14.Users,_0xf192[16]))});return {queue:_[_0xf192[17]](_0xa264x12[_0xf192[20]],_0xf192[16]),memberid:_0xa264x13}});case _0xf192[27]:return User[_0xf192[24]](_0xa264x11[_0xf192[23]],{attributes:[_0xf192[16]]})[_0xf192[21]](function(_0xa264x15){return _0xa264x15[_0xf192[26]]({attributes:[_0xf192[16]]})})[_0xf192[21]](function(_0xa264x12){return {queue:_[_0xf192[17]](_0xa264x12,_0xf192[16]),memberid:_0xa264x11[_0xf192[23]]}});default:return {}}}}function onSave(_0xa264x8,_0xa264xe,_0xa264x17){return Promise[_0xf192[38]]([])[_0xf192[21]](getChatQueues(_0xa264x8))[_0xf192[21]](function(_0xa264x19){if(_0xa264x8[_0xf192[28]]=== _0xf192[32]|| _[_0xf192[34]](_0xa264x19[_0xf192[33]],_0xa264xe[_0xf192[33]])|| _[_0xf192[34]](_0xa264x19[_0xf192[35]],_0xa264xe[_0xf192[35]])){_0xa264x8[_0xf192[37]](_0xf192[36],_0xa264xe)}})[_0xf192[31]](function(_0xa264x18){console[_0xf192[30]](_0xf192[29],_0xa264x18)})}function onRemove(_0xa264x8,_0xa264xe,_0xa264x17){_0xa264x8[_0xf192[37]](_0xf192[39],_0xa264xe)}
\ No newline at end of file
+var _0x290c=["\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"];_0x290c[0];const ReportChatSessionEvents=require(_0x290c[1]);const ReportChatSession=require(_0x290c[3])[_0x290c[2]];const User=require(_0x290c[3])[_0x290c[4]];const Util=require(_0x290c[5]);const _=require(_0x290c[6]);const Promise=require(_0x290c[7]);var events=[_0x290c[8],_0x290c[9]];exports[_0x290c[10]]= function(_0xefeax8){for(var _0xefeax9=0,_0xefeaxa=events[_0x290c[11]];_0xefeax9< _0xefeaxa;_0xefeax9++){var _0xefeaxb=events[_0xefeax9];var _0xefeaxc=createListener(_0x290c[12]+ _0xefeaxb,_0xefeax8);ReportChatSessionEvents[_0x290c[13]](_0xefeaxb,_0xefeaxc);_0xefeax8[_0x290c[13]](_0x290c[14],removeListener(_0xefeaxb,_0xefeaxc))}};function createListener(_0xefeaxb,_0xefeax8){return function(_0xefeaxe){onSave(_0xefeax8,_0xefeaxe)}}function removeListener(_0xefeaxb,_0xefeaxc){return function(){ReportChatSessionEvents[_0x290c[15]](_0xefeaxb,_0xefeaxc)}}function getChatQueues(_0xefeax11){return function(){switch(_0xefeax11[_0x290c[28]]){case _0x290c[25]:return User[_0x290c[24]](_0xefeax11[_0x290c[23]],{attributes:[_0x290c[16]]})[_0x290c[21]](Util[_0x290c[22]]({},{attributes:[_0x290c[16]],include:[{raw:true,model:User,attributes:[_0x290c[16]]}]}))[_0x290c[21]](function(_0xefeax12){var _0xefeax13=[];_0xefeax12[_0x290c[20]][_0x290c[19]](function(_0xefeax14){_0xefeax13= _[_0x290c[18]](_0xefeax13,_[_0x290c[17]](_0xefeax14.Users,_0x290c[16]))});return {queue:_[_0x290c[17]](_0xefeax12[_0x290c[20]],_0x290c[16]),memberid:_0xefeax13}});case _0x290c[27]:return User[_0x290c[24]](_0xefeax11[_0x290c[23]],{attributes:[_0x290c[16]]})[_0x290c[21]](function(_0xefeax15){return _0xefeax15[_0x290c[26]]({attributes:[_0x290c[16]]})})[_0x290c[21]](function(_0xefeax12){return {queue:_[_0x290c[17]](_0xefeax12,_0x290c[16]),memberid:_0xefeax11[_0x290c[23]]}});default:return {}}}}function onSave(_0xefeax8,_0xefeaxe,_0xefeax17){return Promise[_0x290c[38]]([])[_0x290c[21]](getChatQueues(_0xefeax8))[_0x290c[21]](function(_0xefeax19){if(_0xefeax8[_0x290c[28]]=== _0x290c[32]|| _[_0x290c[34]](_0xefeax19[_0x290c[33]],_0xefeaxe[_0x290c[33]])|| _[_0x290c[34]](_0xefeax19[_0x290c[35]],_0xefeaxe[_0x290c[35]])){_0xefeax8[_0x290c[37]](_0x290c[36],_0xefeaxe)}})[_0x290c[31]](function(_0xefeax18){console[_0x290c[30]](_0x290c[29],_0xefeax18)})}function onRemove(_0xefeax8,_0xefeaxe,_0xefeax17){_0xefeax8[_0x290c[37]](_0x290c[39],_0xefeaxe)}
\ No newline at end of file