Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / api / voiceQueue / voiceQueue.rpc.js
index a11051d..9a23ee5 100644 (file)
@@ -1 +1 @@
-const a756_0x125f=['options','info','attributes','stringify','ShowVoiceQueue','findOne','raw','model','include','then','error','./voiceQueue.socket','message','VoiceQueue','where','lodash','map','limit','../../rediscache','catch','findAll','GetVoiceQueue','../../config/logger','rpc'];(function(_0x32b192,_0x125f61){const _0xbc3cbc=function(_0x498601){while(--_0x498601){_0x32b192['push'](_0x32b192['shift']());}};_0xbc3cbc(++_0x125f61);}(a756_0x125f,0xc8));const a756_0xbc3c=function(_0x32b192,_0x125f61){_0x32b192=_0x32b192-0x0;let _0xbc3cbc=a756_0x125f[_0x32b192];return _0xbc3cbc;};const _0x4b1ac6=a756_0xbc3c;'use strict';const _=require(_0x4b1ac6('0x7')),db=require('../../mysqldb')['db'],logger=require(_0x4b1ac6('0xe'))(_0x4b1ac6('0xf')),{getSocket}=require(_0x4b1ac6('0xa')),socket=getSocket();require(_0x4b1ac6('0x3'))['register'](socket),exports['GetVoiceQueue']=function(_0x498601){const _0x3422c4=this;return new Promise(function(_0x3265ba,_0x2b8773){const _0x430ec0=a756_0xbc3c;return db[_0x430ec0('0x5')][_0x430ec0('0xc')]({'raw':_0x498601[_0x430ec0('0x10')]?_0x498601[_0x430ec0('0x10')][_0x430ec0('0x16')]===undefined?!![]:![]:!![],'where':_0x498601[_0x430ec0('0x10')]?_0x498601[_0x430ec0('0x10')]['where']||null:null,'attributes':_0x498601[_0x430ec0('0x10')]?_0x498601[_0x430ec0('0x10')]['attributes']||null:null,'limit':_0x498601[_0x430ec0('0x10')]?_0x498601['options'][_0x430ec0('0x9')]||null:null,'include':_0x498601['options']?_0x498601['options'][_0x430ec0('0x0')]?_[_0x430ec0('0x8')](_0x498601['options'][_0x430ec0('0x0')],function(_0x248978){const _0x3bafa1=_0x430ec0;return{'model':db[_0x248978[_0x3bafa1('0x17')]],'as':_0x248978['as'],'attributes':_0x248978['attributes'],'include':_0x248978[_0x3bafa1('0x0')]?_[_0x3bafa1('0x8')](_0x248978[_0x3bafa1('0x0')],function(_0x2f8f26){const _0x1cf602=_0x3bafa1;return{'model':db[_0x2f8f26[_0x1cf602('0x17')]],'as':_0x2f8f26['as'],'attributes':_0x2f8f26[_0x1cf602('0x12')],'include':_0x2f8f26[_0x1cf602('0x0')]?_[_0x1cf602('0x8')](_0x2f8f26['include'],function(_0x583a02){const _0x144dac=_0x1cf602;return{'model':db[_0x583a02[_0x144dac('0x17')]],'as':_0x583a02['as'],'attributes':_0x583a02[_0x144dac('0x12')]};}):[]};}):[]};}):[]:[]})[_0x430ec0('0x1')](function(_0x29a10d){const _0x5bf574=_0x430ec0;logger[_0x5bf574('0x11')](_0x5bf574('0xd'),_0x498601),logger['debug'](_0x5bf574('0xd'),_0x498601,JSON[_0x5bf574('0x13')](_0x29a10d)),_0x3265ba(_0x29a10d);})[_0x430ec0('0xb')](function(_0x37a1c1){const _0x5ae6f0=_0x430ec0;logger[_0x5ae6f0('0x2')]('GetVoiceQueue',_0x37a1c1['message'],_0x498601),_0x2b8773(_0x3422c4[_0x5ae6f0('0x2')](0x1f4,_0x37a1c1[_0x5ae6f0('0x4')]));});});},exports[_0x4b1ac6('0x14')]=function(_0x345d36){const _0x3a16ae=this;return new Promise(function(_0x1d4b9d,_0x130e44){const _0x48d8be=a756_0xbc3c;return db[_0x48d8be('0x5')][_0x48d8be('0x15')]({'raw':_0x345d36['options']?_0x345d36[_0x48d8be('0x10')][_0x48d8be('0x16')]===undefined?!![]:![]:!![],'where':_0x345d36['options']?_0x345d36['options'][_0x48d8be('0x6')]||null:null,'attributes':_0x345d36['options']?_0x345d36[_0x48d8be('0x10')]['attributes']||null:null,'include':_0x345d36[_0x48d8be('0x10')]?_0x345d36[_0x48d8be('0x10')]['include']?_[_0x48d8be('0x8')](_0x345d36[_0x48d8be('0x10')][_0x48d8be('0x0')],function(_0x10c497){const _0x1bd380=_0x48d8be;return{'model':db[_0x10c497[_0x1bd380('0x17')]],'as':_0x10c497['as'],'attributes':_0x10c497[_0x1bd380('0x12')],'include':_0x10c497[_0x1bd380('0x0')]?_[_0x1bd380('0x8')](_0x10c497[_0x1bd380('0x0')],function(_0x2392d4){const _0xc58651=_0x1bd380;return{'model':db[_0x2392d4[_0xc58651('0x17')]],'as':_0x2392d4['as'],'attributes':_0x2392d4[_0xc58651('0x12')],'include':_0x2392d4[_0xc58651('0x0')]?_[_0xc58651('0x8')](_0x2392d4['include'],function(_0x5cbf4c){const _0x530589=_0xc58651;return{'model':db[_0x5cbf4c[_0x530589('0x17')]],'as':_0x5cbf4c['as'],'attributes':_0x5cbf4c[_0x530589('0x12')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x41fd6e){const _0x574cda=_0x48d8be;logger[_0x574cda('0x11')](_0x574cda('0x14'),_0x345d36),logger['debug'](_0x574cda('0x14'),_0x345d36,JSON[_0x574cda('0x13')](_0x41fd6e)),_0x1d4b9d(_0x41fd6e);})['catch'](function(_0x21cc3c){const _0x51b6e8=_0x48d8be;logger[_0x51b6e8('0x2')](_0x51b6e8('0x14'),_0x21cc3c[_0x51b6e8('0x4')],_0x345d36),_0x130e44(_0x3a16ae[_0x51b6e8('0x2')](0x1f4,_0x21cc3c[_0x51b6e8('0x4')]));});});};
\ No newline at end of file
+const a756_0x43df=['raw','where','./voiceQueue.socket','rpc','attributes','map','catch','stringify','GetVoiceQueue','VoiceQueue','findAll','register','options','message','info','limit','ShowVoiceQueue','lodash','model','include','then','error','../../rediscache'];(function(_0x115abd,_0x43df2f){const _0x998347=function(_0x41720f){while(--_0x41720f){_0x115abd['push'](_0x115abd['shift']());}};_0x998347(++_0x43df2f);}(a756_0x43df,0xb0));const a756_0x9983=function(_0x115abd,_0x43df2f){_0x115abd=_0x115abd-0x0;let _0x998347=a756_0x43df[_0x115abd];return _0x998347;};const _0x5e84d1=a756_0x9983;'use strict';const _=require(_0x5e84d1('0x2')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x5e84d1('0xb')),{getSocket}=require(_0x5e84d1('0x7')),socket=getSocket();require(_0x5e84d1('0xa'))[_0x5e84d1('0x13')](socket),exports[_0x5e84d1('0x10')]=function(_0x41720f){const _0x187977=this;return new Promise(function(_0x4cd4bc,_0x470c6d){const _0x7597f6=a756_0x9983;return db[_0x7597f6('0x11')][_0x7597f6('0x12')]({'raw':_0x41720f[_0x7597f6('0x14')]?_0x41720f['options']['raw']===undefined?!![]:![]:!![],'where':_0x41720f[_0x7597f6('0x14')]?_0x41720f[_0x7597f6('0x14')][_0x7597f6('0x9')]||null:null,'attributes':_0x41720f[_0x7597f6('0x14')]?_0x41720f[_0x7597f6('0x14')][_0x7597f6('0xc')]||null:null,'limit':_0x41720f[_0x7597f6('0x14')]?_0x41720f['options'][_0x7597f6('0x0')]||null:null,'include':_0x41720f[_0x7597f6('0x14')]?_0x41720f['options'][_0x7597f6('0x4')]?_[_0x7597f6('0xd')](_0x41720f[_0x7597f6('0x14')][_0x7597f6('0x4')],function(_0x2d0314){const _0xb94f6c=_0x7597f6;return{'model':db[_0x2d0314[_0xb94f6c('0x3')]],'as':_0x2d0314['as'],'attributes':_0x2d0314['attributes'],'include':_0x2d0314[_0xb94f6c('0x4')]?_[_0xb94f6c('0xd')](_0x2d0314[_0xb94f6c('0x4')],function(_0x3205d7){const _0x5275d7=_0xb94f6c;return{'model':db[_0x3205d7[_0x5275d7('0x3')]],'as':_0x3205d7['as'],'attributes':_0x3205d7[_0x5275d7('0xc')],'include':_0x3205d7[_0x5275d7('0x4')]?_['map'](_0x3205d7[_0x5275d7('0x4')],function(_0x508c9f){const _0x3b89d0=_0x5275d7;return{'model':db[_0x508c9f[_0x3b89d0('0x3')]],'as':_0x508c9f['as'],'attributes':_0x508c9f['attributes']};}):[]};}):[]};}):[]:[]})[_0x7597f6('0x5')](function(_0x12e145){const _0x58d26c=_0x7597f6;logger[_0x58d26c('0x16')](_0x58d26c('0x10'),_0x41720f),logger['debug']('GetVoiceQueue',_0x41720f,JSON[_0x58d26c('0xf')](_0x12e145)),_0x4cd4bc(_0x12e145);})[_0x7597f6('0xe')](function(_0x28196a){const _0x24e169=_0x7597f6;logger[_0x24e169('0x6')](_0x24e169('0x10'),_0x28196a[_0x24e169('0x15')],_0x41720f),_0x470c6d(_0x187977[_0x24e169('0x6')](0x1f4,_0x28196a['message']));});});},exports[_0x5e84d1('0x1')]=function(_0x49cee5){const _0x1c52be=this;return new Promise(function(_0x15405d,_0x2308cc){const _0x178178=a756_0x9983;return db[_0x178178('0x11')]['findOne']({'raw':_0x49cee5[_0x178178('0x14')]?_0x49cee5[_0x178178('0x14')][_0x178178('0x8')]===undefined?!![]:![]:!![],'where':_0x49cee5[_0x178178('0x14')]?_0x49cee5[_0x178178('0x14')][_0x178178('0x9')]||null:null,'attributes':_0x49cee5[_0x178178('0x14')]?_0x49cee5['options']['attributes']||null:null,'include':_0x49cee5[_0x178178('0x14')]?_0x49cee5['options']['include']?_[_0x178178('0xd')](_0x49cee5[_0x178178('0x14')]['include'],function(_0x46ce42){const _0x5afde7=_0x178178;return{'model':db[_0x46ce42[_0x5afde7('0x3')]],'as':_0x46ce42['as'],'attributes':_0x46ce42[_0x5afde7('0xc')],'include':_0x46ce42[_0x5afde7('0x4')]?_[_0x5afde7('0xd')](_0x46ce42[_0x5afde7('0x4')],function(_0x598fa1){const _0x516b81=_0x5afde7;return{'model':db[_0x598fa1[_0x516b81('0x3')]],'as':_0x598fa1['as'],'attributes':_0x598fa1[_0x516b81('0xc')],'include':_0x598fa1[_0x516b81('0x4')]?_[_0x516b81('0xd')](_0x598fa1['include'],function(_0x566898){const _0x57c3bc=_0x516b81;return{'model':db[_0x566898[_0x57c3bc('0x3')]],'as':_0x566898['as'],'attributes':_0x566898[_0x57c3bc('0xc')]};}):[]};}):[]};}):[]:[]})[_0x178178('0x5')](function(_0x41ad0b){const _0x5861bb=_0x178178;logger['info'](_0x5861bb('0x1'),_0x49cee5),logger['debug'](_0x5861bb('0x1'),_0x49cee5,JSON[_0x5861bb('0xf')](_0x41ad0b)),_0x15405d(_0x41ad0b);})[_0x178178('0xe')](function(_0x243110){const _0x2a1c77=_0x178178;logger['error'](_0x2a1c77('0x1'),_0x243110[_0x2a1c77('0x15')],_0x49cee5),_0x2308cc(_0x1c52be[_0x2a1c77('0x6')](0x1f4,_0x243110['message']));});});};
\ No newline at end of file