Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / api / mailQueue / mailQueue.rpc.js
index 018320c..24a811d 100644 (file)
@@ -1 +1 @@
-const a509_0x5b2a=['info','../../config/logger','../../mysqldb','where','message','model','../../rediscache','attributes','error','limit','register','options','ShowMailQueue','findAll','catch','findOne','MailQueue','include','raw','map','GetMailQueue','./mailQueue.socket','rpc'];(function(_0x592634,_0x4265f3){const _0x5b2a75=function(_0x1357fe){while(--_0x1357fe){_0x592634['push'](_0x592634['shift']());}};_0x5b2a75(++_0x4265f3);}(a509_0x5b2a,0x17a));const a509_0x1357=function(_0x592634,_0x4265f3){_0x592634=_0x592634-0xed;let _0x5b2a75=a509_0x5b2a[_0x592634];return _0x5b2a75;};const a509_0xea2e9d=a509_0x1357;'use strict';const _=require('lodash'),db=require(a509_0xea2e9d(0xfc))['db'],logger=require(a509_0xea2e9d(0xfb))(a509_0xea2e9d(0xf9)),{getSocket}=require(a509_0xea2e9d(0x100)),socket=getSocket();require(a509_0xea2e9d(0xf8))[a509_0xea2e9d(0xed)](socket),exports[a509_0xea2e9d(0xf7)]=function(_0x221dde){const _0xf3f209=this;return new Promise(function(_0x5983df,_0x1128b5){const _0x5ca470=a509_0x1357;return db[_0x5ca470(0xf3)][_0x5ca470(0xf0)]({'raw':_0x221dde[_0x5ca470(0xee)]?_0x221dde[_0x5ca470(0xee)][_0x5ca470(0xf5)]===undefined?!![]:![]:!![],'where':_0x221dde[_0x5ca470(0xee)]?_0x221dde[_0x5ca470(0xee)][_0x5ca470(0xfd)]||null:null,'attributes':_0x221dde[_0x5ca470(0xee)]?_0x221dde[_0x5ca470(0xee)][_0x5ca470(0x101)]||null:null,'limit':_0x221dde['options']?_0x221dde[_0x5ca470(0xee)][_0x5ca470(0x103)]||null:null,'include':_0x221dde[_0x5ca470(0xee)]?_0x221dde[_0x5ca470(0xee)]['include']?_['map'](_0x221dde[_0x5ca470(0xee)]['include'],function(_0x311eaa){const _0x32ee28=_0x5ca470;return{'model':db[_0x311eaa[_0x32ee28(0xff)]],'as':_0x311eaa['as'],'attributes':_0x311eaa[_0x32ee28(0x101)],'include':_0x311eaa['include']?_[_0x32ee28(0xf6)](_0x311eaa['include'],function(_0x3dfda0){const _0x17cce6=_0x32ee28;return{'model':db[_0x3dfda0[_0x17cce6(0xff)]],'as':_0x3dfda0['as'],'attributes':_0x3dfda0[_0x17cce6(0x101)],'include':_0x3dfda0[_0x17cce6(0xf4)]?_[_0x17cce6(0xf6)](_0x3dfda0[_0x17cce6(0xf4)],function(_0x48606f){const _0x2ca539=_0x17cce6;return{'model':db[_0x48606f[_0x2ca539(0xff)]],'as':_0x48606f['as'],'attributes':_0x48606f[_0x2ca539(0x101)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x26c5b3){const _0x3e548b=_0x5ca470;logger[_0x3e548b(0xfa)](_0x3e548b(0xf7),_0x221dde),logger['debug'](_0x3e548b(0xf7),_0x221dde,JSON['stringify'](_0x26c5b3)),_0x5983df(_0x26c5b3);})[_0x5ca470(0xf1)](function(_0x47eec3){const _0x7e24e9=_0x5ca470;logger[_0x7e24e9(0x102)](_0x7e24e9(0xf7),_0x47eec3[_0x7e24e9(0xfe)],_0x221dde),_0x1128b5(_0xf3f209[_0x7e24e9(0x102)](0x1f4,_0x47eec3['message']));});});},exports['ShowMailQueue']=function(_0x400417){const _0x43f2cb=this;return new Promise(function(_0x64534c,_0x46a493){const _0x256e88=a509_0x1357;return db[_0x256e88(0xf3)][_0x256e88(0xf2)]({'raw':_0x400417[_0x256e88(0xee)]?_0x400417[_0x256e88(0xee)]['raw']===undefined?!![]:![]:!![],'where':_0x400417[_0x256e88(0xee)]?_0x400417['options'][_0x256e88(0xfd)]||null:null,'attributes':_0x400417[_0x256e88(0xee)]?_0x400417[_0x256e88(0xee)][_0x256e88(0x101)]||null:null,'include':_0x400417[_0x256e88(0xee)]?_0x400417['options'][_0x256e88(0xf4)]?_[_0x256e88(0xf6)](_0x400417[_0x256e88(0xee)][_0x256e88(0xf4)],function(_0x58572a){const _0x1e9112=_0x256e88;return{'model':db[_0x58572a[_0x1e9112(0xff)]],'as':_0x58572a['as'],'attributes':_0x58572a[_0x1e9112(0x101)],'include':_0x58572a[_0x1e9112(0xf4)]?_[_0x1e9112(0xf6)](_0x58572a['include'],function(_0x3d4bb8){const _0x2a8630=_0x1e9112;return{'model':db[_0x3d4bb8[_0x2a8630(0xff)]],'as':_0x3d4bb8['as'],'attributes':_0x3d4bb8[_0x2a8630(0x101)],'include':_0x3d4bb8[_0x2a8630(0xf4)]?_[_0x2a8630(0xf6)](_0x3d4bb8[_0x2a8630(0xf4)],function(_0x5294ce){const _0x549554=_0x2a8630;return{'model':db[_0x5294ce[_0x549554(0xff)]],'as':_0x5294ce['as'],'attributes':_0x5294ce['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2244cf){const _0x50a57d=_0x256e88;logger[_0x50a57d(0xfa)](_0x50a57d(0xef),_0x400417),logger['debug'](_0x50a57d(0xef),_0x400417,JSON['stringify'](_0x2244cf)),_0x64534c(_0x2244cf);})[_0x256e88(0xf1)](function(_0x99e42f){const _0x1aabc0=_0x256e88;logger[_0x1aabc0(0x102)](_0x1aabc0(0xef),_0x99e42f['message'],_0x400417),_0x46a493(_0x43f2cb[_0x1aabc0(0x102)](0x1f4,_0x99e42f[_0x1aabc0(0xfe)]));});});};
\ No newline at end of file
+const a509_0x4ec2=['rpc','attributes','model','info','debug','../../config/logger','error','lodash','ShowMailQueue','MailQueue','options','./mailQueue.socket','raw','findOne','map','message','GetMailQueue','stringify','limit','then','register','findAll','where','include','catch','../../rediscache'];(function(_0x50e6fd,_0x3b6cd5){const _0x4ec209=function(_0xe133b9){while(--_0xe133b9){_0x50e6fd['push'](_0x50e6fd['shift']());}};_0x4ec209(++_0x3b6cd5);}(a509_0x4ec2,0x155));const a509_0xe133=function(_0x50e6fd,_0x3b6cd5){_0x50e6fd=_0x50e6fd-0x1a1;let _0x4ec209=a509_0x4ec2[_0x50e6fd];return _0x4ec209;};const a509_0x5eb88f=a509_0xe133;'use strict';const _=require(a509_0x5eb88f(0x1a5)),db=require('../../mysqldb')['db'],logger=require(a509_0x5eb88f(0x1a3))(a509_0x5eb88f(0x1b8)),{getSocket}=require(a509_0x5eb88f(0x1b7)),socket=getSocket();require(a509_0x5eb88f(0x1a9))[a509_0x5eb88f(0x1b2)](socket),exports['GetMailQueue']=function(_0x34529c){const _0x3fb3d8=this;return new Promise(function(_0x2c88a2,_0x503137){const _0x13cc36=a509_0xe133;return db[_0x13cc36(0x1a7)][_0x13cc36(0x1b3)]({'raw':_0x34529c[_0x13cc36(0x1a8)]?_0x34529c[_0x13cc36(0x1a8)]['raw']===undefined?!![]:![]:!![],'where':_0x34529c[_0x13cc36(0x1a8)]?_0x34529c[_0x13cc36(0x1a8)]['where']||null:null,'attributes':_0x34529c['options']?_0x34529c[_0x13cc36(0x1a8)]['attributes']||null:null,'limit':_0x34529c[_0x13cc36(0x1a8)]?_0x34529c['options'][_0x13cc36(0x1b0)]||null:null,'include':_0x34529c[_0x13cc36(0x1a8)]?_0x34529c['options'][_0x13cc36(0x1b5)]?_[_0x13cc36(0x1ac)](_0x34529c[_0x13cc36(0x1a8)][_0x13cc36(0x1b5)],function(_0x422748){const _0x3be117=_0x13cc36;return{'model':db[_0x422748[_0x3be117(0x1ba)]],'as':_0x422748['as'],'attributes':_0x422748[_0x3be117(0x1b9)],'include':_0x422748[_0x3be117(0x1b5)]?_[_0x3be117(0x1ac)](_0x422748['include'],function(_0x19a0ae){const _0x429874=_0x3be117;return{'model':db[_0x19a0ae['model']],'as':_0x19a0ae['as'],'attributes':_0x19a0ae[_0x429874(0x1b9)],'include':_0x19a0ae[_0x429874(0x1b5)]?_['map'](_0x19a0ae[_0x429874(0x1b5)],function(_0xb7e37c){const _0x21fb4f=_0x429874;return{'model':db[_0xb7e37c[_0x21fb4f(0x1ba)]],'as':_0xb7e37c['as'],'attributes':_0xb7e37c['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2b78a5){const _0x2d54bb=_0x13cc36;logger[_0x2d54bb(0x1a1)](_0x2d54bb(0x1ae),_0x34529c),logger[_0x2d54bb(0x1a2)](_0x2d54bb(0x1ae),_0x34529c,JSON[_0x2d54bb(0x1af)](_0x2b78a5)),_0x2c88a2(_0x2b78a5);})[_0x13cc36(0x1b6)](function(_0x29f55a){const _0x51ea82=_0x13cc36;logger[_0x51ea82(0x1a4)]('GetMailQueue',_0x29f55a[_0x51ea82(0x1ad)],_0x34529c),_0x503137(_0x3fb3d8['error'](0x1f4,_0x29f55a[_0x51ea82(0x1ad)]));});});},exports['ShowMailQueue']=function(_0x159068){const _0x26cb2a=this;return new Promise(function(_0x2e303a,_0x16fd48){const _0x2dea76=a509_0xe133;return db[_0x2dea76(0x1a7)][_0x2dea76(0x1ab)]({'raw':_0x159068[_0x2dea76(0x1a8)]?_0x159068['options'][_0x2dea76(0x1aa)]===undefined?!![]:![]:!![],'where':_0x159068[_0x2dea76(0x1a8)]?_0x159068[_0x2dea76(0x1a8)][_0x2dea76(0x1b4)]||null:null,'attributes':_0x159068[_0x2dea76(0x1a8)]?_0x159068[_0x2dea76(0x1a8)][_0x2dea76(0x1b9)]||null:null,'include':_0x159068[_0x2dea76(0x1a8)]?_0x159068['options'][_0x2dea76(0x1b5)]?_['map'](_0x159068[_0x2dea76(0x1a8)][_0x2dea76(0x1b5)],function(_0x574f57){const _0xf2f12c=_0x2dea76;return{'model':db[_0x574f57[_0xf2f12c(0x1ba)]],'as':_0x574f57['as'],'attributes':_0x574f57['attributes'],'include':_0x574f57[_0xf2f12c(0x1b5)]?_['map'](_0x574f57[_0xf2f12c(0x1b5)],function(_0x31d8ab){const _0x21f599=_0xf2f12c;return{'model':db[_0x31d8ab[_0x21f599(0x1ba)]],'as':_0x31d8ab['as'],'attributes':_0x31d8ab[_0x21f599(0x1b9)],'include':_0x31d8ab[_0x21f599(0x1b5)]?_['map'](_0x31d8ab[_0x21f599(0x1b5)],function(_0x429052){const _0x1619e2=_0x21f599;return{'model':db[_0x429052[_0x1619e2(0x1ba)]],'as':_0x429052['as'],'attributes':_0x429052[_0x1619e2(0x1b9)]};}):[]};}):[]};}):[]:[]})[_0x2dea76(0x1b1)](function(_0x56f885){const _0x284b35=_0x2dea76;logger[_0x284b35(0x1a1)]('ShowMailQueue',_0x159068),logger[_0x284b35(0x1a2)](_0x284b35(0x1a6),_0x159068,JSON[_0x284b35(0x1af)](_0x56f885)),_0x2e303a(_0x56f885);})[_0x2dea76(0x1b6)](function(_0x3a2357){const _0x2319a6=_0x2dea76;logger[_0x2319a6(0x1a4)](_0x2319a6(0x1a6),_0x3a2357['message'],_0x159068),_0x16fd48(_0x26cb2a[_0x2319a6(0x1a4)](0x1f4,_0x3a2357[_0x2319a6(0x1ad)]));});});};
\ No newline at end of file