Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.rpc.js
index cd197e9..85ea78c 100644 (file)
@@ -1 +1 @@
-const a690_0x66a1=['then','rpc','../../config/logger','UserVoiceQueueRt','sequelize','register','../../rediscache','catch','GetVoiceQueueRtPauses','options','message','COUNT','info','`paused`\x20=\x201,\x201,\x20null','outboundQueuePauses','stringify','literal','error','./userVoiceQueueRt.socket'];(function(_0x378178,_0x66a1a8){const _0x931c97=function(_0xb39959){while(--_0xb39959){_0x378178['push'](_0x378178['shift']());}};_0x931c97(++_0x66a1a8);}(a690_0x66a1,0x194));const a690_0x931c=function(_0x378178,_0x66a1a8){_0x378178=_0x378178-0x0;let _0x931c97=a690_0x66a1[_0x378178];return _0x931c97;};const _0x5cad0b=a690_0x931c;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x5cad0b('0x10'))(_0x5cad0b('0xf')),{getSocket}=require(_0x5cad0b('0x1')),socket=getSocket();require(_0x5cad0b('0xd'))[_0x5cad0b('0x0')](socket),exports[_0x5cad0b('0x3')]=function(_0xb39959){const _0x398ae2=this;return new Promise(function(_0x237129,_0x283106){const _0x3683e8=a690_0x931c;return db[_0x3683e8('0x11')]['findAll']({'raw':_0xb39959[_0x3683e8('0x4')]?_0xb39959['options']['raw']===undefined?!![]:![]:!![],'where':_0xb39959[_0x3683e8('0x4')]?_0xb39959[_0x3683e8('0x4')]['where']||null:null,'attributes':[[db[_0x3683e8('0x12')]['fn'](_0x3683e8('0x6'),db['sequelize']['fn']('IF',db[_0x3683e8('0x12')][_0x3683e8('0xb')](_0x3683e8('0x8')))),_0x3683e8('0x9')]]})[_0x3683e8('0xe')](function(_0x4a5700){const _0x4a319c=_0x3683e8;logger[_0x4a319c('0x7')](_0x4a319c('0x3'),_0xb39959),logger['debug'](_0x4a319c('0x3'),_0xb39959,JSON[_0x4a319c('0xa')](_0x4a5700)),_0x237129(_0x4a5700);})[_0x3683e8('0x2')](function(_0x5cf81e){const _0x1a5b89=_0x3683e8;logger['error'](_0x1a5b89('0x3'),_0x5cf81e['message'],_0xb39959),_0x283106(_0x398ae2[_0x1a5b89('0xc')](0x1f4,_0x5cf81e[_0x1a5b89('0x5')]));});});};
\ No newline at end of file
+const a690_0x4a1c=['outboundQueuePauses','findAll','../../mysqldb','raw','GetVoiceQueueRtPauses','error','message','register','debug','catch','sequelize','options','../../config/logger','literal','where','UserVoiceQueueRt','COUNT'];(function(_0x11dccb,_0x4a1c01){const _0x59eb1a=function(_0x3be0e1){while(--_0x3be0e1){_0x11dccb['push'](_0x11dccb['shift']());}};_0x59eb1a(++_0x4a1c01);}(a690_0x4a1c,0x75));const a690_0x59eb=function(_0x11dccb,_0x4a1c01){_0x11dccb=_0x11dccb-0x0;let _0x59eb1a=a690_0x4a1c[_0x11dccb];return _0x59eb1a;};const _0x1f249a=a690_0x59eb;'use strict';const db=require(_0x1f249a('0x4'))['db'],logger=require(_0x1f249a('0xe'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require('./userVoiceQueueRt.socket')[_0x1f249a('0x9')](socket),exports[_0x1f249a('0x6')]=function(_0x3be0e1){const _0x52d230=this;return new Promise(function(_0x46769f,_0x3d6f32){const _0x127bd3=a690_0x59eb;return db[_0x127bd3('0x0')][_0x127bd3('0x3')]({'raw':_0x3be0e1[_0x127bd3('0xd')]?_0x3be0e1[_0x127bd3('0xd')][_0x127bd3('0x5')]===undefined?!![]:![]:!![],'where':_0x3be0e1[_0x127bd3('0xd')]?_0x3be0e1[_0x127bd3('0xd')][_0x127bd3('0x10')]||null:null,'attributes':[[db[_0x127bd3('0xc')]['fn'](_0x127bd3('0x1'),db[_0x127bd3('0xc')]['fn']('IF',db['sequelize'][_0x127bd3('0xf')]('`paused`\x20=\x201,\x201,\x20null'))),_0x127bd3('0x2')]]})['then'](function(_0x325647){const _0x3f2954=_0x127bd3;logger['info'](_0x3f2954('0x6'),_0x3be0e1),logger[_0x3f2954('0xa')](_0x3f2954('0x6'),_0x3be0e1,JSON['stringify'](_0x325647)),_0x46769f(_0x325647);})[_0x127bd3('0xb')](function(_0x5b854e){const _0x238054=_0x127bd3;logger[_0x238054('0x7')](_0x238054('0x6'),_0x5b854e[_0x238054('0x8')],_0x3be0e1),_0x3d6f32(_0x52d230[_0x238054('0x7')](0x1f4,_0x5b854e['message']));});});};
\ No newline at end of file