Built motion from commit d3d6ca497.|1.0.32
[motion.git] / server / api / report_chat_session / report_chat_session.socket.js
index 2dc72d4..75f43e5 100644 (file)
@@ -1 +1 @@
-var _0x4eef=["\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"];_0x4eef[0];const ReportChatSessionEvents=require(_0x4eef[1]);const ReportChatSession=require(_0x4eef[3])[_0x4eef[2]];const User=require(_0x4eef[3])[_0x4eef[4]];const Util=require(_0x4eef[5]);const _=require(_0x4eef[6]);const Promise=require(_0x4eef[7]);var events=[_0x4eef[8],_0x4eef[9]];exports[_0x4eef[10]]= function(_0x6cfdx8){for(var _0x6cfdx9=0,_0x6cfdxa=events[_0x4eef[11]];_0x6cfdx9< _0x6cfdxa;_0x6cfdx9++){var _0x6cfdxb=events[_0x6cfdx9];var _0x6cfdxc=createListener(_0x4eef[12]+ _0x6cfdxb,_0x6cfdx8);ReportChatSessionEvents[_0x4eef[13]](_0x6cfdxb,_0x6cfdxc);_0x6cfdx8[_0x4eef[13]](_0x4eef[14],removeListener(_0x6cfdxb,_0x6cfdxc))}};function createListener(_0x6cfdxb,_0x6cfdx8){return function(_0x6cfdxe){onSave(_0x6cfdx8,_0x6cfdxe)}}function removeListener(_0x6cfdxb,_0x6cfdxc){return function(){ReportChatSessionEvents[_0x4eef[15]](_0x6cfdxb,_0x6cfdxc)}}function getChatQueues(_0x6cfdx11){return function(){switch(_0x6cfdx11[_0x4eef[28]]){case _0x4eef[25]:return User[_0x4eef[24]](_0x6cfdx11[_0x4eef[23]],{attributes:[_0x4eef[16]]})[_0x4eef[21]](Util[_0x4eef[22]]({},{attributes:[_0x4eef[16]],include:[{raw:true,model:User,attributes:[_0x4eef[16]]}]}))[_0x4eef[21]](function(_0x6cfdx12){var _0x6cfdx13=[];_0x6cfdx12[_0x4eef[20]][_0x4eef[19]](function(_0x6cfdx14){_0x6cfdx13= _[_0x4eef[18]](_0x6cfdx13,_[_0x4eef[17]](_0x6cfdx14.Users,_0x4eef[16]))});return {queue:_[_0x4eef[17]](_0x6cfdx12[_0x4eef[20]],_0x4eef[16]),memberid:_0x6cfdx13}});case _0x4eef[27]:return User[_0x4eef[24]](_0x6cfdx11[_0x4eef[23]],{attributes:[_0x4eef[16]]})[_0x4eef[21]](function(_0x6cfdx15){return _0x6cfdx15[_0x4eef[26]]({attributes:[_0x4eef[16]]})})[_0x4eef[21]](function(_0x6cfdx12){return {queue:_[_0x4eef[17]](_0x6cfdx12,_0x4eef[16]),memberid:_0x6cfdx11[_0x4eef[23]]}});default:return {}}}}function onSave(_0x6cfdx8,_0x6cfdxe,_0x6cfdx17){return Promise[_0x4eef[38]]([])[_0x4eef[21]](getChatQueues(_0x6cfdx8))[_0x4eef[21]](function(_0x6cfdx19){if(_0x6cfdx8[_0x4eef[28]]=== _0x4eef[32]|| _[_0x4eef[34]](_0x6cfdx19[_0x4eef[33]],_0x6cfdxe[_0x4eef[33]])|| _[_0x4eef[34]](_0x6cfdx19[_0x4eef[35]],_0x6cfdxe[_0x4eef[35]])){_0x6cfdx8[_0x4eef[37]](_0x4eef[36],_0x6cfdxe)}})[_0x4eef[31]](function(_0x6cfdx18){console[_0x4eef[30]](_0x4eef[29],_0x6cfdx18)})}function onRemove(_0x6cfdx8,_0x6cfdxe,_0x6cfdx17){_0x6cfdx8[_0x4eef[37]](_0x4eef[39],_0x6cfdxe)}
\ No newline at end of file
+var _0x8870=["\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"];_0x8870[0];const ReportChatSessionEvents=require(_0x8870[1]);const ReportChatSession=require(_0x8870[3])[_0x8870[2]];const User=require(_0x8870[3])[_0x8870[4]];const Util=require(_0x8870[5]);const _=require(_0x8870[6]);const Promise=require(_0x8870[7]);var events=[_0x8870[8],_0x8870[9]];exports[_0x8870[10]]= function(_0xeb17x8){for(var _0xeb17x9=0,_0xeb17xa=events[_0x8870[11]];_0xeb17x9< _0xeb17xa;_0xeb17x9++){var _0xeb17xb=events[_0xeb17x9];var _0xeb17xc=createListener(_0x8870[12]+ _0xeb17xb,_0xeb17x8);ReportChatSessionEvents[_0x8870[13]](_0xeb17xb,_0xeb17xc);_0xeb17x8[_0x8870[13]](_0x8870[14],removeListener(_0xeb17xb,_0xeb17xc))}};function createListener(_0xeb17xb,_0xeb17x8){return function(_0xeb17xe){onSave(_0xeb17x8,_0xeb17xe)}}function removeListener(_0xeb17xb,_0xeb17xc){return function(){ReportChatSessionEvents[_0x8870[15]](_0xeb17xb,_0xeb17xc)}}function getChatQueues(_0xeb17x11){return function(){switch(_0xeb17x11[_0x8870[28]]){case _0x8870[25]:return User[_0x8870[24]](_0xeb17x11[_0x8870[23]],{attributes:[_0x8870[16]]})[_0x8870[21]](Util[_0x8870[22]]({},{attributes:[_0x8870[16]],include:[{raw:true,model:User,attributes:[_0x8870[16]]}]}))[_0x8870[21]](function(_0xeb17x12){var _0xeb17x13=[];_0xeb17x12[_0x8870[20]][_0x8870[19]](function(_0xeb17x14){_0xeb17x13= _[_0x8870[18]](_0xeb17x13,_[_0x8870[17]](_0xeb17x14.Users,_0x8870[16]))});return {queue:_[_0x8870[17]](_0xeb17x12[_0x8870[20]],_0x8870[16]),memberid:_0xeb17x13}});case _0x8870[27]:return User[_0x8870[24]](_0xeb17x11[_0x8870[23]],{attributes:[_0x8870[16]]})[_0x8870[21]](function(_0xeb17x15){return _0xeb17x15[_0x8870[26]]({attributes:[_0x8870[16]]})})[_0x8870[21]](function(_0xeb17x12){return {queue:_[_0x8870[17]](_0xeb17x12,_0x8870[16]),memberid:_0xeb17x11[_0x8870[23]]}});default:return {}}}}function onSave(_0xeb17x8,_0xeb17xe,_0xeb17x17){return Promise[_0x8870[38]]([])[_0x8870[21]](getChatQueues(_0xeb17x8))[_0x8870[21]](function(_0xeb17x19){if(_0xeb17x8[_0x8870[28]]=== _0x8870[32]|| _[_0x8870[34]](_0xeb17x19[_0x8870[33]],_0xeb17xe[_0x8870[33]])|| _[_0x8870[34]](_0xeb17x19[_0x8870[35]],_0xeb17xe[_0x8870[35]])){_0xeb17x8[_0x8870[37]](_0x8870[36],_0xeb17xe)}})[_0x8870[31]](function(_0xeb17x18){console[_0x8870[30]](_0x8870[29],_0xeb17x18)})}function onRemove(_0xeb17x8,_0xeb17xe,_0xeb17x17){_0xeb17x8[_0x8870[37]](_0x8870[39],_0xeb17xe)}
\ No newline at end of file