Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.rpc.js
1 const a690_0x221c=['rpc','debug','stringify','error','options','UserVoiceQueueRt','outboundQueuePauses','message','../../rediscache','info','../../config/logger','findAll','catch','./userVoiceQueueRt.socket','register','GetVoiceQueueRtPauses','where','../../mysqldb','sequelize','COUNT','`paused`\x20=\x201,\x201,\x20null'];(function(_0x5d47cf,_0x221c96){const _0x57a997=function(_0x3eb2c4){while(--_0x3eb2c4){_0x5d47cf['push'](_0x5d47cf['shift']());}};_0x57a997(++_0x221c96);}(a690_0x221c,0x166));const a690_0x57a9=function(_0x5d47cf,_0x221c96){_0x5d47cf=_0x5d47cf-0x0;let _0x57a997=a690_0x221c[_0x5d47cf];return _0x57a997;};const _0x616e38=a690_0x57a9;'use strict';const db=require(_0x616e38('0x10'))['db'],{fn,literal}=require(_0x616e38('0x11')),logger=require(_0x616e38('0x9'))(_0x616e38('0x14')),{getSocket}=require(_0x616e38('0x7')),socket=getSocket();require(_0x616e38('0xc'))[_0x616e38('0xd')](socket),exports[_0x616e38('0xe')]=function(_0x3eb2c4){const _0x45b230=this;return new Promise(function(_0x1d2a09,_0x348cc9){const _0x3b0d24=a690_0x57a9;return db[_0x3b0d24('0x4')][_0x3b0d24('0xa')]({'raw':_0x3eb2c4[_0x3b0d24('0x3')]?_0x3eb2c4['options']['raw']===undefined?!![]:![]:!![],'where':_0x3eb2c4[_0x3b0d24('0x3')]?_0x3eb2c4[_0x3b0d24('0x3')][_0x3b0d24('0xf')]||null:null,'attributes':[[fn(_0x3b0d24('0x12'),fn('IF',literal(_0x3b0d24('0x13')))),_0x3b0d24('0x5')]]})['then'](function(_0x4f9c9c){const _0x295d40=_0x3b0d24;logger[_0x295d40('0x8')](_0x295d40('0xe'),_0x3eb2c4),logger[_0x295d40('0x0')]('GetVoiceQueueRtPauses',_0x3eb2c4,JSON[_0x295d40('0x1')](_0x4f9c9c)),_0x1d2a09(_0x4f9c9c);})[_0x3b0d24('0xb')](function(_0x4084ea){const _0x6f8a31=_0x3b0d24;logger[_0x6f8a31('0x2')]('GetVoiceQueueRtPauses',_0x4084ea[_0x6f8a31('0x6')],_0x3eb2c4),_0x348cc9(_0x45b230[_0x6f8a31('0x2')](0x1f4,_0x4084ea['message']));});});};