Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / api / openchannelQueue / openchannelQueue.rpc.js
index 674c3bb..c7f4454 100644 (file)
@@ -1 +1 @@
-const a497_0x4277=['../../rediscache','OpenchannelQueue','where','limit','findOne','message','findAll','error','options','register','then','GetOpenchannelQueue','debug','./openchannelQueue.socket','info','../../mysqldb','include','stringify','model','ShowOpenchannelQueue','rpc','attributes','raw','map','catch','lodash'];(function(_0x16de89,_0x42775d){const _0x38daae=function(_0x384b81){while(--_0x384b81){_0x16de89['push'](_0x16de89['shift']());}};_0x38daae(++_0x42775d);}(a497_0x4277,0x17f));const a497_0x38da=function(_0x16de89,_0x42775d){_0x16de89=_0x16de89-0x0;let _0x38daae=a497_0x4277[_0x16de89];return _0x38daae;};const _0x2565d3=a497_0x38da;'use strict';const _=require(_0x2565d3('0x6')),db=require(_0x2565d3('0x16'))['db'],logger=require('../../config/logger')(_0x2565d3('0x1')),{getSocket}=require(_0x2565d3('0x7')),socket=getSocket();require(_0x2565d3('0x14'))[_0x2565d3('0x10')](socket),exports[_0x2565d3('0x12')]=function(_0x384b81){const _0x6e876b=this;return new Promise(function(_0x94285d,_0x45507d){const _0x5c561c=a497_0x38da;return db[_0x5c561c('0x8')][_0x5c561c('0xd')]({'raw':_0x384b81['options']?_0x384b81[_0x5c561c('0xf')][_0x5c561c('0x3')]===undefined?!![]:![]:!![],'where':_0x384b81[_0x5c561c('0xf')]?_0x384b81[_0x5c561c('0xf')][_0x5c561c('0x9')]||null:null,'attributes':_0x384b81['options']?_0x384b81['options']['attributes']||null:null,'limit':_0x384b81[_0x5c561c('0xf')]?_0x384b81['options'][_0x5c561c('0xa')]||null:null,'include':_0x384b81[_0x5c561c('0xf')]?_0x384b81['options'][_0x5c561c('0x17')]?_[_0x5c561c('0x4')](_0x384b81[_0x5c561c('0xf')][_0x5c561c('0x17')],function(_0x5738ac){const _0x54f811=_0x5c561c;return{'model':db[_0x5738ac[_0x54f811('0x19')]],'as':_0x5738ac['as'],'attributes':_0x5738ac[_0x54f811('0x2')],'include':_0x5738ac[_0x54f811('0x17')]?_[_0x54f811('0x4')](_0x5738ac[_0x54f811('0x17')],function(_0x5ebf51){const _0x43fdb4=_0x54f811;return{'model':db[_0x5ebf51[_0x43fdb4('0x19')]],'as':_0x5ebf51['as'],'attributes':_0x5ebf51['attributes'],'include':_0x5ebf51[_0x43fdb4('0x17')]?_[_0x43fdb4('0x4')](_0x5ebf51['include'],function(_0x56bd1c){const _0x1b83e3=_0x43fdb4;return{'model':db[_0x56bd1c[_0x1b83e3('0x19')]],'as':_0x56bd1c['as'],'attributes':_0x56bd1c[_0x1b83e3('0x2')]};}):[]};}):[]};}):[]:[]})[_0x5c561c('0x11')](function(_0x443433){const _0x515564=_0x5c561c;logger[_0x515564('0x15')]('GetOpenchannelQueue',_0x384b81),logger[_0x515564('0x13')](_0x515564('0x12'),_0x384b81,JSON[_0x515564('0x18')](_0x443433)),_0x94285d(_0x443433);})['catch'](function(_0x16b95e){const _0x4dce8e=_0x5c561c;logger['error'](_0x4dce8e('0x12'),_0x16b95e[_0x4dce8e('0xc')],_0x384b81),_0x45507d(_0x6e876b[_0x4dce8e('0xe')](0x1f4,_0x16b95e[_0x4dce8e('0xc')]));});});},exports[_0x2565d3('0x0')]=function(_0x2a57da){const _0x3bf4fa=this;return new Promise(function(_0x522e09,_0x3e2456){const _0x421eb5=a497_0x38da;return db[_0x421eb5('0x8')][_0x421eb5('0xb')]({'raw':_0x2a57da[_0x421eb5('0xf')]?_0x2a57da[_0x421eb5('0xf')][_0x421eb5('0x3')]===undefined?!![]:![]:!![],'where':_0x2a57da[_0x421eb5('0xf')]?_0x2a57da[_0x421eb5('0xf')][_0x421eb5('0x9')]||null:null,'attributes':_0x2a57da[_0x421eb5('0xf')]?_0x2a57da['options']['attributes']||null:null,'include':_0x2a57da[_0x421eb5('0xf')]?_0x2a57da[_0x421eb5('0xf')]['include']?_['map'](_0x2a57da[_0x421eb5('0xf')][_0x421eb5('0x17')],function(_0x4800fc){const _0x1cd84b=_0x421eb5;return{'model':db[_0x4800fc[_0x1cd84b('0x19')]],'as':_0x4800fc['as'],'attributes':_0x4800fc['attributes'],'include':_0x4800fc[_0x1cd84b('0x17')]?_[_0x1cd84b('0x4')](_0x4800fc[_0x1cd84b('0x17')],function(_0x3c447c){const _0x4264a4=_0x1cd84b;return{'model':db[_0x3c447c[_0x4264a4('0x19')]],'as':_0x3c447c['as'],'attributes':_0x3c447c['attributes'],'include':_0x3c447c['include']?_[_0x4264a4('0x4')](_0x3c447c[_0x4264a4('0x17')],function(_0x5e9b92){const _0x26457a=_0x4264a4;return{'model':db[_0x5e9b92[_0x26457a('0x19')]],'as':_0x5e9b92['as'],'attributes':_0x5e9b92[_0x26457a('0x2')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1ccf64){const _0x268f9d=_0x421eb5;logger['info']('ShowOpenchannelQueue',_0x2a57da),logger[_0x268f9d('0x13')]('ShowOpenchannelQueue',_0x2a57da,JSON[_0x268f9d('0x18')](_0x1ccf64)),_0x522e09(_0x1ccf64);})[_0x421eb5('0x5')](function(_0x190a99){const _0x1a88fb=_0x421eb5;logger[_0x1a88fb('0xe')]('ShowOpenchannelQueue',_0x190a99[_0x1a88fb('0xc')],_0x2a57da),_0x3e2456(_0x3bf4fa[_0x1a88fb('0xe')](0x1f4,_0x190a99[_0x1a88fb('0xc')]));});});};
\ No newline at end of file
+const a497_0x58fb=['ShowOpenchannelQueue','catch','../../config/logger','GetOpenchannelQueue','options','rpc','attributes','findOne','register','limit','message','where','raw','./openchannelQueue.socket','stringify','map','then','include','error','model','info','debug'];(function(_0x1bf602,_0x58fb88){const _0x1467a6=function(_0x2e5477){while(--_0x2e5477){_0x1bf602['push'](_0x1bf602['shift']());}};_0x1467a6(++_0x58fb88);}(a497_0x58fb,0xb6));const a497_0x1467=function(_0x1bf602,_0x58fb88){_0x1bf602=_0x1bf602-0x0;let _0x1467a6=a497_0x58fb[_0x1bf602];return _0x1467a6;};const _0x2f542f=a497_0x1467;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x2f542f('0x12'))(_0x2f542f('0x15')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x2f542f('0x7'))[_0x2f542f('0x2')](socket),exports['GetOpenchannelQueue']=function(_0x2e5477){const _0x1e1d22=this;return new Promise(function(_0x10e7c8,_0x28ce05){const _0x564651=a497_0x1467;return db['OpenchannelQueue']['findAll']({'raw':_0x2e5477[_0x564651('0x14')]?_0x2e5477[_0x564651('0x14')][_0x564651('0x6')]===undefined?!![]:![]:!![],'where':_0x2e5477['options']?_0x2e5477[_0x564651('0x14')][_0x564651('0x5')]||null:null,'attributes':_0x2e5477[_0x564651('0x14')]?_0x2e5477[_0x564651('0x14')][_0x564651('0x0')]||null:null,'limit':_0x2e5477['options']?_0x2e5477[_0x564651('0x14')][_0x564651('0x3')]||null:null,'include':_0x2e5477[_0x564651('0x14')]?_0x2e5477[_0x564651('0x14')]['include']?_['map'](_0x2e5477[_0x564651('0x14')]['include'],function(_0x5c24c){const _0x455e3c=_0x564651;return{'model':db[_0x5c24c[_0x455e3c('0xd')]],'as':_0x5c24c['as'],'attributes':_0x5c24c[_0x455e3c('0x0')],'include':_0x5c24c['include']?_['map'](_0x5c24c[_0x455e3c('0xb')],function(_0x7c86e4){const _0x140d79=_0x455e3c;return{'model':db[_0x7c86e4[_0x140d79('0xd')]],'as':_0x7c86e4['as'],'attributes':_0x7c86e4[_0x140d79('0x0')],'include':_0x7c86e4[_0x140d79('0xb')]?_[_0x140d79('0x9')](_0x7c86e4[_0x140d79('0xb')],function(_0x3c8b70){const _0x3334dc=_0x140d79;return{'model':db[_0x3c8b70[_0x3334dc('0xd')]],'as':_0x3c8b70['as'],'attributes':_0x3c8b70['attributes']};}):[]};}):[]};}):[]:[]})[_0x564651('0xa')](function(_0x5535a0){const _0x15fb12=_0x564651;logger[_0x15fb12('0xe')](_0x15fb12('0x13'),_0x2e5477),logger[_0x15fb12('0xf')]('GetOpenchannelQueue',_0x2e5477,JSON[_0x15fb12('0x8')](_0x5535a0)),_0x10e7c8(_0x5535a0);})[_0x564651('0x11')](function(_0x189429){const _0x50cebf=_0x564651;logger[_0x50cebf('0xc')](_0x50cebf('0x13'),_0x189429[_0x50cebf('0x4')],_0x2e5477),_0x28ce05(_0x1e1d22[_0x50cebf('0xc')](0x1f4,_0x189429[_0x50cebf('0x4')]));});});},exports[_0x2f542f('0x10')]=function(_0x25ccd8){const _0xbe4d94=this;return new Promise(function(_0x41f6c7,_0x174151){const _0x29adac=a497_0x1467;return db['OpenchannelQueue'][_0x29adac('0x1')]({'raw':_0x25ccd8[_0x29adac('0x14')]?_0x25ccd8['options'][_0x29adac('0x6')]===undefined?!![]:![]:!![],'where':_0x25ccd8[_0x29adac('0x14')]?_0x25ccd8[_0x29adac('0x14')][_0x29adac('0x5')]||null:null,'attributes':_0x25ccd8['options']?_0x25ccd8[_0x29adac('0x14')][_0x29adac('0x0')]||null:null,'include':_0x25ccd8['options']?_0x25ccd8[_0x29adac('0x14')][_0x29adac('0xb')]?_['map'](_0x25ccd8[_0x29adac('0x14')][_0x29adac('0xb')],function(_0x260255){const _0x5d11a8=_0x29adac;return{'model':db[_0x260255[_0x5d11a8('0xd')]],'as':_0x260255['as'],'attributes':_0x260255[_0x5d11a8('0x0')],'include':_0x260255[_0x5d11a8('0xb')]?_[_0x5d11a8('0x9')](_0x260255[_0x5d11a8('0xb')],function(_0x2bceec){const _0x146efc=_0x5d11a8;return{'model':db[_0x2bceec[_0x146efc('0xd')]],'as':_0x2bceec['as'],'attributes':_0x2bceec['attributes'],'include':_0x2bceec[_0x146efc('0xb')]?_[_0x146efc('0x9')](_0x2bceec[_0x146efc('0xb')],function(_0x2264f5){const _0x3136af=_0x146efc;return{'model':db[_0x2264f5[_0x3136af('0xd')]],'as':_0x2264f5['as'],'attributes':_0x2264f5['attributes']};}):[]};}):[]};}):[]:[]})[_0x29adac('0xa')](function(_0x391847){const _0x28ad28=_0x29adac;logger[_0x28ad28('0xe')](_0x28ad28('0x10'),_0x25ccd8),logger[_0x28ad28('0xf')]('ShowOpenchannelQueue',_0x25ccd8,JSON[_0x28ad28('0x8')](_0x391847)),_0x41f6c7(_0x391847);})[_0x29adac('0x11')](function(_0x5f402c){const _0x3b6516=_0x29adac;logger[_0x3b6516('0xc')](_0x3b6516('0x10'),_0x5f402c['message'],_0x25ccd8),_0x174151(_0xbe4d94['error'](0x1f4,_0x5f402c['message']));});});};
\ No newline at end of file