Built motion from commit b33b832.|1.0.17
[motion.git] / server / api / report_chat_session / report_chat_session.socket.js
index 27a24f7..5cece99 100644 (file)
@@ -1 +1 @@
-var _0xb6b3=["\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"];_0xb6b3[0];const ReportChatSessionEvents=require(_0xb6b3[1]);const ReportChatSession=require(_0xb6b3[3])[_0xb6b3[2]];const User=require(_0xb6b3[3])[_0xb6b3[4]];const Util=require(_0xb6b3[5]);const _=require(_0xb6b3[6]);const Promise=require(_0xb6b3[7]);var events=[_0xb6b3[8],_0xb6b3[9]];exports[_0xb6b3[10]]= function(_0xf3cbx8){for(var _0xf3cbx9=0,_0xf3cbxa=events[_0xb6b3[11]];_0xf3cbx9< _0xf3cbxa;_0xf3cbx9++){var _0xf3cbxb=events[_0xf3cbx9];var _0xf3cbxc=createListener(_0xb6b3[12]+ _0xf3cbxb,_0xf3cbx8);ReportChatSessionEvents[_0xb6b3[13]](_0xf3cbxb,_0xf3cbxc);_0xf3cbx8[_0xb6b3[13]](_0xb6b3[14],removeListener(_0xf3cbxb,_0xf3cbxc))}};function createListener(_0xf3cbxb,_0xf3cbx8){return function(_0xf3cbxe){onSave(_0xf3cbx8,_0xf3cbxe)}}function removeListener(_0xf3cbxb,_0xf3cbxc){return function(){ReportChatSessionEvents[_0xb6b3[15]](_0xf3cbxb,_0xf3cbxc)}}function getChatQueues(_0xf3cbx11){return function(){switch(_0xf3cbx11[_0xb6b3[28]]){case _0xb6b3[25]:return User[_0xb6b3[24]](_0xf3cbx11[_0xb6b3[23]],{attributes:[_0xb6b3[16]]})[_0xb6b3[21]](Util[_0xb6b3[22]]({},{attributes:[_0xb6b3[16]],include:[{raw:true,model:User,attributes:[_0xb6b3[16]]}]}))[_0xb6b3[21]](function(_0xf3cbx12){var _0xf3cbx13=[];_0xf3cbx12[_0xb6b3[20]][_0xb6b3[19]](function(_0xf3cbx14){_0xf3cbx13= _[_0xb6b3[18]](_0xf3cbx13,_[_0xb6b3[17]](_0xf3cbx14.Users,_0xb6b3[16]))});return {queue:_[_0xb6b3[17]](_0xf3cbx12[_0xb6b3[20]],_0xb6b3[16]),memberid:_0xf3cbx13}});case _0xb6b3[27]:return User[_0xb6b3[24]](_0xf3cbx11[_0xb6b3[23]],{attributes:[_0xb6b3[16]]})[_0xb6b3[21]](function(_0xf3cbx15){return _0xf3cbx15[_0xb6b3[26]]({attributes:[_0xb6b3[16]]})})[_0xb6b3[21]](function(_0xf3cbx12){return {queue:_[_0xb6b3[17]](_0xf3cbx12,_0xb6b3[16]),memberid:_0xf3cbx11[_0xb6b3[23]]}});default:return {}}}}function onSave(_0xf3cbx8,_0xf3cbxe,_0xf3cbx17){return Promise[_0xb6b3[38]]([])[_0xb6b3[21]](getChatQueues(_0xf3cbx8))[_0xb6b3[21]](function(_0xf3cbx19){if(_0xf3cbx8[_0xb6b3[28]]=== _0xb6b3[32]|| _[_0xb6b3[34]](_0xf3cbx19[_0xb6b3[33]],_0xf3cbxe[_0xb6b3[33]])|| _[_0xb6b3[34]](_0xf3cbx19[_0xb6b3[35]],_0xf3cbxe[_0xb6b3[35]])){_0xf3cbx8[_0xb6b3[37]](_0xb6b3[36],_0xf3cbxe)}})[_0xb6b3[31]](function(_0xf3cbx18){console[_0xb6b3[30]](_0xb6b3[29],_0xf3cbx18)})}function onRemove(_0xf3cbx8,_0xf3cbxe,_0xf3cbx17){_0xf3cbx8[_0xb6b3[37]](_0xb6b3[39],_0xf3cbxe)}
\ No newline at end of file
+var _0xf027=["\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"];_0xf027[0];const ReportChatSessionEvents=require(_0xf027[1]);const ReportChatSession=require(_0xf027[3])[_0xf027[2]];const User=require(_0xf027[3])[_0xf027[4]];const Util=require(_0xf027[5]);const _=require(_0xf027[6]);const Promise=require(_0xf027[7]);var events=[_0xf027[8],_0xf027[9]];exports[_0xf027[10]]= function(_0x9733x8){for(var _0x9733x9=0,_0x9733xa=events[_0xf027[11]];_0x9733x9< _0x9733xa;_0x9733x9++){var _0x9733xb=events[_0x9733x9];var _0x9733xc=createListener(_0xf027[12]+ _0x9733xb,_0x9733x8);ReportChatSessionEvents[_0xf027[13]](_0x9733xb,_0x9733xc);_0x9733x8[_0xf027[13]](_0xf027[14],removeListener(_0x9733xb,_0x9733xc))}};function createListener(_0x9733xb,_0x9733x8){return function(_0x9733xe){onSave(_0x9733x8,_0x9733xe)}}function removeListener(_0x9733xb,_0x9733xc){return function(){ReportChatSessionEvents[_0xf027[15]](_0x9733xb,_0x9733xc)}}function getChatQueues(_0x9733x11){return function(){switch(_0x9733x11[_0xf027[28]]){case _0xf027[25]:return User[_0xf027[24]](_0x9733x11[_0xf027[23]],{attributes:[_0xf027[16]]})[_0xf027[21]](Util[_0xf027[22]]({},{attributes:[_0xf027[16]],include:[{raw:true,model:User,attributes:[_0xf027[16]]}]}))[_0xf027[21]](function(_0x9733x12){var _0x9733x13=[];_0x9733x12[_0xf027[20]][_0xf027[19]](function(_0x9733x14){_0x9733x13= _[_0xf027[18]](_0x9733x13,_[_0xf027[17]](_0x9733x14.Users,_0xf027[16]))});return {queue:_[_0xf027[17]](_0x9733x12[_0xf027[20]],_0xf027[16]),memberid:_0x9733x13}});case _0xf027[27]:return User[_0xf027[24]](_0x9733x11[_0xf027[23]],{attributes:[_0xf027[16]]})[_0xf027[21]](function(_0x9733x15){return _0x9733x15[_0xf027[26]]({attributes:[_0xf027[16]]})})[_0xf027[21]](function(_0x9733x12){return {queue:_[_0xf027[17]](_0x9733x12,_0xf027[16]),memberid:_0x9733x11[_0xf027[23]]}});default:return {}}}}function onSave(_0x9733x8,_0x9733xe,_0x9733x17){return Promise[_0xf027[38]]([])[_0xf027[21]](getChatQueues(_0x9733x8))[_0xf027[21]](function(_0x9733x19){if(_0x9733x8[_0xf027[28]]=== _0xf027[32]|| _[_0xf027[34]](_0x9733x19[_0xf027[33]],_0x9733xe[_0xf027[33]])|| _[_0xf027[34]](_0x9733x19[_0xf027[35]],_0x9733xe[_0xf027[35]])){_0x9733x8[_0xf027[37]](_0xf027[36],_0x9733xe)}})[_0xf027[31]](function(_0x9733x18){console[_0xf027[30]](_0xf027[29],_0x9733x18)})}function onRemove(_0x9733x8,_0x9733xe,_0x9733x17){_0x9733x8[_0xf027[37]](_0xf027[39],_0x9733xe)}
\ No newline at end of file