Built motion from commit eeb7beacd.|1.0.21
[motion.git] / server / api / chat_queue / chat_queue.socket.js
index 00c128f..fb3c452 100644 (file)
@@ -1 +1 @@
-var _0x11ef=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x65\x76\x65\x6E\x74\x73","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\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","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x6E\x61\x6D\x65","\x6A\x6F\x69\x6E","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x45\x72\x72\x6F\x72\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x71\x75\x65\x75\x65\x73\x20\x61\x66\x74\x65\x72\x20\x71\x75\x65\x75\x65\x20\x73\x61\x76\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x74\x68\x65\x6E","\x72\x65\x73\x6F\x6C\x76\x65","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x75\x70\x64\x61\x74\x65","\x6C\x65\x61\x76\x65","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x72\x6F\x77\x73","\x6D\x61\x70","\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","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x11ef[0];var ChatQueueEvents=require(_0x11ef[1]);var ChatQueue=require(_0x11ef[3])[_0x11ef[2]];var User=require(_0x11ef[3])[_0x11ef[4]];var Util=require(_0x11ef[5]);var _=require(_0x11ef[6]);var Promise=require(_0x11ef[7]);var events=[_0x11ef[8],_0x11ef[9]];exports[_0x11ef[10]]= function(_0xe534x8){for(var _0xe534x9=0,_0xe534xa=events[_0x11ef[11]];_0xe534x9< _0xe534xa;_0xe534x9++){var _0xe534xb=events[_0xe534x9];var _0xe534xc=createListener(_0x11ef[12]+ _0xe534xb,_0xe534x8);ChatQueueEvents[_0x11ef[13]](_0xe534xb,_0xe534xc);_0xe534x8[_0x11ef[13]](_0x11ef[14],removeListener(_0xe534xb,_0xe534xc))}};function createListener(_0xe534xb,_0xe534x8){return function(_0xe534xe){switch(_0xe534xb){case _0x11ef[20]:if(_0xe534x8[_0x11ef[15]]=== _0x11ef[16]){_0xe534x8[_0x11ef[18]](_0xe534xe[_0x11ef[17]]);_0xe534x8[_0x11ef[19]](_0xe534xb,_0xe534xe)};break;case _0x11ef[27]:return Promise[_0x11ef[26]]()[_0x11ef[25]](getChatQueues(_0xe534x8))[_0x11ef[25]](function(_0xe534x10){if(_[_0x11ef[24]](_0xe534x10,_0xe534xe[_0x11ef[17]])){_0xe534x8[_0x11ef[19]](_0xe534xb,_0xe534xe)}})[_0x11ef[23]](function(_0xe534xf){console[_0x11ef[22]](_0x11ef[21],_0xe534xf)});break;case _0x11ef[29]:_0xe534x8[_0x11ef[28]](_0xe534xe[_0x11ef[17]]);_0xe534x8[_0x11ef[19]](_0xe534xb,_0xe534xe);break;default:}}}function removeListener(_0xe534xb,_0xe534xc){return function(){ChatQueueEvents[_0x11ef[30]](_0xe534xb,_0xe534xc)}}function getChatQueues(_0xe534x13){return function(){switch(_0xe534x13[_0x11ef[15]]){case _0x11ef[37]:return User[_0x11ef[36]](_0xe534x13[_0x11ef[34]],{attributes:[_0x11ef[35]]})[_0x11ef[25]](Util[_0x11ef[33]]())[_0x11ef[25]](function(_0xe534x10){return _[_0x11ef[32]](_0xe534x10[_0x11ef[31]],_0x11ef[17])});case _0x11ef[16]:return ChatQueue[_0x11ef[38]]()[_0x11ef[25]](function(_0xe534x14){return {rows:_0xe534x14}})[_0x11ef[25]](function(_0xe534x10){return _[_0x11ef[32]](_0xe534x10[_0x11ef[31]],_0x11ef[17])});default:return []}}}
\ No newline at end of file
+var _0xe291=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x2E\x65\x76\x65\x6E\x74\x73","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\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","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x6E\x61\x6D\x65","\x6A\x6F\x69\x6E","\x65\x6D\x69\x74","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x45\x72\x72\x6F\x72\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x71\x75\x65\x75\x65\x73\x20\x61\x66\x74\x65\x72\x20\x71\x75\x65\x75\x65\x20\x73\x61\x76\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x74\x68\x65\x6E","\x72\x65\x73\x6F\x6C\x76\x65","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x75\x70\x64\x61\x74\x65","\x6C\x65\x61\x76\x65","\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x72\x6F\x77\x73","\x6D\x61\x70","\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","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x41\x6C\x6C"];_0xe291[0];var ChatQueueEvents=require(_0xe291[1]);var ChatQueue=require(_0xe291[3])[_0xe291[2]];var User=require(_0xe291[3])[_0xe291[4]];var Util=require(_0xe291[5]);var _=require(_0xe291[6]);var Promise=require(_0xe291[7]);var events=[_0xe291[8],_0xe291[9]];exports[_0xe291[10]]= function(_0xbeb6x8){for(var _0xbeb6x9=0,_0xbeb6xa=events[_0xe291[11]];_0xbeb6x9< _0xbeb6xa;_0xbeb6x9++){var _0xbeb6xb=events[_0xbeb6x9];var _0xbeb6xc=createListener(_0xe291[12]+ _0xbeb6xb,_0xbeb6x8);ChatQueueEvents[_0xe291[13]](_0xbeb6xb,_0xbeb6xc);_0xbeb6x8[_0xe291[13]](_0xe291[14],removeListener(_0xbeb6xb,_0xbeb6xc))}};function createListener(_0xbeb6xb,_0xbeb6x8){return function(_0xbeb6xe){switch(_0xbeb6xb){case _0xe291[20]:if(_0xbeb6x8[_0xe291[15]]=== _0xe291[16]){_0xbeb6x8[_0xe291[18]](_0xbeb6xe[_0xe291[17]]);_0xbeb6x8[_0xe291[19]](_0xbeb6xb,_0xbeb6xe)};break;case _0xe291[27]:return Promise[_0xe291[26]]()[_0xe291[25]](getChatQueues(_0xbeb6x8))[_0xe291[25]](function(_0xbeb6x10){if(_[_0xe291[24]](_0xbeb6x10,_0xbeb6xe[_0xe291[17]])){_0xbeb6x8[_0xe291[19]](_0xbeb6xb,_0xbeb6xe)}})[_0xe291[23]](function(_0xbeb6xf){console[_0xe291[22]](_0xe291[21],_0xbeb6xf)});break;case _0xe291[29]:_0xbeb6x8[_0xe291[28]](_0xbeb6xe[_0xe291[17]]);_0xbeb6x8[_0xe291[19]](_0xbeb6xb,_0xbeb6xe);break;default:}}}function removeListener(_0xbeb6xb,_0xbeb6xc){return function(){ChatQueueEvents[_0xe291[30]](_0xbeb6xb,_0xbeb6xc)}}function getChatQueues(_0xbeb6x13){return function(){switch(_0xbeb6x13[_0xe291[15]]){case _0xe291[37]:return User[_0xe291[36]](_0xbeb6x13[_0xe291[34]],{attributes:[_0xe291[35]]})[_0xe291[25]](Util[_0xe291[33]]())[_0xe291[25]](function(_0xbeb6x10){return _[_0xe291[32]](_0xbeb6x10[_0xe291[31]],_0xe291[17])});case _0xe291[16]:return ChatQueue[_0xe291[38]]()[_0xe291[25]](function(_0xbeb6x14){return {rows:_0xbeb6x14}})[_0xe291[25]](function(_0xbeb6x10){return _[_0xe291[32]](_0xbeb6x10[_0xe291[31]],_0xe291[17])});default:return []}}}
\ No newline at end of file