Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.rpc.js
index bb79fa8..ea8af6e 100644 (file)
@@ -1 +1 @@
-const a690_0x31be=['`paused`\x20=\x201,\x201,\x20null','error','where','options','debug','stringify','raw','COUNT','GetVoiceQueueRtPauses','info','message','register','sequelize','catch','../../mysqldb'];(function(_0x38ff0c,_0x31be57){const _0x393902=function(_0x5adab9){while(--_0x5adab9){_0x38ff0c['push'](_0x38ff0c['shift']());}};_0x393902(++_0x31be57);}(a690_0x31be,0x1cc));const a690_0x3939=function(_0x38ff0c,_0x31be57){_0x38ff0c=_0x38ff0c-0x0;let _0x393902=a690_0x31be[_0x38ff0c];return _0x393902;};const _0x12c2e6=a690_0x3939;'use strict';const db=require(_0x12c2e6('0x4'))['db'],{fn,literal}=require(_0x12c2e6('0x2')),logger=require('../../config/logger')('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require('./userVoiceQueueRt.socket')[_0x12c2e6('0x1')](socket),exports[_0x12c2e6('0xd')]=function(_0x5adab9){const _0x52d702=this;return new Promise(function(_0x7856e0,_0x5093d6){const _0x1d482c=a690_0x3939;return db['UserVoiceQueueRt']['findAll']({'raw':_0x5adab9[_0x1d482c('0x8')]?_0x5adab9[_0x1d482c('0x8')][_0x1d482c('0xb')]===undefined?!![]:![]:!![],'where':_0x5adab9[_0x1d482c('0x8')]?_0x5adab9[_0x1d482c('0x8')][_0x1d482c('0x7')]||null:null,'attributes':[[fn(_0x1d482c('0xc'),fn('IF',literal(_0x1d482c('0x5')))),'outboundQueuePauses']]})['then'](function(_0x191a67){const _0x4f813c=_0x1d482c;logger[_0x4f813c('0xe')](_0x4f813c('0xd'),_0x5adab9),logger[_0x4f813c('0x9')]('GetVoiceQueueRtPauses',_0x5adab9,JSON[_0x4f813c('0xa')](_0x191a67)),_0x7856e0(_0x191a67);})[_0x1d482c('0x3')](function(_0x5aecdc){const _0x221e6f=_0x1d482c;logger[_0x221e6f('0x6')](_0x221e6f('0xd'),_0x5aecdc[_0x221e6f('0x0')],_0x5adab9),_0x5093d6(_0x52d702['error'](0x1f4,_0x5aecdc['message']));});});};
\ No newline at end of file
+const a690_0x28b0=['rpc','stringify','error','GetVoiceQueueRtPauses','message','raw','debug','register','UserVoiceQueueRt','../../rediscache','findAll','then','options','catch','sequelize','outboundQueuePauses','../../config/logger','where'];(function(_0xfc557,_0x28b0f1){const _0x158cd6=function(_0x4dbfa8){while(--_0x4dbfa8){_0xfc557['push'](_0xfc557['shift']());}};_0x158cd6(++_0x28b0f1);}(a690_0x28b0,0x75));const a690_0x158c=function(_0xfc557,_0x28b0f1){_0xfc557=_0xfc557-0x0;let _0x158cd6=a690_0x28b0[_0xfc557];return _0x158cd6;};const _0x2507df=a690_0x158c;'use strict';const db=require('../../mysqldb')['db'],{fn,literal}=require(_0x2507df('0x5')),logger=require(_0x2507df('0x7'))(_0x2507df('0x9')),{getSocket}=require(_0x2507df('0x0')),socket=getSocket();require('./userVoiceQueueRt.socket')[_0x2507df('0x10')](socket),exports[_0x2507df('0xc')]=function(_0x4dbfa8){const _0x15ffb3=this;return new Promise(function(_0x2ea52d,_0x56d196){const _0x457f92=a690_0x158c;return db[_0x457f92('0x11')][_0x457f92('0x1')]({'raw':_0x4dbfa8[_0x457f92('0x3')]?_0x4dbfa8['options'][_0x457f92('0xe')]===undefined?!![]:![]:!![],'where':_0x4dbfa8[_0x457f92('0x3')]?_0x4dbfa8['options'][_0x457f92('0x8')]||null:null,'attributes':[[fn('COUNT',fn('IF',literal('`paused`\x20=\x201,\x201,\x20null'))),_0x457f92('0x6')]]})[_0x457f92('0x2')](function(_0x1818a6){const _0x57228d=_0x457f92;logger['info'](_0x57228d('0xc'),_0x4dbfa8),logger[_0x57228d('0xf')](_0x57228d('0xc'),_0x4dbfa8,JSON[_0x57228d('0xa')](_0x1818a6)),_0x2ea52d(_0x1818a6);})[_0x457f92('0x4')](function(_0x29fe06){const _0x2e6f23=_0x457f92;logger[_0x2e6f23('0xb')](_0x2e6f23('0xc'),_0x29fe06[_0x2e6f23('0xd')],_0x4dbfa8),_0x56d196(_0x15ffb3['error'](0x1f4,_0x29fe06[_0x2e6f23('0xd')]));});});};
\ No newline at end of file