Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.rpc.js
index 7c8a7a0..af885bd 100644 (file)
@@ -1 +1 @@
-const a690_0x2c03=['raw','options','info','where','GetVoiceQueueRtPauses','catch','../../rediscache','../../mysqldb','error','findAll','stringify','debug','register','rpc','sequelize','COUNT','UserVoiceQueueRt','`paused`\x20=\x201,\x201,\x20null'];(function(_0x4e6283,_0x2c039a){const _0x11f430=function(_0x1be52f){while(--_0x1be52f){_0x4e6283['push'](_0x4e6283['shift']());}};_0x11f430(++_0x2c039a);}(a690_0x2c03,0x11e));const a690_0x11f4=function(_0x4e6283,_0x2c039a){_0x4e6283=_0x4e6283-0x0;let _0x11f430=a690_0x2c03[_0x4e6283];return _0x11f430;};const _0x52cb20=a690_0x11f4;'use strict';const db=require(_0x52cb20('0x9'))['db'],{fn,literal}=require(_0x52cb20('0x10')),logger=require('../../config/logger')(_0x52cb20('0xf')),{getSocket}=require(_0x52cb20('0x8')),socket=getSocket();require('./userVoiceQueueRt.socket')[_0x52cb20('0xe')](socket),exports[_0x52cb20('0x6')]=function(_0x1be52f){const _0x323616=this;return new Promise(function(_0x5b3e87,_0x522d08){const _0x528548=a690_0x11f4;return db[_0x528548('0x0')][_0x528548('0xb')]({'raw':_0x1be52f[_0x528548('0x3')]?_0x1be52f[_0x528548('0x3')][_0x528548('0x2')]===undefined?!![]:![]:!![],'where':_0x1be52f[_0x528548('0x3')]?_0x1be52f['options'][_0x528548('0x5')]||null:null,'attributes':[[fn(_0x528548('0x11'),fn('IF',literal(_0x528548('0x1')))),'outboundQueuePauses']]})['then'](function(_0xd8dab0){const _0x3187be=_0x528548;logger[_0x3187be('0x4')]('GetVoiceQueueRtPauses',_0x1be52f),logger[_0x3187be('0xd')]('GetVoiceQueueRtPauses',_0x1be52f,JSON[_0x3187be('0xc')](_0xd8dab0)),_0x5b3e87(_0xd8dab0);})[_0x528548('0x7')](function(_0x81966e){const _0x3aec5f=_0x528548;logger['error'](_0x3aec5f('0x6'),_0x81966e['message'],_0x1be52f),_0x522d08(_0x323616[_0x3aec5f('0xa')](0x1f4,_0x81966e['message']));});});};
\ No newline at end of file
+const a690_0x2f06=['GetVoiceQueueRtPauses','../../rediscache','../../config/logger','rpc','register','stringify','message','then','info','UserVoiceQueueRt','error','findAll','outboundQueuePauses','options','where','sequelize','./userVoiceQueueRt.socket','`paused`\x20=\x201,\x201,\x20null','raw'];(function(_0x106a71,_0x2f0658){const _0x23218f=function(_0x549978){while(--_0x549978){_0x106a71['push'](_0x106a71['shift']());}};_0x23218f(++_0x2f0658);}(a690_0x2f06,0xbe));const a690_0x2321=function(_0x106a71,_0x2f0658){_0x106a71=_0x106a71-0x0;let _0x23218f=a690_0x2f06[_0x106a71];return _0x23218f;};const _0x1f00ef=a690_0x2321;'use strict';const db=require('../../mysqldb')['db'],{fn,literal}=require(_0x1f00ef('0xf')),logger=require(_0x1f00ef('0x2'))(_0x1f00ef('0x3')),{getSocket}=require(_0x1f00ef('0x1')),socket=getSocket();require(_0x1f00ef('0x10'))[_0x1f00ef('0x4')](socket),exports[_0x1f00ef('0x0')]=function(_0x549978){const _0x23a69e=this;return new Promise(function(_0x2bbf47,_0x4fd754){const _0x3c2e64=a690_0x2321;return db[_0x3c2e64('0x9')][_0x3c2e64('0xb')]({'raw':_0x549978[_0x3c2e64('0xd')]?_0x549978[_0x3c2e64('0xd')][_0x3c2e64('0x12')]===undefined?!![]:![]:!![],'where':_0x549978[_0x3c2e64('0xd')]?_0x549978[_0x3c2e64('0xd')][_0x3c2e64('0xe')]||null:null,'attributes':[[fn('COUNT',fn('IF',literal(_0x3c2e64('0x11')))),_0x3c2e64('0xc')]]})[_0x3c2e64('0x7')](function(_0x418094){const _0x7e3ded=_0x3c2e64;logger[_0x7e3ded('0x8')](_0x7e3ded('0x0'),_0x549978),logger['debug'](_0x7e3ded('0x0'),_0x549978,JSON[_0x7e3ded('0x5')](_0x418094)),_0x2bbf47(_0x418094);})['catch'](function(_0x4bcb94){const _0x5562d4=_0x3c2e64;logger[_0x5562d4('0xa')]('GetVoiceQueueRtPauses',_0x4bcb94[_0x5562d4('0x6')],_0x549978),_0x4fd754(_0x23a69e[_0x5562d4('0xa')](0x1f4,_0x4bcb94[_0x5562d4('0x6')]));});});};
\ No newline at end of file