Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / api / faxQueue / faxQueue.rpc.js
index b587bf3..6ff821a 100644 (file)
@@ -1 +1 @@
-const a215_0x5036=['message','../../mysqldb','lodash','FaxQueue','catch','GetFaxQueue','options','error','../../config/logger','register','findOne','../../rediscache','map','attributes','./faxQueue.socket','model','debug','ShowFaxQueue','limit','raw','include','rpc','where','stringify','info','then'];(function(_0x33e84c,_0x50360e){const _0x27c72f=function(_0x54c001){while(--_0x54c001){_0x33e84c['push'](_0x33e84c['shift']());}};_0x27c72f(++_0x50360e);}(a215_0x5036,0xa6));const a215_0x27c7=function(_0x33e84c,_0x50360e){_0x33e84c=_0x33e84c-0x0;let _0x27c72f=a215_0x5036[_0x33e84c];return _0x27c72f;};const _0x1b63a1=a215_0x27c7;'use strict';const _=require(_0x1b63a1('0x12')),db=require(_0x1b63a1('0x11'))['db'],logger=require(_0x1b63a1('0x18'))(_0x1b63a1('0xb')),{getSocket}=require(_0x1b63a1('0x1')),socket=getSocket();require(_0x1b63a1('0x4'))[_0x1b63a1('0x19')](socket),exports[_0x1b63a1('0x15')]=function(_0x54c001){const _0x268358=this;return new Promise(function(_0x2418d8,_0x5d1cf7){const _0x5466a7=a215_0x27c7;return db[_0x5466a7('0x13')]['findAll']({'raw':_0x54c001['options']?_0x54c001[_0x5466a7('0x16')][_0x5466a7('0x9')]===undefined?!![]:![]:!![],'where':_0x54c001[_0x5466a7('0x16')]?_0x54c001[_0x5466a7('0x16')][_0x5466a7('0xc')]||null:null,'attributes':_0x54c001[_0x5466a7('0x16')]?_0x54c001[_0x5466a7('0x16')][_0x5466a7('0x3')]||null:null,'limit':_0x54c001[_0x5466a7('0x16')]?_0x54c001[_0x5466a7('0x16')][_0x5466a7('0x8')]||null:null,'include':_0x54c001[_0x5466a7('0x16')]?_0x54c001[_0x5466a7('0x16')][_0x5466a7('0xa')]?_[_0x5466a7('0x2')](_0x54c001[_0x5466a7('0x16')][_0x5466a7('0xa')],function(_0x3a7b90){const _0x4ccd43=_0x5466a7;return{'model':db[_0x3a7b90[_0x4ccd43('0x5')]],'as':_0x3a7b90['as'],'attributes':_0x3a7b90[_0x4ccd43('0x3')],'include':_0x3a7b90[_0x4ccd43('0xa')]?_[_0x4ccd43('0x2')](_0x3a7b90[_0x4ccd43('0xa')],function(_0x1a4928){const _0x21c58f=_0x4ccd43;return{'model':db[_0x1a4928[_0x21c58f('0x5')]],'as':_0x1a4928['as'],'attributes':_0x1a4928['attributes'],'include':_0x1a4928[_0x21c58f('0xa')]?_[_0x21c58f('0x2')](_0x1a4928['include'],function(_0x3eecd8){const _0x1f2590=_0x21c58f;return{'model':db[_0x3eecd8[_0x1f2590('0x5')]],'as':_0x3eecd8['as'],'attributes':_0x3eecd8['attributes']};}):[]};}):[]};}):[]:[]})[_0x5466a7('0xf')](function(_0x33397c){const _0x431fc0=_0x5466a7;logger[_0x431fc0('0xe')](_0x431fc0('0x15'),_0x54c001),logger[_0x431fc0('0x6')](_0x431fc0('0x15'),_0x54c001,JSON[_0x431fc0('0xd')](_0x33397c)),_0x2418d8(_0x33397c);})[_0x5466a7('0x14')](function(_0x127157){const _0x43a0e4=_0x5466a7;logger['error'](_0x43a0e4('0x15'),_0x127157['message'],_0x54c001),_0x5d1cf7(_0x268358[_0x43a0e4('0x17')](0x1f4,_0x127157[_0x43a0e4('0x10')]));});});},exports['ShowFaxQueue']=function(_0xeb3dc6){const _0x5efdc3=this;return new Promise(function(_0x18a7fd,_0x1bf309){const _0x3ec329=a215_0x27c7;return db[_0x3ec329('0x13')][_0x3ec329('0x0')]({'raw':_0xeb3dc6[_0x3ec329('0x16')]?_0xeb3dc6[_0x3ec329('0x16')][_0x3ec329('0x9')]===undefined?!![]:![]:!![],'where':_0xeb3dc6[_0x3ec329('0x16')]?_0xeb3dc6['options']['where']||null:null,'attributes':_0xeb3dc6[_0x3ec329('0x16')]?_0xeb3dc6[_0x3ec329('0x16')][_0x3ec329('0x3')]||null:null,'include':_0xeb3dc6['options']?_0xeb3dc6[_0x3ec329('0x16')][_0x3ec329('0xa')]?_['map'](_0xeb3dc6['options'][_0x3ec329('0xa')],function(_0x555dbc){const _0x56f939=_0x3ec329;return{'model':db[_0x555dbc[_0x56f939('0x5')]],'as':_0x555dbc['as'],'attributes':_0x555dbc[_0x56f939('0x3')],'include':_0x555dbc['include']?_[_0x56f939('0x2')](_0x555dbc[_0x56f939('0xa')],function(_0x7c85d7){const _0x487225=_0x56f939;return{'model':db[_0x7c85d7[_0x487225('0x5')]],'as':_0x7c85d7['as'],'attributes':_0x7c85d7[_0x487225('0x3')],'include':_0x7c85d7[_0x487225('0xa')]?_[_0x487225('0x2')](_0x7c85d7[_0x487225('0xa')],function(_0xbf3a7){const _0x278d1d=_0x487225;return{'model':db[_0xbf3a7[_0x278d1d('0x5')]],'as':_0xbf3a7['as'],'attributes':_0xbf3a7[_0x278d1d('0x3')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x55f4ee){const _0x553ee2=_0x3ec329;logger['info'](_0x553ee2('0x7'),_0xeb3dc6),logger['debug'](_0x553ee2('0x7'),_0xeb3dc6,JSON[_0x553ee2('0xd')](_0x55f4ee)),_0x18a7fd(_0x55f4ee);})['catch'](function(_0x3f9ec9){const _0x19384d=_0x3ec329;logger[_0x19384d('0x17')]('ShowFaxQueue',_0x3f9ec9[_0x19384d('0x10')],_0xeb3dc6),_0x1bf309(_0x5efdc3[_0x19384d('0x17')](0x1f4,_0x3f9ec9[_0x19384d('0x10')]));});});};
\ No newline at end of file
+const a215_0x2afc=['../../mysqldb','catch','../../config/logger','include','limit','raw','message','then','../../rediscache','info','GetFaxQueue','debug','findAll','ShowFaxQueue','stringify','map','FaxQueue','register','options','model','error','lodash','./faxQueue.socket','attributes','where'];(function(_0x3f322d,_0x2afc9a){const _0x5fc5f5=function(_0x5168bc){while(--_0x5168bc){_0x3f322d['push'](_0x3f322d['shift']());}};_0x5fc5f5(++_0x2afc9a);}(a215_0x2afc,0x1d8));const a215_0x5fc5=function(_0x3f322d,_0x2afc9a){_0x3f322d=_0x3f322d-0x0;let _0x5fc5f5=a215_0x2afc[_0x3f322d];return _0x5fc5f5;};const _0x12c3f7=a215_0x5fc5;'use strict';const _=require(_0x12c3f7('0x18')),db=require(_0x12c3f7('0x3'))['db'],logger=require(_0x12c3f7('0x5'))('rpc'),{getSocket}=require(_0x12c3f7('0xb')),socket=getSocket();require(_0x12c3f7('0x0'))[_0x12c3f7('0x14')](socket),exports[_0x12c3f7('0xd')]=function(_0x5168bc){const _0x5093a=this;return new Promise(function(_0x511ba0,_0x394fb2){const _0x60f6e2=a215_0x5fc5;return db[_0x60f6e2('0x13')][_0x60f6e2('0xf')]({'raw':_0x5168bc['options']?_0x5168bc[_0x60f6e2('0x15')][_0x60f6e2('0x8')]===undefined?!![]:![]:!![],'where':_0x5168bc[_0x60f6e2('0x15')]?_0x5168bc[_0x60f6e2('0x15')][_0x60f6e2('0x2')]||null:null,'attributes':_0x5168bc[_0x60f6e2('0x15')]?_0x5168bc['options'][_0x60f6e2('0x1')]||null:null,'limit':_0x5168bc[_0x60f6e2('0x15')]?_0x5168bc['options'][_0x60f6e2('0x7')]||null:null,'include':_0x5168bc['options']?_0x5168bc[_0x60f6e2('0x15')][_0x60f6e2('0x6')]?_[_0x60f6e2('0x12')](_0x5168bc['options'][_0x60f6e2('0x6')],function(_0x2d7ba9){const _0x5c2347=_0x60f6e2;return{'model':db[_0x2d7ba9[_0x5c2347('0x16')]],'as':_0x2d7ba9['as'],'attributes':_0x2d7ba9[_0x5c2347('0x1')],'include':_0x2d7ba9['include']?_['map'](_0x2d7ba9[_0x5c2347('0x6')],function(_0x1c381b){const _0x25c992=_0x5c2347;return{'model':db[_0x1c381b[_0x25c992('0x16')]],'as':_0x1c381b['as'],'attributes':_0x1c381b[_0x25c992('0x1')],'include':_0x1c381b[_0x25c992('0x6')]?_['map'](_0x1c381b[_0x25c992('0x6')],function(_0x5f536b){const _0x5348ab=_0x25c992;return{'model':db[_0x5f536b[_0x5348ab('0x16')]],'as':_0x5f536b['as'],'attributes':_0x5f536b[_0x5348ab('0x1')]};}):[]};}):[]};}):[]:[]})[_0x60f6e2('0xa')](function(_0x282bfe){const _0x24bdc7=_0x60f6e2;logger[_0x24bdc7('0xc')](_0x24bdc7('0xd'),_0x5168bc),logger[_0x24bdc7('0xe')]('GetFaxQueue',_0x5168bc,JSON[_0x24bdc7('0x11')](_0x282bfe)),_0x511ba0(_0x282bfe);})[_0x60f6e2('0x4')](function(_0x23ef7a){const _0x4018cc=_0x60f6e2;logger[_0x4018cc('0x17')]('GetFaxQueue',_0x23ef7a[_0x4018cc('0x9')],_0x5168bc),_0x394fb2(_0x5093a[_0x4018cc('0x17')](0x1f4,_0x23ef7a[_0x4018cc('0x9')]));});});},exports[_0x12c3f7('0x10')]=function(_0x56381){const _0x48b864=this;return new Promise(function(_0x560c94,_0x2fe186){const _0x544150=a215_0x5fc5;return db['FaxQueue']['findOne']({'raw':_0x56381[_0x544150('0x15')]?_0x56381[_0x544150('0x15')][_0x544150('0x8')]===undefined?!![]:![]:!![],'where':_0x56381['options']?_0x56381[_0x544150('0x15')][_0x544150('0x2')]||null:null,'attributes':_0x56381[_0x544150('0x15')]?_0x56381[_0x544150('0x15')][_0x544150('0x1')]||null:null,'include':_0x56381[_0x544150('0x15')]?_0x56381[_0x544150('0x15')]['include']?_[_0x544150('0x12')](_0x56381[_0x544150('0x15')][_0x544150('0x6')],function(_0xdd6236){const _0x2eb219=_0x544150;return{'model':db[_0xdd6236['model']],'as':_0xdd6236['as'],'attributes':_0xdd6236[_0x2eb219('0x1')],'include':_0xdd6236[_0x2eb219('0x6')]?_[_0x2eb219('0x12')](_0xdd6236[_0x2eb219('0x6')],function(_0x16d2e0){const _0x1b6e99=_0x2eb219;return{'model':db[_0x16d2e0[_0x1b6e99('0x16')]],'as':_0x16d2e0['as'],'attributes':_0x16d2e0['attributes'],'include':_0x16d2e0[_0x1b6e99('0x6')]?_[_0x1b6e99('0x12')](_0x16d2e0[_0x1b6e99('0x6')],function(_0x50eb5f){const _0xce1869=_0x1b6e99;return{'model':db[_0x50eb5f[_0xce1869('0x16')]],'as':_0x50eb5f['as'],'attributes':_0x50eb5f[_0xce1869('0x1')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xdc5982){const _0x2b7a61=_0x544150;logger[_0x2b7a61('0xc')](_0x2b7a61('0x10'),_0x56381),logger[_0x2b7a61('0xe')]('ShowFaxQueue',_0x56381,JSON[_0x2b7a61('0x11')](_0xdc5982)),_0x560c94(_0xdc5982);})['catch'](function(_0x34d2a7){const _0x57a9c3=_0x544150;logger['error'](_0x57a9c3('0x10'),_0x34d2a7['message'],_0x56381),_0x2fe186(_0x48b864[_0x57a9c3('0x17')](0x1f4,_0x34d2a7['message']));});});};
\ No newline at end of file