Built motion from commit 55324429e.|1.0.25
[motion.git] / server / api / report_chat_session / report_chat_session.socket.js
index 240cac7..3a45f0e 100644 (file)
@@ -1 +1 @@
-var _0x6dc9=["\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"];_0x6dc9[0];const ReportChatSessionEvents=require(_0x6dc9[1]);const ReportChatSession=require(_0x6dc9[3])[_0x6dc9[2]];const User=require(_0x6dc9[3])[_0x6dc9[4]];const Util=require(_0x6dc9[5]);const _=require(_0x6dc9[6]);const Promise=require(_0x6dc9[7]);var events=[_0x6dc9[8],_0x6dc9[9]];exports[_0x6dc9[10]]= function(_0xe8bfx8){for(var _0xe8bfx9=0,_0xe8bfxa=events[_0x6dc9[11]];_0xe8bfx9< _0xe8bfxa;_0xe8bfx9++){var _0xe8bfxb=events[_0xe8bfx9];var _0xe8bfxc=createListener(_0x6dc9[12]+ _0xe8bfxb,_0xe8bfx8);ReportChatSessionEvents[_0x6dc9[13]](_0xe8bfxb,_0xe8bfxc);_0xe8bfx8[_0x6dc9[13]](_0x6dc9[14],removeListener(_0xe8bfxb,_0xe8bfxc))}};function createListener(_0xe8bfxb,_0xe8bfx8){return function(_0xe8bfxe){onSave(_0xe8bfx8,_0xe8bfxe)}}function removeListener(_0xe8bfxb,_0xe8bfxc){return function(){ReportChatSessionEvents[_0x6dc9[15]](_0xe8bfxb,_0xe8bfxc)}}function getChatQueues(_0xe8bfx11){return function(){switch(_0xe8bfx11[_0x6dc9[28]]){case _0x6dc9[25]:return User[_0x6dc9[24]](_0xe8bfx11[_0x6dc9[23]],{attributes:[_0x6dc9[16]]})[_0x6dc9[21]](Util[_0x6dc9[22]]({},{attributes:[_0x6dc9[16]],include:[{raw:true,model:User,attributes:[_0x6dc9[16]]}]}))[_0x6dc9[21]](function(_0xe8bfx12){var _0xe8bfx13=[];_0xe8bfx12[_0x6dc9[20]][_0x6dc9[19]](function(_0xe8bfx14){_0xe8bfx13= _[_0x6dc9[18]](_0xe8bfx13,_[_0x6dc9[17]](_0xe8bfx14.Users,_0x6dc9[16]))});return {queue:_[_0x6dc9[17]](_0xe8bfx12[_0x6dc9[20]],_0x6dc9[16]),memberid:_0xe8bfx13}});case _0x6dc9[27]:return User[_0x6dc9[24]](_0xe8bfx11[_0x6dc9[23]],{attributes:[_0x6dc9[16]]})[_0x6dc9[21]](function(_0xe8bfx15){return _0xe8bfx15[_0x6dc9[26]]({attributes:[_0x6dc9[16]]})})[_0x6dc9[21]](function(_0xe8bfx12){return {queue:_[_0x6dc9[17]](_0xe8bfx12,_0x6dc9[16]),memberid:_0xe8bfx11[_0x6dc9[23]]}});default:return {}}}}function onSave(_0xe8bfx8,_0xe8bfxe,_0xe8bfx17){return Promise[_0x6dc9[38]]([])[_0x6dc9[21]](getChatQueues(_0xe8bfx8))[_0x6dc9[21]](function(_0xe8bfx19){if(_0xe8bfx8[_0x6dc9[28]]=== _0x6dc9[32]|| _[_0x6dc9[34]](_0xe8bfx19[_0x6dc9[33]],_0xe8bfxe[_0x6dc9[33]])|| _[_0x6dc9[34]](_0xe8bfx19[_0x6dc9[35]],_0xe8bfxe[_0x6dc9[35]])){_0xe8bfx8[_0x6dc9[37]](_0x6dc9[36],_0xe8bfxe)}})[_0x6dc9[31]](function(_0xe8bfx18){console[_0x6dc9[30]](_0x6dc9[29],_0xe8bfx18)})}function onRemove(_0xe8bfx8,_0xe8bfxe,_0xe8bfx17){_0xe8bfx8[_0x6dc9[37]](_0x6dc9[39],_0xe8bfxe)}
\ No newline at end of file
+var _0x17ab=["\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"];_0x17ab[0];const ReportChatSessionEvents=require(_0x17ab[1]);const ReportChatSession=require(_0x17ab[3])[_0x17ab[2]];const User=require(_0x17ab[3])[_0x17ab[4]];const Util=require(_0x17ab[5]);const _=require(_0x17ab[6]);const Promise=require(_0x17ab[7]);var events=[_0x17ab[8],_0x17ab[9]];exports[_0x17ab[10]]= function(_0x52fbx8){for(var _0x52fbx9=0,_0x52fbxa=events[_0x17ab[11]];_0x52fbx9< _0x52fbxa;_0x52fbx9++){var _0x52fbxb=events[_0x52fbx9];var _0x52fbxc=createListener(_0x17ab[12]+ _0x52fbxb,_0x52fbx8);ReportChatSessionEvents[_0x17ab[13]](_0x52fbxb,_0x52fbxc);_0x52fbx8[_0x17ab[13]](_0x17ab[14],removeListener(_0x52fbxb,_0x52fbxc))}};function createListener(_0x52fbxb,_0x52fbx8){return function(_0x52fbxe){onSave(_0x52fbx8,_0x52fbxe)}}function removeListener(_0x52fbxb,_0x52fbxc){return function(){ReportChatSessionEvents[_0x17ab[15]](_0x52fbxb,_0x52fbxc)}}function getChatQueues(_0x52fbx11){return function(){switch(_0x52fbx11[_0x17ab[28]]){case _0x17ab[25]:return User[_0x17ab[24]](_0x52fbx11[_0x17ab[23]],{attributes:[_0x17ab[16]]})[_0x17ab[21]](Util[_0x17ab[22]]({},{attributes:[_0x17ab[16]],include:[{raw:true,model:User,attributes:[_0x17ab[16]]}]}))[_0x17ab[21]](function(_0x52fbx12){var _0x52fbx13=[];_0x52fbx12[_0x17ab[20]][_0x17ab[19]](function(_0x52fbx14){_0x52fbx13= _[_0x17ab[18]](_0x52fbx13,_[_0x17ab[17]](_0x52fbx14.Users,_0x17ab[16]))});return {queue:_[_0x17ab[17]](_0x52fbx12[_0x17ab[20]],_0x17ab[16]),memberid:_0x52fbx13}});case _0x17ab[27]:return User[_0x17ab[24]](_0x52fbx11[_0x17ab[23]],{attributes:[_0x17ab[16]]})[_0x17ab[21]](function(_0x52fbx15){return _0x52fbx15[_0x17ab[26]]({attributes:[_0x17ab[16]]})})[_0x17ab[21]](function(_0x52fbx12){return {queue:_[_0x17ab[17]](_0x52fbx12,_0x17ab[16]),memberid:_0x52fbx11[_0x17ab[23]]}});default:return {}}}}function onSave(_0x52fbx8,_0x52fbxe,_0x52fbx17){return Promise[_0x17ab[38]]([])[_0x17ab[21]](getChatQueues(_0x52fbx8))[_0x17ab[21]](function(_0x52fbx19){if(_0x52fbx8[_0x17ab[28]]=== _0x17ab[32]|| _[_0x17ab[34]](_0x52fbx19[_0x17ab[33]],_0x52fbxe[_0x17ab[33]])|| _[_0x17ab[34]](_0x52fbx19[_0x17ab[35]],_0x52fbxe[_0x17ab[35]])){_0x52fbx8[_0x17ab[37]](_0x17ab[36],_0x52fbxe)}})[_0x17ab[31]](function(_0x52fbx18){console[_0x17ab[30]](_0x17ab[29],_0x52fbx18)})}function onRemove(_0x52fbx8,_0x52fbxe,_0x52fbx17){_0x52fbx8[_0x17ab[37]](_0x17ab[39],_0x52fbxe)}
\ No newline at end of file