Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / api / mailQueue / mailQueue.rpc.js
index 1726e31..9d18a15 100644 (file)
@@ -1 +1 @@
-const a423_0x2540=['rpc','model','where','register','MailQueue','debug','../../rediscache','stringify','options','raw','include','findAll','findOne','lodash','GetMailQueue','ShowMailQueue','attributes','then','info','error','./mailQueue.socket','map','message'];(function(_0x4bbe7a,_0x25402e){const _0x569f3e=function(_0x4c0d82){while(--_0x4c0d82){_0x4bbe7a['push'](_0x4bbe7a['shift']());}};_0x569f3e(++_0x25402e);}(a423_0x2540,0x19b));const a423_0x569f=function(_0x4bbe7a,_0x25402e){_0x4bbe7a=_0x4bbe7a-0x0;let _0x569f3e=a423_0x2540[_0x4bbe7a];return _0x569f3e;};const _0x2306b6=a423_0x569f;'use strict';const _=require(_0x2306b6('0x10')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x2306b6('0x3')),{getSocket}=require(_0x2306b6('0x9')),socket=getSocket();require(_0x2306b6('0x0'))[_0x2306b6('0x6')](socket),exports['GetMailQueue']=function(_0x4c0d82){const _0x169812=this;return new Promise(function(_0x3859e6,_0x50317){const _0x3546bd=a423_0x569f;return db['MailQueue'][_0x3546bd('0xe')]({'raw':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82['options'][_0x3546bd('0xc')]===undefined?!![]:![]:!![],'where':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82['options'][_0x3546bd('0x5')]||null:null,'attributes':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82[_0x3546bd('0xb')][_0x3546bd('0x13')]||null:null,'limit':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82[_0x3546bd('0xb')]['limit']||null:null,'include':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82[_0x3546bd('0xb')][_0x3546bd('0xd')]?_[_0x3546bd('0x1')](_0x4c0d82[_0x3546bd('0xb')][_0x3546bd('0xd')],function(_0x17223d){const _0x1e80f7=_0x3546bd;return{'model':db[_0x17223d['model']],'as':_0x17223d['as'],'attributes':_0x17223d['attributes'],'include':_0x17223d['include']?_[_0x1e80f7('0x1')](_0x17223d[_0x1e80f7('0xd')],function(_0x230d1a){const _0x474b26=_0x1e80f7;return{'model':db[_0x230d1a['model']],'as':_0x230d1a['as'],'attributes':_0x230d1a['attributes'],'include':_0x230d1a[_0x474b26('0xd')]?_[_0x474b26('0x1')](_0x230d1a[_0x474b26('0xd')],function(_0x129b81){const _0x323fa4=_0x474b26;return{'model':db[_0x129b81[_0x323fa4('0x4')]],'as':_0x129b81['as'],'attributes':_0x129b81[_0x323fa4('0x13')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4c116a){const _0x32fca3=_0x3546bd;logger['info']('GetMailQueue',_0x4c0d82),logger[_0x32fca3('0x8')](_0x32fca3('0x11'),_0x4c0d82,JSON[_0x32fca3('0xa')](_0x4c116a)),_0x3859e6(_0x4c116a);})['catch'](function(_0x58a951){const _0x125777=_0x3546bd;logger['error'](_0x125777('0x11'),_0x58a951['message'],_0x4c0d82),_0x50317(_0x169812[_0x125777('0x16')](0x1f4,_0x58a951[_0x125777('0x2')]));});});},exports['ShowMailQueue']=function(_0x4bd917){const _0xe6a473=this;return new Promise(function(_0x560b69,_0x10e7bc){const _0x30a919=a423_0x569f;return db[_0x30a919('0x7')][_0x30a919('0xf')]({'raw':_0x4bd917[_0x30a919('0xb')]?_0x4bd917[_0x30a919('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x4bd917[_0x30a919('0xb')]?_0x4bd917[_0x30a919('0xb')][_0x30a919('0x5')]||null:null,'attributes':_0x4bd917[_0x30a919('0xb')]?_0x4bd917[_0x30a919('0xb')]['attributes']||null:null,'include':_0x4bd917[_0x30a919('0xb')]?_0x4bd917[_0x30a919('0xb')][_0x30a919('0xd')]?_['map'](_0x4bd917['options'][_0x30a919('0xd')],function(_0x3ee890){const _0x42bf30=_0x30a919;return{'model':db[_0x3ee890[_0x42bf30('0x4')]],'as':_0x3ee890['as'],'attributes':_0x3ee890[_0x42bf30('0x13')],'include':_0x3ee890[_0x42bf30('0xd')]?_[_0x42bf30('0x1')](_0x3ee890[_0x42bf30('0xd')],function(_0x342211){const _0x50ebf0=_0x42bf30;return{'model':db[_0x342211[_0x50ebf0('0x4')]],'as':_0x342211['as'],'attributes':_0x342211['attributes'],'include':_0x342211[_0x50ebf0('0xd')]?_[_0x50ebf0('0x1')](_0x342211[_0x50ebf0('0xd')],function(_0x44da01){const _0x1cd13d=_0x50ebf0;return{'model':db[_0x44da01['model']],'as':_0x44da01['as'],'attributes':_0x44da01[_0x1cd13d('0x13')]};}):[]};}):[]};}):[]:[]})[_0x30a919('0x14')](function(_0x102e55){const _0x116ad1=_0x30a919;logger[_0x116ad1('0x15')]('ShowMailQueue',_0x4bd917),logger[_0x116ad1('0x8')](_0x116ad1('0x12'),_0x4bd917,JSON['stringify'](_0x102e55)),_0x560b69(_0x102e55);})['catch'](function(_0x2114d7){const _0x2af30b=_0x30a919;logger[_0x2af30b('0x16')]('ShowMailQueue',_0x2114d7[_0x2af30b('0x2')],_0x4bd917),_0x10e7bc(_0xe6a473['error'](0x1f4,_0x2114d7[_0x2af30b('0x2')]));});});};
\ No newline at end of file
+const a509_0x31dd=['MailQueue','message','attributes','debug','raw','../../config/logger','map','GetMailQueue','./mailQueue.socket','then','findOne','include','../../mysqldb','ShowMailQueue','catch','rpc','stringify','lodash','error','info','model','options','../../rediscache'];(function(_0x1792ef,_0x41f436){const _0x31dd12=function(_0x4da6cb){while(--_0x4da6cb){_0x1792ef['push'](_0x1792ef['shift']());}};_0x31dd12(++_0x41f436);}(a509_0x31dd,0x1be));const a509_0x4da6=function(_0x1792ef,_0x41f436){_0x1792ef=_0x1792ef-0xbf;let _0x31dd12=a509_0x31dd[_0x1792ef];return _0x31dd12;};const a509_0x23b862=a509_0x4da6;'use strict';const _=require(a509_0x23b862(0xc7)),db=require(a509_0x23b862(0xc2))['db'],logger=require(a509_0x23b862(0xd2))(a509_0x23b862(0xc5)),{getSocket}=require(a509_0x23b862(0xcc)),socket=getSocket();require(a509_0x23b862(0xd5))['register'](socket),exports[a509_0x23b862(0xd4)]=function(_0x4598a0){const _0x2efa1e=this;return new Promise(function(_0x20dff8,_0x14aaa2){const _0x347a1d=a509_0x4da6;return db[_0x347a1d(0xcd)]['findAll']({'raw':_0x4598a0['options']?_0x4598a0[_0x347a1d(0xcb)][_0x347a1d(0xd1)]===undefined?!![]:![]:!![],'where':_0x4598a0[_0x347a1d(0xcb)]?_0x4598a0[_0x347a1d(0xcb)]['where']||null:null,'attributes':_0x4598a0[_0x347a1d(0xcb)]?_0x4598a0[_0x347a1d(0xcb)][_0x347a1d(0xcf)]||null:null,'limit':_0x4598a0[_0x347a1d(0xcb)]?_0x4598a0[_0x347a1d(0xcb)]['limit']||null:null,'include':_0x4598a0[_0x347a1d(0xcb)]?_0x4598a0[_0x347a1d(0xcb)][_0x347a1d(0xc1)]?_[_0x347a1d(0xd3)](_0x4598a0['options'][_0x347a1d(0xc1)],function(_0xb3158c){const _0x2fb3ba=_0x347a1d;return{'model':db[_0xb3158c[_0x2fb3ba(0xca)]],'as':_0xb3158c['as'],'attributes':_0xb3158c['attributes'],'include':_0xb3158c[_0x2fb3ba(0xc1)]?_[_0x2fb3ba(0xd3)](_0xb3158c[_0x2fb3ba(0xc1)],function(_0x16d874){const _0xdeedd8=_0x2fb3ba;return{'model':db[_0x16d874[_0xdeedd8(0xca)]],'as':_0x16d874['as'],'attributes':_0x16d874[_0xdeedd8(0xcf)],'include':_0x16d874[_0xdeedd8(0xc1)]?_[_0xdeedd8(0xd3)](_0x16d874[_0xdeedd8(0xc1)],function(_0x228b5e){const _0xff432a=_0xdeedd8;return{'model':db[_0x228b5e[_0xff432a(0xca)]],'as':_0x228b5e['as'],'attributes':_0x228b5e['attributes']};}):[]};}):[]};}):[]:[]})[_0x347a1d(0xbf)](function(_0x2b6fba){const _0x4bb680=_0x347a1d;logger[_0x4bb680(0xc9)](_0x4bb680(0xd4),_0x4598a0),logger[_0x4bb680(0xd0)](_0x4bb680(0xd4),_0x4598a0,JSON[_0x4bb680(0xc6)](_0x2b6fba)),_0x20dff8(_0x2b6fba);})[_0x347a1d(0xc4)](function(_0x57f7c6){const _0x48c23c=_0x347a1d;logger[_0x48c23c(0xc8)](_0x48c23c(0xd4),_0x57f7c6[_0x48c23c(0xce)],_0x4598a0),_0x14aaa2(_0x2efa1e[_0x48c23c(0xc8)](0x1f4,_0x57f7c6[_0x48c23c(0xce)]));});});},exports[a509_0x23b862(0xc3)]=function(_0x316469){const _0x374af8=this;return new Promise(function(_0x45af40,_0x595af2){const _0x3ae8eb=a509_0x4da6;return db[_0x3ae8eb(0xcd)][_0x3ae8eb(0xc0)]({'raw':_0x316469[_0x3ae8eb(0xcb)]?_0x316469['options'][_0x3ae8eb(0xd1)]===undefined?!![]:![]:!![],'where':_0x316469[_0x3ae8eb(0xcb)]?_0x316469['options']['where']||null:null,'attributes':_0x316469[_0x3ae8eb(0xcb)]?_0x316469[_0x3ae8eb(0xcb)][_0x3ae8eb(0xcf)]||null:null,'include':_0x316469[_0x3ae8eb(0xcb)]?_0x316469[_0x3ae8eb(0xcb)][_0x3ae8eb(0xc1)]?_[_0x3ae8eb(0xd3)](_0x316469[_0x3ae8eb(0xcb)]['include'],function(_0x1ff800){const _0x40317b=_0x3ae8eb;return{'model':db[_0x1ff800[_0x40317b(0xca)]],'as':_0x1ff800['as'],'attributes':_0x1ff800[_0x40317b(0xcf)],'include':_0x1ff800[_0x40317b(0xc1)]?_[_0x40317b(0xd3)](_0x1ff800['include'],function(_0x49f218){const _0x31386a=_0x40317b;return{'model':db[_0x49f218['model']],'as':_0x49f218['as'],'attributes':_0x49f218[_0x31386a(0xcf)],'include':_0x49f218['include']?_[_0x31386a(0xd3)](_0x49f218['include'],function(_0x8e2519){const _0x27276f=_0x31386a;return{'model':db[_0x8e2519['model']],'as':_0x8e2519['as'],'attributes':_0x8e2519[_0x27276f(0xcf)]};}):[]};}):[]};}):[]:[]})[_0x3ae8eb(0xbf)](function(_0x5e5f5e){const _0x7ad2bb=_0x3ae8eb;logger['info'](_0x7ad2bb(0xc3),_0x316469),logger['debug']('ShowMailQueue',_0x316469,JSON[_0x7ad2bb(0xc6)](_0x5e5f5e)),_0x45af40(_0x5e5f5e);})[_0x3ae8eb(0xc4)](function(_0x4966a7){const _0x331b34=_0x3ae8eb;logger['error'](_0x331b34(0xc3),_0x4966a7[_0x331b34(0xce)],_0x316469),_0x595af2(_0x374af8[_0x331b34(0xc8)](0x1f4,_0x4966a7['message']));});});};
\ No newline at end of file