Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / api / chatQueue / chatQueue.rpc.js
index baea318..1d5b7c1 100644 (file)
@@ -1 +1 @@
-const a98_0x53ac=['findOne','rpc','catch','error','options','../../config/logger','./chatQueue.socket','ChatQueue','info','stringify','map','message','raw','GetChatQueue','lodash','limit','where','include','attributes','findAll','ShowChatQueue','register','../../rediscache','model','then'];(function(_0xc867da,_0x53ac05){const _0x1d0709=function(_0x146eb2){while(--_0x146eb2){_0xc867da['push'](_0xc867da['shift']());}};_0x1d0709(++_0x53ac05);}(a98_0x53ac,0x1cd));const a98_0x1d07=function(_0xc867da,_0x53ac05){_0xc867da=_0xc867da-0x0;let _0x1d0709=a98_0x53ac[_0xc867da];return _0x1d0709;};const _0x459ea3=a98_0x1d07;'use strict';const _=require(_0x459ea3('0x3')),db=require('../../mysqldb')['db'],logger=require(_0x459ea3('0x13'))(_0x459ea3('0xf')),{getSocket}=require(_0x459ea3('0xb')),socket=getSocket();require(_0x459ea3('0x14'))[_0x459ea3('0xa')](socket),exports[_0x459ea3('0x2')]=function(_0x146eb2){const _0x3c5249=this;return new Promise(function(_0x46d7d7,_0x2c4713){const _0x43950e=a98_0x1d07;return db[_0x43950e('0x15')][_0x43950e('0x8')]({'raw':_0x146eb2['options']?_0x146eb2[_0x43950e('0x12')][_0x43950e('0x1')]===undefined?!![]:![]:!![],'where':_0x146eb2[_0x43950e('0x12')]?_0x146eb2['options'][_0x43950e('0x5')]||null:null,'attributes':_0x146eb2[_0x43950e('0x12')]?_0x146eb2[_0x43950e('0x12')][_0x43950e('0x7')]||null:null,'limit':_0x146eb2[_0x43950e('0x12')]?_0x146eb2[_0x43950e('0x12')][_0x43950e('0x4')]||null:null,'include':_0x146eb2[_0x43950e('0x12')]?_0x146eb2[_0x43950e('0x12')][_0x43950e('0x6')]?_[_0x43950e('0x18')](_0x146eb2[_0x43950e('0x12')]['include'],function(_0xd69b82){const _0x4421c4=_0x43950e;return{'model':db[_0xd69b82[_0x4421c4('0xc')]],'as':_0xd69b82['as'],'attributes':_0xd69b82[_0x4421c4('0x7')],'include':_0xd69b82[_0x4421c4('0x6')]?_['map'](_0xd69b82[_0x4421c4('0x6')],function(_0x40a6aa){const _0x283929=_0x4421c4;return{'model':db[_0x40a6aa[_0x283929('0xc')]],'as':_0x40a6aa['as'],'attributes':_0x40a6aa[_0x283929('0x7')],'include':_0x40a6aa[_0x283929('0x6')]?_[_0x283929('0x18')](_0x40a6aa[_0x283929('0x6')],function(_0x1814b1){const _0x94f920=_0x283929;return{'model':db[_0x1814b1[_0x94f920('0xc')]],'as':_0x1814b1['as'],'attributes':_0x1814b1['attributes']};}):[]};}):[]};}):[]:[]})[_0x43950e('0xd')](function(_0x4a1cd5){const _0x117f0f=_0x43950e;logger['info'](_0x117f0f('0x2'),_0x146eb2),logger['debug']('GetChatQueue',_0x146eb2,JSON[_0x117f0f('0x17')](_0x4a1cd5)),_0x46d7d7(_0x4a1cd5);})['catch'](function(_0xdd66e5){const _0x9329b1=_0x43950e;logger[_0x9329b1('0x11')](_0x9329b1('0x2'),_0xdd66e5[_0x9329b1('0x0')],_0x146eb2),_0x2c4713(_0x3c5249[_0x9329b1('0x11')](0x1f4,_0xdd66e5[_0x9329b1('0x0')]));});});},exports['ShowChatQueue']=function(_0x4726da){const _0x1b41f2=this;return new Promise(function(_0x1989fa,_0x39915c){const _0x54dad3=a98_0x1d07;return db[_0x54dad3('0x15')][_0x54dad3('0xe')]({'raw':_0x4726da[_0x54dad3('0x12')]?_0x4726da['options'][_0x54dad3('0x1')]===undefined?!![]:![]:!![],'where':_0x4726da['options']?_0x4726da[_0x54dad3('0x12')][_0x54dad3('0x5')]||null:null,'attributes':_0x4726da['options']?_0x4726da[_0x54dad3('0x12')][_0x54dad3('0x7')]||null:null,'include':_0x4726da[_0x54dad3('0x12')]?_0x4726da[_0x54dad3('0x12')][_0x54dad3('0x6')]?_[_0x54dad3('0x18')](_0x4726da[_0x54dad3('0x12')][_0x54dad3('0x6')],function(_0x3956eb){const _0x4f7041=_0x54dad3;return{'model':db[_0x3956eb[_0x4f7041('0xc')]],'as':_0x3956eb['as'],'attributes':_0x3956eb[_0x4f7041('0x7')],'include':_0x3956eb['include']?_['map'](_0x3956eb[_0x4f7041('0x6')],function(_0x56b95b){const _0x1137ec=_0x4f7041;return{'model':db[_0x56b95b[_0x1137ec('0xc')]],'as':_0x56b95b['as'],'attributes':_0x56b95b[_0x1137ec('0x7')],'include':_0x56b95b[_0x1137ec('0x6')]?_[_0x1137ec('0x18')](_0x56b95b[_0x1137ec('0x6')],function(_0x31e1d5){return{'model':db[_0x31e1d5['model']],'as':_0x31e1d5['as'],'attributes':_0x31e1d5['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x3c92ab){const _0x3e9840=_0x54dad3;logger[_0x3e9840('0x16')](_0x3e9840('0x9'),_0x4726da),logger['debug']('ShowChatQueue',_0x4726da,JSON[_0x3e9840('0x17')](_0x3c92ab)),_0x1989fa(_0x3c92ab);})[_0x54dad3('0x10')](function(_0x1e83e9){const _0x22e651=_0x54dad3;logger[_0x22e651('0x11')](_0x22e651('0x9'),_0x1e83e9[_0x22e651('0x0')],_0x4726da),_0x39915c(_0x1b41f2[_0x22e651('0x11')](0x1f4,_0x1e83e9[_0x22e651('0x0')]));});});};
\ No newline at end of file
+const a98_0x354c=['catch','raw','register','stringify','info','include','../../rediscache','then','findOne','model','rpc','findAll','map','GetChatQueue','message','debug','../../mysqldb','attributes','ShowChatQueue','where','ChatQueue','lodash','error','./chatQueue.socket','options'];(function(_0x3ef047,_0x354cc2){const _0x1581c9=function(_0x13f04c){while(--_0x13f04c){_0x3ef047['push'](_0x3ef047['shift']());}};_0x1581c9(++_0x354cc2);}(a98_0x354c,0x184));const a98_0x1581=function(_0x3ef047,_0x354cc2){_0x3ef047=_0x3ef047-0x0;let _0x1581c9=a98_0x354c[_0x3ef047];return _0x1581c9;};const _0x26a0a9=a98_0x1581;'use strict';const _=require(_0x26a0a9('0x8')),db=require(_0x26a0a9('0x3'))['db'],logger=require('../../config/logger')(_0x26a0a9('0x16')),{getSocket}=require(_0x26a0a9('0x12')),socket=getSocket();require(_0x26a0a9('0xa'))[_0x26a0a9('0xe')](socket),exports['GetChatQueue']=function(_0x13f04c){const _0x1f3557=this;return new Promise(function(_0x14ac34,_0x216f57){const _0x2cdfd2=a98_0x1581;return db[_0x2cdfd2('0x7')][_0x2cdfd2('0x17')]({'raw':_0x13f04c['options']?_0x13f04c[_0x2cdfd2('0xb')][_0x2cdfd2('0xd')]===undefined?!![]:![]:!![],'where':_0x13f04c[_0x2cdfd2('0xb')]?_0x13f04c[_0x2cdfd2('0xb')]['where']||null:null,'attributes':_0x13f04c[_0x2cdfd2('0xb')]?_0x13f04c['options'][_0x2cdfd2('0x4')]||null:null,'limit':_0x13f04c[_0x2cdfd2('0xb')]?_0x13f04c['options']['limit']||null:null,'include':_0x13f04c[_0x2cdfd2('0xb')]?_0x13f04c[_0x2cdfd2('0xb')]['include']?_[_0x2cdfd2('0x18')](_0x13f04c[_0x2cdfd2('0xb')][_0x2cdfd2('0x11')],function(_0x59682b){const _0x7ff2cf=_0x2cdfd2;return{'model':db[_0x59682b[_0x7ff2cf('0x15')]],'as':_0x59682b['as'],'attributes':_0x59682b[_0x7ff2cf('0x4')],'include':_0x59682b[_0x7ff2cf('0x11')]?_['map'](_0x59682b[_0x7ff2cf('0x11')],function(_0x5f3368){const _0xa1858e=_0x7ff2cf;return{'model':db[_0x5f3368['model']],'as':_0x5f3368['as'],'attributes':_0x5f3368[_0xa1858e('0x4')],'include':_0x5f3368['include']?_[_0xa1858e('0x18')](_0x5f3368[_0xa1858e('0x11')],function(_0x1f7ead){const _0x2ac94a=_0xa1858e;return{'model':db[_0x1f7ead[_0x2ac94a('0x15')]],'as':_0x1f7ead['as'],'attributes':_0x1f7ead[_0x2ac94a('0x4')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xe58908){const _0x344544=_0x2cdfd2;logger[_0x344544('0x10')](_0x344544('0x0'),_0x13f04c),logger[_0x344544('0x2')]('GetChatQueue',_0x13f04c,JSON[_0x344544('0xf')](_0xe58908)),_0x14ac34(_0xe58908);})[_0x2cdfd2('0xc')](function(_0x111fa6){const _0x5829e9=_0x2cdfd2;logger[_0x5829e9('0x9')](_0x5829e9('0x0'),_0x111fa6[_0x5829e9('0x1')],_0x13f04c),_0x216f57(_0x1f3557[_0x5829e9('0x9')](0x1f4,_0x111fa6[_0x5829e9('0x1')]));});});},exports[_0x26a0a9('0x5')]=function(_0x1c9f71){const _0x2f481a=this;return new Promise(function(_0x3a0f6f,_0x1dcea3){const _0x4b0f41=a98_0x1581;return db['ChatQueue'][_0x4b0f41('0x14')]({'raw':_0x1c9f71[_0x4b0f41('0xb')]?_0x1c9f71[_0x4b0f41('0xb')][_0x4b0f41('0xd')]===undefined?!![]:![]:!![],'where':_0x1c9f71['options']?_0x1c9f71[_0x4b0f41('0xb')][_0x4b0f41('0x6')]||null:null,'attributes':_0x1c9f71['options']?_0x1c9f71[_0x4b0f41('0xb')][_0x4b0f41('0x4')]||null:null,'include':_0x1c9f71[_0x4b0f41('0xb')]?_0x1c9f71[_0x4b0f41('0xb')]['include']?_[_0x4b0f41('0x18')](_0x1c9f71[_0x4b0f41('0xb')][_0x4b0f41('0x11')],function(_0x5c1683){const _0x395b66=_0x4b0f41;return{'model':db[_0x5c1683['model']],'as':_0x5c1683['as'],'attributes':_0x5c1683[_0x395b66('0x4')],'include':_0x5c1683['include']?_[_0x395b66('0x18')](_0x5c1683[_0x395b66('0x11')],function(_0x4317f2){const _0x1160bc=_0x395b66;return{'model':db[_0x4317f2[_0x1160bc('0x15')]],'as':_0x4317f2['as'],'attributes':_0x4317f2['attributes'],'include':_0x4317f2[_0x1160bc('0x11')]?_[_0x1160bc('0x18')](_0x4317f2['include'],function(_0x403ce2){const _0x272560=_0x1160bc;return{'model':db[_0x403ce2[_0x272560('0x15')]],'as':_0x403ce2['as'],'attributes':_0x403ce2['attributes']};}):[]};}):[]};}):[]:[]})[_0x4b0f41('0x13')](function(_0x27a228){const _0x5168e9=_0x4b0f41;logger['info'](_0x5168e9('0x5'),_0x1c9f71),logger['debug'](_0x5168e9('0x5'),_0x1c9f71,JSON['stringify'](_0x27a228)),_0x3a0f6f(_0x27a228);})[_0x4b0f41('0xc')](function(_0xaede3b){const _0x313d24=_0x4b0f41;logger[_0x313d24('0x9')](_0x313d24('0x5'),_0xaede3b[_0x313d24('0x1')],_0x1c9f71),_0x1dcea3(_0x2f481a['error'](0x1f4,_0xaede3b['message']));});});};
\ No newline at end of file