Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / api / chatQueue / chatQueue.rpc.js
index 49d75aa..50244e9 100644 (file)
@@ -1 +1 @@
-const a98_0x1d7b=['options','debug','lodash','findOne','model','where','./chatQueue.socket','../../rediscache','raw','catch','rpc','include','../../mysqldb','stringify','then','message','ChatQueue','info','../../config/logger','attributes','register','map','ShowChatQueue','error'];(function(_0xfea0ed,_0x1d7b5b){const _0xf5b69e=function(_0x2c7041){while(--_0x2c7041){_0xfea0ed['push'](_0xfea0ed['shift']());}};_0xf5b69e(++_0x1d7b5b);}(a98_0x1d7b,0x169));const a98_0xf5b6=function(_0xfea0ed,_0x1d7b5b){_0xfea0ed=_0xfea0ed-0x0;let _0xf5b69e=a98_0x1d7b[_0xfea0ed];return _0xf5b69e;};const _0x1813db=a98_0xf5b6;'use strict';const _=require(_0x1813db('0x1')),db=require(_0x1813db('0xb'))['db'],logger=require(_0x1813db('0x11'))(_0x1813db('0x9')),{getSocket}=require(_0x1813db('0x6')),socket=getSocket();require(_0x1813db('0x5'))[_0x1813db('0x13')](socket),exports['GetChatQueue']=function(_0x2c7041){const _0x19d8c1=this;return new Promise(function(_0x58870c,_0x579ec0){const _0x259a95=a98_0xf5b6;return db[_0x259a95('0xf')]['findAll']({'raw':_0x2c7041[_0x259a95('0x17')]?_0x2c7041[_0x259a95('0x17')][_0x259a95('0x7')]===undefined?!![]:![]:!![],'where':_0x2c7041[_0x259a95('0x17')]?_0x2c7041[_0x259a95('0x17')][_0x259a95('0x4')]||null:null,'attributes':_0x2c7041['options']?_0x2c7041[_0x259a95('0x17')][_0x259a95('0x12')]||null:null,'limit':_0x2c7041[_0x259a95('0x17')]?_0x2c7041[_0x259a95('0x17')]['limit']||null:null,'include':_0x2c7041['options']?_0x2c7041[_0x259a95('0x17')]['include']?_[_0x259a95('0x14')](_0x2c7041[_0x259a95('0x17')][_0x259a95('0xa')],function(_0x4ecb23){const _0x266811=_0x259a95;return{'model':db[_0x4ecb23[_0x266811('0x3')]],'as':_0x4ecb23['as'],'attributes':_0x4ecb23[_0x266811('0x12')],'include':_0x4ecb23['include']?_[_0x266811('0x14')](_0x4ecb23[_0x266811('0xa')],function(_0x40d00b){const _0x5a8b21=_0x266811;return{'model':db[_0x40d00b[_0x5a8b21('0x3')]],'as':_0x40d00b['as'],'attributes':_0x40d00b['attributes'],'include':_0x40d00b[_0x5a8b21('0xa')]?_[_0x5a8b21('0x14')](_0x40d00b[_0x5a8b21('0xa')],function(_0x4fde94){const _0x50c31e=_0x5a8b21;return{'model':db[_0x4fde94[_0x50c31e('0x3')]],'as':_0x4fde94['as'],'attributes':_0x4fde94['attributes']};}):[]};}):[]};}):[]:[]})[_0x259a95('0xd')](function(_0x335983){const _0xa73a20=_0x259a95;logger[_0xa73a20('0x10')]('GetChatQueue',_0x2c7041),logger['debug']('GetChatQueue',_0x2c7041,JSON[_0xa73a20('0xc')](_0x335983)),_0x58870c(_0x335983);})[_0x259a95('0x8')](function(_0xf5fc3e){const _0x17f713=_0x259a95;logger[_0x17f713('0x16')]('GetChatQueue',_0xf5fc3e[_0x17f713('0xe')],_0x2c7041),_0x579ec0(_0x19d8c1[_0x17f713('0x16')](0x1f4,_0xf5fc3e[_0x17f713('0xe')]));});});},exports['ShowChatQueue']=function(_0x4979e7){const _0x2e095c=this;return new Promise(function(_0x416653,_0x75695e){const _0x5ac67f=a98_0xf5b6;return db[_0x5ac67f('0xf')][_0x5ac67f('0x2')]({'raw':_0x4979e7[_0x5ac67f('0x17')]?_0x4979e7['options'][_0x5ac67f('0x7')]===undefined?!![]:![]:!![],'where':_0x4979e7[_0x5ac67f('0x17')]?_0x4979e7[_0x5ac67f('0x17')][_0x5ac67f('0x4')]||null:null,'attributes':_0x4979e7['options']?_0x4979e7[_0x5ac67f('0x17')][_0x5ac67f('0x12')]||null:null,'include':_0x4979e7['options']?_0x4979e7[_0x5ac67f('0x17')][_0x5ac67f('0xa')]?_[_0x5ac67f('0x14')](_0x4979e7[_0x5ac67f('0x17')]['include'],function(_0x56a0c4){const _0x3bd2b7=_0x5ac67f;return{'model':db[_0x56a0c4[_0x3bd2b7('0x3')]],'as':_0x56a0c4['as'],'attributes':_0x56a0c4['attributes'],'include':_0x56a0c4['include']?_[_0x3bd2b7('0x14')](_0x56a0c4[_0x3bd2b7('0xa')],function(_0x4a75d9){const _0x232011=_0x3bd2b7;return{'model':db[_0x4a75d9['model']],'as':_0x4a75d9['as'],'attributes':_0x4a75d9[_0x232011('0x12')],'include':_0x4a75d9['include']?_[_0x232011('0x14')](_0x4a75d9[_0x232011('0xa')],function(_0x3ac92d){const _0x1e651b=_0x232011;return{'model':db[_0x3ac92d['model']],'as':_0x3ac92d['as'],'attributes':_0x3ac92d[_0x1e651b('0x12')]};}):[]};}):[]};}):[]:[]})[_0x5ac67f('0xd')](function(_0x1d5db2){const _0x5f04b4=_0x5ac67f;logger[_0x5f04b4('0x10')](_0x5f04b4('0x15'),_0x4979e7),logger[_0x5f04b4('0x0')](_0x5f04b4('0x15'),_0x4979e7,JSON[_0x5f04b4('0xc')](_0x1d5db2)),_0x416653(_0x1d5db2);})['catch'](function(_0x2d3959){const _0x3e5caf=_0x5ac67f;logger['error'](_0x3e5caf('0x15'),_0x2d3959[_0x3e5caf('0xe')],_0x4979e7),_0x75695e(_0x2e095c['error'](0x1f4,_0x2d3959['message']));});});};
\ No newline at end of file
+const a98_0x550f=['findAll','where','rpc','ChatQueue','model','map','register','raw','catch','limit','lodash','info','stringify','GetChatQueue','./chatQueue.socket','attributes','../../rediscache','message','include','debug','ShowChatQueue','then','../../mysqldb','options','error'];(function(_0x2661e4,_0x550f05){const _0x5debfa=function(_0xd7bbe0){while(--_0xd7bbe0){_0x2661e4['push'](_0x2661e4['shift']());}};_0x5debfa(++_0x550f05);}(a98_0x550f,0x139));const a98_0x5deb=function(_0x2661e4,_0x550f05){_0x2661e4=_0x2661e4-0x0;let _0x5debfa=a98_0x550f[_0x2661e4];return _0x5debfa;};const _0x50f0ce=a98_0x5deb;'use strict';const _=require(_0x50f0ce('0x16')),db=require(_0x50f0ce('0x9'))['db'],logger=require('../../config/logger')(_0x50f0ce('0xe')),{getSocket}=require(_0x50f0ce('0x3')),socket=getSocket();require(_0x50f0ce('0x1'))[_0x50f0ce('0x12')](socket),exports[_0x50f0ce('0x0')]=function(_0xd7bbe0){const _0x458c08=this;return new Promise(function(_0x5b8ed6,_0x2b45f0){const _0x273549=a98_0x5deb;return db[_0x273549('0xf')][_0x273549('0xc')]({'raw':_0xd7bbe0[_0x273549('0xa')]?_0xd7bbe0['options'][_0x273549('0x13')]===undefined?!![]:![]:!![],'where':_0xd7bbe0[_0x273549('0xa')]?_0xd7bbe0[_0x273549('0xa')][_0x273549('0xd')]||null:null,'attributes':_0xd7bbe0[_0x273549('0xa')]?_0xd7bbe0[_0x273549('0xa')][_0x273549('0x2')]||null:null,'limit':_0xd7bbe0['options']?_0xd7bbe0[_0x273549('0xa')][_0x273549('0x15')]||null:null,'include':_0xd7bbe0['options']?_0xd7bbe0[_0x273549('0xa')]['include']?_['map'](_0xd7bbe0[_0x273549('0xa')][_0x273549('0x5')],function(_0x479ba5){const _0x4cb2c2=_0x273549;return{'model':db[_0x479ba5[_0x4cb2c2('0x10')]],'as':_0x479ba5['as'],'attributes':_0x479ba5['attributes'],'include':_0x479ba5[_0x4cb2c2('0x5')]?_[_0x4cb2c2('0x11')](_0x479ba5[_0x4cb2c2('0x5')],function(_0x31aad1){const _0x5f557a=_0x4cb2c2;return{'model':db[_0x31aad1['model']],'as':_0x31aad1['as'],'attributes':_0x31aad1['attributes'],'include':_0x31aad1[_0x5f557a('0x5')]?_['map'](_0x31aad1[_0x5f557a('0x5')],function(_0x1a7c39){const _0x576b0f=_0x5f557a;return{'model':db[_0x1a7c39[_0x576b0f('0x10')]],'as':_0x1a7c39['as'],'attributes':_0x1a7c39[_0x576b0f('0x2')]};}):[]};}):[]};}):[]:[]})[_0x273549('0x8')](function(_0x268fea){const _0x17c806=_0x273549;logger['info']('GetChatQueue',_0xd7bbe0),logger[_0x17c806('0x6')](_0x17c806('0x0'),_0xd7bbe0,JSON[_0x17c806('0x18')](_0x268fea)),_0x5b8ed6(_0x268fea);})[_0x273549('0x14')](function(_0x42986e){const _0x399af0=_0x273549;logger[_0x399af0('0xb')](_0x399af0('0x0'),_0x42986e[_0x399af0('0x4')],_0xd7bbe0),_0x2b45f0(_0x458c08[_0x399af0('0xb')](0x1f4,_0x42986e[_0x399af0('0x4')]));});});},exports[_0x50f0ce('0x7')]=function(_0x3a47bf){const _0x4cb972=this;return new Promise(function(_0x301feb,_0x25e115){const _0x10236e=a98_0x5deb;return db[_0x10236e('0xf')]['findOne']({'raw':_0x3a47bf[_0x10236e('0xa')]?_0x3a47bf['options']['raw']===undefined?!![]:![]:!![],'where':_0x3a47bf[_0x10236e('0xa')]?_0x3a47bf[_0x10236e('0xa')]['where']||null:null,'attributes':_0x3a47bf[_0x10236e('0xa')]?_0x3a47bf[_0x10236e('0xa')][_0x10236e('0x2')]||null:null,'include':_0x3a47bf['options']?_0x3a47bf[_0x10236e('0xa')][_0x10236e('0x5')]?_[_0x10236e('0x11')](_0x3a47bf[_0x10236e('0xa')][_0x10236e('0x5')],function(_0x2af597){const _0x5753cf=_0x10236e;return{'model':db[_0x2af597[_0x5753cf('0x10')]],'as':_0x2af597['as'],'attributes':_0x2af597['attributes'],'include':_0x2af597[_0x5753cf('0x5')]?_[_0x5753cf('0x11')](_0x2af597[_0x5753cf('0x5')],function(_0x26ba07){const _0x3a74c4=_0x5753cf;return{'model':db[_0x26ba07['model']],'as':_0x26ba07['as'],'attributes':_0x26ba07[_0x3a74c4('0x2')],'include':_0x26ba07[_0x3a74c4('0x5')]?_['map'](_0x26ba07[_0x3a74c4('0x5')],function(_0x233395){const _0x2115a5=_0x3a74c4;return{'model':db[_0x233395[_0x2115a5('0x10')]],'as':_0x233395['as'],'attributes':_0x233395[_0x2115a5('0x2')]};}):[]};}):[]};}):[]:[]})[_0x10236e('0x8')](function(_0x3542cd){const _0x3b1dc7=_0x10236e;logger[_0x3b1dc7('0x17')]('ShowChatQueue',_0x3a47bf),logger[_0x3b1dc7('0x6')](_0x3b1dc7('0x7'),_0x3a47bf,JSON['stringify'](_0x3542cd)),_0x301feb(_0x3542cd);})[_0x10236e('0x14')](function(_0x5e79cf){const _0x20946d=_0x10236e;logger[_0x20946d('0xb')](_0x20946d('0x7'),_0x5e79cf[_0x20946d('0x4')],_0x3a47bf),_0x25e115(_0x4cb972[_0x20946d('0xb')](0x1f4,_0x5e79cf[_0x20946d('0x4')]));});});};
\ No newline at end of file