Built motion from commit bfc7a72f7045b27461c9a5d1f71c1a658cfd0b8b. Version 3.0.0...
[motion-next.git] / server / api / chatQueue / chatQueue.rpc.js
index eff297e..bd19474 100644 (file)
@@ -1 +1 @@
-const a98_0x3f10=['findOne','raw','attributes','map','lodash','stringify','model','register','catch','debug','../../config/logger','../../mysqldb','then','ChatQueue','options','include','where','../../rediscache','error','findAll','GetChatQueue','ShowChatQueue','rpc','info','message'];(function(_0x80e3b0,_0x3f10b7){const _0x451576=function(_0x2e008f){while(--_0x2e008f){_0x80e3b0['push'](_0x80e3b0['shift']());}};_0x451576(++_0x3f10b7);}(a98_0x3f10,0x72));const a98_0x4515=function(_0x80e3b0,_0x3f10b7){_0x80e3b0=_0x80e3b0-0x0;let _0x451576=a98_0x3f10[_0x80e3b0];return _0x451576;};const _0x181782=a98_0x4515;'use strict';const _=require(_0x181782('0xf')),db=require(_0x181782('0x16'))['db'],logger=require(_0x181782('0x15'))(_0x181782('0x8')),{getSocket}=require(_0x181782('0x3')),socket=getSocket();require('./chatQueue.socket')[_0x181782('0x12')](socket),exports[_0x181782('0x6')]=function(_0x2e008f){const _0x1503a8=this;return new Promise(function(_0x3f14e0,_0x356d73){const _0x3f254c=a98_0x4515;return db[_0x3f254c('0x18')][_0x3f254c('0x5')]({'raw':_0x2e008f[_0x3f254c('0x0')]?_0x2e008f[_0x3f254c('0x0')][_0x3f254c('0xc')]===undefined?!![]:![]:!![],'where':_0x2e008f[_0x3f254c('0x0')]?_0x2e008f[_0x3f254c('0x0')][_0x3f254c('0x2')]||null:null,'attributes':_0x2e008f[_0x3f254c('0x0')]?_0x2e008f['options']['attributes']||null:null,'limit':_0x2e008f[_0x3f254c('0x0')]?_0x2e008f['options']['limit']||null:null,'include':_0x2e008f[_0x3f254c('0x0')]?_0x2e008f[_0x3f254c('0x0')]['include']?_[_0x3f254c('0xe')](_0x2e008f['options'][_0x3f254c('0x1')],function(_0x3b3a15){const _0x3b9748=_0x3f254c;return{'model':db[_0x3b3a15[_0x3b9748('0x11')]],'as':_0x3b3a15['as'],'attributes':_0x3b3a15[_0x3b9748('0xd')],'include':_0x3b3a15[_0x3b9748('0x1')]?_[_0x3b9748('0xe')](_0x3b3a15[_0x3b9748('0x1')],function(_0xadb1fe){const _0x2394f1=_0x3b9748;return{'model':db[_0xadb1fe[_0x2394f1('0x11')]],'as':_0xadb1fe['as'],'attributes':_0xadb1fe[_0x2394f1('0xd')],'include':_0xadb1fe['include']?_[_0x2394f1('0xe')](_0xadb1fe[_0x2394f1('0x1')],function(_0x5d8085){const _0x29b642=_0x2394f1;return{'model':db[_0x5d8085[_0x29b642('0x11')]],'as':_0x5d8085['as'],'attributes':_0x5d8085[_0x29b642('0xd')]};}):[]};}):[]};}):[]:[]})[_0x3f254c('0x17')](function(_0x5cd081){const _0x1b8b61=_0x3f254c;logger['info'](_0x1b8b61('0x6'),_0x2e008f),logger[_0x1b8b61('0x14')](_0x1b8b61('0x6'),_0x2e008f,JSON[_0x1b8b61('0x10')](_0x5cd081)),_0x3f14e0(_0x5cd081);})[_0x3f254c('0x13')](function(_0x4a5aa4){const _0x1c8d8e=_0x3f254c;logger[_0x1c8d8e('0x4')](_0x1c8d8e('0x6'),_0x4a5aa4[_0x1c8d8e('0xa')],_0x2e008f),_0x356d73(_0x1503a8['error'](0x1f4,_0x4a5aa4[_0x1c8d8e('0xa')]));});});},exports['ShowChatQueue']=function(_0x2ae8f9){const _0x22f667=this;return new Promise(function(_0x49b0ad,_0x4dedee){const _0x400300=a98_0x4515;return db['ChatQueue'][_0x400300('0xb')]({'raw':_0x2ae8f9[_0x400300('0x0')]?_0x2ae8f9['options']['raw']===undefined?!![]:![]:!![],'where':_0x2ae8f9[_0x400300('0x0')]?_0x2ae8f9['options'][_0x400300('0x2')]||null:null,'attributes':_0x2ae8f9[_0x400300('0x0')]?_0x2ae8f9['options']['attributes']||null:null,'include':_0x2ae8f9['options']?_0x2ae8f9['options']['include']?_[_0x400300('0xe')](_0x2ae8f9[_0x400300('0x0')][_0x400300('0x1')],function(_0x26ca64){const _0x1c262d=_0x400300;return{'model':db[_0x26ca64[_0x1c262d('0x11')]],'as':_0x26ca64['as'],'attributes':_0x26ca64[_0x1c262d('0xd')],'include':_0x26ca64[_0x1c262d('0x1')]?_[_0x1c262d('0xe')](_0x26ca64[_0x1c262d('0x1')],function(_0x52c23b){const _0x434024=_0x1c262d;return{'model':db[_0x52c23b[_0x434024('0x11')]],'as':_0x52c23b['as'],'attributes':_0x52c23b[_0x434024('0xd')],'include':_0x52c23b[_0x434024('0x1')]?_[_0x434024('0xe')](_0x52c23b[_0x434024('0x1')],function(_0x4949c2){const _0xb865af=_0x434024;return{'model':db[_0x4949c2[_0xb865af('0x11')]],'as':_0x4949c2['as'],'attributes':_0x4949c2[_0xb865af('0xd')]};}):[]};}):[]};}):[]:[]})[_0x400300('0x17')](function(_0x1158e3){const _0x2de6fe=_0x400300;logger[_0x2de6fe('0x9')](_0x2de6fe('0x7'),_0x2ae8f9),logger[_0x2de6fe('0x14')]('ShowChatQueue',_0x2ae8f9,JSON[_0x2de6fe('0x10')](_0x1158e3)),_0x49b0ad(_0x1158e3);})['catch'](function(_0x3a0d79){const _0xebf92c=_0x400300;logger[_0xebf92c('0x4')](_0xebf92c('0x7'),_0x3a0d79['message'],_0x2ae8f9),_0x4dedee(_0x22f667['error'](0x1f4,_0x3a0d79['message']));});});};
\ No newline at end of file
+const a98_0x4e25=['raw','limit','register','info','rpc','model','../../mysqldb','findOne','debug','map','ShowChatQueue','include','options','ChatQueue','findAll','then','../../rediscache','message','attributes','error','../../config/logger','lodash','GetChatQueue','where'];(function(_0x1b58c9,_0x4e259b){const _0x4e729d=function(_0x35d0f4){while(--_0x35d0f4){_0x1b58c9['push'](_0x1b58c9['shift']());}};_0x4e729d(++_0x4e259b);}(a98_0x4e25,0x118));const a98_0x4e72=function(_0x1b58c9,_0x4e259b){_0x1b58c9=_0x1b58c9-0x0;let _0x4e729d=a98_0x4e25[_0x1b58c9];return _0x4e729d;};const _0xde065a=a98_0x4e72;'use strict';const _=require(_0xde065a('0x5')),db=require(_0xde065a('0xe'))['db'],logger=require(_0xde065a('0x4'))(_0xde065a('0xc')),{getSocket}=require(_0xde065a('0x0')),socket=getSocket();require('./chatQueue.socket')[_0xde065a('0xa')](socket),exports['GetChatQueue']=function(_0x35d0f4){const _0x3a763b=this;return new Promise(function(_0x13ca09,_0x51a4aa){const _0x240b13=a98_0x4e72;return db[_0x240b13('0x15')][_0x240b13('0x16')]({'raw':_0x35d0f4['options']?_0x35d0f4[_0x240b13('0x14')][_0x240b13('0x8')]===undefined?!![]:![]:!![],'where':_0x35d0f4['options']?_0x35d0f4['options'][_0x240b13('0x7')]||null:null,'attributes':_0x35d0f4[_0x240b13('0x14')]?_0x35d0f4[_0x240b13('0x14')][_0x240b13('0x2')]||null:null,'limit':_0x35d0f4['options']?_0x35d0f4['options'][_0x240b13('0x9')]||null:null,'include':_0x35d0f4[_0x240b13('0x14')]?_0x35d0f4['options'][_0x240b13('0x13')]?_[_0x240b13('0x11')](_0x35d0f4[_0x240b13('0x14')][_0x240b13('0x13')],function(_0x19d156){const _0x43470f=_0x240b13;return{'model':db[_0x19d156[_0x43470f('0xd')]],'as':_0x19d156['as'],'attributes':_0x19d156[_0x43470f('0x2')],'include':_0x19d156['include']?_[_0x43470f('0x11')](_0x19d156['include'],function(_0x1b186f){const _0x3c0ee7=_0x43470f;return{'model':db[_0x1b186f[_0x3c0ee7('0xd')]],'as':_0x1b186f['as'],'attributes':_0x1b186f[_0x3c0ee7('0x2')],'include':_0x1b186f[_0x3c0ee7('0x13')]?_[_0x3c0ee7('0x11')](_0x1b186f['include'],function(_0x5a8d6f){const _0x380141=_0x3c0ee7;return{'model':db[_0x5a8d6f['model']],'as':_0x5a8d6f['as'],'attributes':_0x5a8d6f[_0x380141('0x2')]};}):[]};}):[]};}):[]:[]})[_0x240b13('0x17')](function(_0x4905c7){const _0x397cb3=_0x240b13;logger[_0x397cb3('0xb')](_0x397cb3('0x6'),_0x35d0f4),logger[_0x397cb3('0x10')](_0x397cb3('0x6'),_0x35d0f4,JSON['stringify'](_0x4905c7)),_0x13ca09(_0x4905c7);})['catch'](function(_0x5832ff){const _0x1757fc=_0x240b13;logger[_0x1757fc('0x3')]('GetChatQueue',_0x5832ff[_0x1757fc('0x1')],_0x35d0f4),_0x51a4aa(_0x3a763b[_0x1757fc('0x3')](0x1f4,_0x5832ff['message']));});});},exports[_0xde065a('0x12')]=function(_0x10f95e){const _0x1d1f67=this;return new Promise(function(_0x2685f6,_0x1ba05a){const _0x55909d=a98_0x4e72;return db[_0x55909d('0x15')][_0x55909d('0xf')]({'raw':_0x10f95e['options']?_0x10f95e[_0x55909d('0x14')][_0x55909d('0x8')]===undefined?!![]:![]:!![],'where':_0x10f95e['options']?_0x10f95e[_0x55909d('0x14')][_0x55909d('0x7')]||null:null,'attributes':_0x10f95e['options']?_0x10f95e[_0x55909d('0x14')][_0x55909d('0x2')]||null:null,'include':_0x10f95e['options']?_0x10f95e[_0x55909d('0x14')]['include']?_['map'](_0x10f95e[_0x55909d('0x14')][_0x55909d('0x13')],function(_0xecf20f){const _0x4e2d45=_0x55909d;return{'model':db[_0xecf20f[_0x4e2d45('0xd')]],'as':_0xecf20f['as'],'attributes':_0xecf20f['attributes'],'include':_0xecf20f[_0x4e2d45('0x13')]?_[_0x4e2d45('0x11')](_0xecf20f[_0x4e2d45('0x13')],function(_0x555766){const _0x522145=_0x4e2d45;return{'model':db[_0x555766['model']],'as':_0x555766['as'],'attributes':_0x555766[_0x522145('0x2')],'include':_0x555766[_0x522145('0x13')]?_[_0x522145('0x11')](_0x555766[_0x522145('0x13')],function(_0x215745){return{'model':db[_0x215745['model']],'as':_0x215745['as'],'attributes':_0x215745['attributes']};}):[]};}):[]};}):[]:[]})[_0x55909d('0x17')](function(_0x3a7f7b){const _0x19e4be=_0x55909d;logger[_0x19e4be('0xb')](_0x19e4be('0x12'),_0x10f95e),logger[_0x19e4be('0x10')](_0x19e4be('0x12'),_0x10f95e,JSON['stringify'](_0x3a7f7b)),_0x2685f6(_0x3a7f7b);})['catch'](function(_0x228761){const _0x17f1bd=_0x55909d;logger[_0x17f1bd('0x3')]('ShowChatQueue',_0x228761['message'],_0x10f95e),_0x1ba05a(_0x1d1f67[_0x17f1bd('0x3')](0x1f4,_0x228761[_0x17f1bd('0x1')]));});});};
\ No newline at end of file