Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / api / faxQueue / faxQueue.rpc.js
index 132790d..54ae030 100644 (file)
@@ -1 +1 @@
-const a215_0x4119=['model','debug','FaxQueue','register','raw','options','then','map','stringify','message','findAll','where','./faxQueue.socket','rpc','error','include','../../config/logger','limit','catch','attributes','lodash','GetFaxQueue','info','ShowFaxQueue'];(function(_0x4e2a7c,_0x411949){const _0x31bd33=function(_0x4bce12){while(--_0x4bce12){_0x4e2a7c['push'](_0x4e2a7c['shift']());}};_0x31bd33(++_0x411949);}(a215_0x4119,0xa6));const a215_0x31bd=function(_0x4e2a7c,_0x411949){_0x4e2a7c=_0x4e2a7c-0x0;let _0x31bd33=a215_0x4119[_0x4e2a7c];return _0x31bd33;};const _0x48d4b5=a215_0x31bd;'use strict';const _=require(_0x48d4b5('0x16')),db=require('../../mysqldb')['db'],logger=require(_0x48d4b5('0x12'))(_0x48d4b5('0xf')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x48d4b5('0xe'))[_0x48d4b5('0x5')](socket),exports[_0x48d4b5('0x17')]=function(_0x4bce12){const _0xce651b=this;return new Promise(function(_0x39521b,_0x317ac0){const _0x397bad=a215_0x31bd;return db['FaxQueue'][_0x397bad('0xc')]({'raw':_0x4bce12[_0x397bad('0x7')]?_0x4bce12['options'][_0x397bad('0x6')]===undefined?!![]:![]:!![],'where':_0x4bce12['options']?_0x4bce12[_0x397bad('0x7')][_0x397bad('0xd')]||null:null,'attributes':_0x4bce12[_0x397bad('0x7')]?_0x4bce12['options'][_0x397bad('0x15')]||null:null,'limit':_0x4bce12[_0x397bad('0x7')]?_0x4bce12[_0x397bad('0x7')][_0x397bad('0x13')]||null:null,'include':_0x4bce12[_0x397bad('0x7')]?_0x4bce12['options'][_0x397bad('0x11')]?_[_0x397bad('0x9')](_0x4bce12[_0x397bad('0x7')][_0x397bad('0x11')],function(_0xbdb68){const _0x48491e=_0x397bad;return{'model':db[_0xbdb68['model']],'as':_0xbdb68['as'],'attributes':_0xbdb68['attributes'],'include':_0xbdb68[_0x48491e('0x11')]?_[_0x48491e('0x9')](_0xbdb68[_0x48491e('0x11')],function(_0x1c414a){const _0xd153ec=_0x48491e;return{'model':db[_0x1c414a[_0xd153ec('0x2')]],'as':_0x1c414a['as'],'attributes':_0x1c414a['attributes'],'include':_0x1c414a['include']?_[_0xd153ec('0x9')](_0x1c414a[_0xd153ec('0x11')],function(_0xc5f873){const _0x35c9b7=_0xd153ec;return{'model':db[_0xc5f873[_0x35c9b7('0x2')]],'as':_0xc5f873['as'],'attributes':_0xc5f873[_0x35c9b7('0x15')]};}):[]};}):[]};}):[]:[]})[_0x397bad('0x8')](function(_0x260804){const _0x2c7d2b=_0x397bad;logger['info'](_0x2c7d2b('0x17'),_0x4bce12),logger[_0x2c7d2b('0x3')](_0x2c7d2b('0x17'),_0x4bce12,JSON[_0x2c7d2b('0xa')](_0x260804)),_0x39521b(_0x260804);})[_0x397bad('0x14')](function(_0xd3c3a0){const _0x5d1a4c=_0x397bad;logger[_0x5d1a4c('0x10')](_0x5d1a4c('0x17'),_0xd3c3a0['message'],_0x4bce12),_0x317ac0(_0xce651b[_0x5d1a4c('0x10')](0x1f4,_0xd3c3a0[_0x5d1a4c('0xb')]));});});},exports[_0x48d4b5('0x1')]=function(_0x563ccd){const _0x1397c9=this;return new Promise(function(_0x571154,_0x279444){const _0x141493=a215_0x31bd;return db[_0x141493('0x4')]['findOne']({'raw':_0x563ccd[_0x141493('0x7')]?_0x563ccd[_0x141493('0x7')][_0x141493('0x6')]===undefined?!![]:![]:!![],'where':_0x563ccd[_0x141493('0x7')]?_0x563ccd['options'][_0x141493('0xd')]||null:null,'attributes':_0x563ccd[_0x141493('0x7')]?_0x563ccd['options'][_0x141493('0x15')]||null:null,'include':_0x563ccd[_0x141493('0x7')]?_0x563ccd[_0x141493('0x7')][_0x141493('0x11')]?_[_0x141493('0x9')](_0x563ccd[_0x141493('0x7')][_0x141493('0x11')],function(_0x371063){const _0x182226=_0x141493;return{'model':db[_0x371063[_0x182226('0x2')]],'as':_0x371063['as'],'attributes':_0x371063[_0x182226('0x15')],'include':_0x371063[_0x182226('0x11')]?_[_0x182226('0x9')](_0x371063[_0x182226('0x11')],function(_0x526328){const _0x3de1d6=_0x182226;return{'model':db[_0x526328[_0x3de1d6('0x2')]],'as':_0x526328['as'],'attributes':_0x526328[_0x3de1d6('0x15')],'include':_0x526328[_0x3de1d6('0x11')]?_[_0x3de1d6('0x9')](_0x526328['include'],function(_0x4c4e41){const _0x12dcd7=_0x3de1d6;return{'model':db[_0x4c4e41[_0x12dcd7('0x2')]],'as':_0x4c4e41['as'],'attributes':_0x4c4e41[_0x12dcd7('0x15')]};}):[]};}):[]};}):[]:[]})[_0x141493('0x8')](function(_0x50c347){const _0x1afd04=_0x141493;logger[_0x1afd04('0x0')](_0x1afd04('0x1'),_0x563ccd),logger[_0x1afd04('0x3')](_0x1afd04('0x1'),_0x563ccd,JSON[_0x1afd04('0xa')](_0x50c347)),_0x571154(_0x50c347);})['catch'](function(_0x17626c){const _0xb11e86=_0x141493;logger[_0xb11e86('0x10')](_0xb11e86('0x1'),_0x17626c['message'],_0x563ccd),_0x279444(_0x1397c9[_0xb11e86('0x10')](0x1f4,_0x17626c[_0xb11e86('0xb')]));});});};
\ No newline at end of file
+const a215_0x1c65=['../../config/logger','register','raw','ShowFaxQueue','rpc','debug','map','model','catch','include','stringify','message','FaxQueue','error','findOne','then','info','options','where','attributes','../../rediscache','limit','GetFaxQueue'];(function(_0x351562,_0x1c6553){const _0x528281=function(_0x5204b1){while(--_0x5204b1){_0x351562['push'](_0x351562['shift']());}};_0x528281(++_0x1c6553);}(a215_0x1c65,0x88));const a215_0x5282=function(_0x351562,_0x1c6553){_0x351562=_0x351562-0x0;let _0x528281=a215_0x1c65[_0x351562];return _0x528281;};const _0xa7aa8f=a215_0x5282;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0xa7aa8f('0x2'))(_0xa7aa8f('0x6')),{getSocket}=require(_0xa7aa8f('0x16')),socket=getSocket();require('./faxQueue.socket')[_0xa7aa8f('0x3')](socket),exports[_0xa7aa8f('0x1')]=function(_0x5204b1){const _0x1b434e=this;return new Promise(function(_0x9c8c55,_0x3f7909){const _0x2fc288=a215_0x5282;return db[_0x2fc288('0xe')]['findAll']({'raw':_0x5204b1[_0x2fc288('0x13')]?_0x5204b1['options'][_0x2fc288('0x4')]===undefined?!![]:![]:!![],'where':_0x5204b1[_0x2fc288('0x13')]?_0x5204b1[_0x2fc288('0x13')][_0x2fc288('0x14')]||null:null,'attributes':_0x5204b1['options']?_0x5204b1[_0x2fc288('0x13')][_0x2fc288('0x15')]||null:null,'limit':_0x5204b1[_0x2fc288('0x13')]?_0x5204b1[_0x2fc288('0x13')][_0x2fc288('0x0')]||null:null,'include':_0x5204b1[_0x2fc288('0x13')]?_0x5204b1['options'][_0x2fc288('0xb')]?_[_0x2fc288('0x8')](_0x5204b1['options'][_0x2fc288('0xb')],function(_0x3bd076){const _0x3d54dc=_0x2fc288;return{'model':db[_0x3bd076[_0x3d54dc('0x9')]],'as':_0x3bd076['as'],'attributes':_0x3bd076[_0x3d54dc('0x15')],'include':_0x3bd076[_0x3d54dc('0xb')]?_[_0x3d54dc('0x8')](_0x3bd076['include'],function(_0x183415){const _0x510954=_0x3d54dc;return{'model':db[_0x183415[_0x510954('0x9')]],'as':_0x183415['as'],'attributes':_0x183415[_0x510954('0x15')],'include':_0x183415[_0x510954('0xb')]?_[_0x510954('0x8')](_0x183415[_0x510954('0xb')],function(_0x56c1d4){const _0x4318b4=_0x510954;return{'model':db[_0x56c1d4[_0x4318b4('0x9')]],'as':_0x56c1d4['as'],'attributes':_0x56c1d4[_0x4318b4('0x15')]};}):[]};}):[]};}):[]:[]})[_0x2fc288('0x11')](function(_0x563f1f){const _0x323def=_0x2fc288;logger[_0x323def('0x12')]('GetFaxQueue',_0x5204b1),logger[_0x323def('0x7')]('GetFaxQueue',_0x5204b1,JSON['stringify'](_0x563f1f)),_0x9c8c55(_0x563f1f);})['catch'](function(_0x4aed80){const _0xd009e8=_0x2fc288;logger[_0xd009e8('0xf')](_0xd009e8('0x1'),_0x4aed80[_0xd009e8('0xd')],_0x5204b1),_0x3f7909(_0x1b434e[_0xd009e8('0xf')](0x1f4,_0x4aed80['message']));});});},exports['ShowFaxQueue']=function(_0x3e517a){const _0xf5f730=this;return new Promise(function(_0x3283f1,_0x9feec9){const _0x3d8c68=a215_0x5282;return db[_0x3d8c68('0xe')][_0x3d8c68('0x10')]({'raw':_0x3e517a[_0x3d8c68('0x13')]?_0x3e517a[_0x3d8c68('0x13')]['raw']===undefined?!![]:![]:!![],'where':_0x3e517a['options']?_0x3e517a[_0x3d8c68('0x13')][_0x3d8c68('0x14')]||null:null,'attributes':_0x3e517a[_0x3d8c68('0x13')]?_0x3e517a[_0x3d8c68('0x13')][_0x3d8c68('0x15')]||null:null,'include':_0x3e517a[_0x3d8c68('0x13')]?_0x3e517a[_0x3d8c68('0x13')][_0x3d8c68('0xb')]?_[_0x3d8c68('0x8')](_0x3e517a[_0x3d8c68('0x13')]['include'],function(_0x7bf447){const _0x43a522=_0x3d8c68;return{'model':db[_0x7bf447[_0x43a522('0x9')]],'as':_0x7bf447['as'],'attributes':_0x7bf447[_0x43a522('0x15')],'include':_0x7bf447[_0x43a522('0xb')]?_[_0x43a522('0x8')](_0x7bf447[_0x43a522('0xb')],function(_0x159333){const _0x5dc0e4=_0x43a522;return{'model':db[_0x159333[_0x5dc0e4('0x9')]],'as':_0x159333['as'],'attributes':_0x159333['attributes'],'include':_0x159333['include']?_[_0x5dc0e4('0x8')](_0x159333[_0x5dc0e4('0xb')],function(_0x300cb4){const _0x28c0be=_0x5dc0e4;return{'model':db[_0x300cb4['model']],'as':_0x300cb4['as'],'attributes':_0x300cb4[_0x28c0be('0x15')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3e7c30){const _0x2754ab=_0x3d8c68;logger[_0x2754ab('0x12')]('ShowFaxQueue',_0x3e517a),logger[_0x2754ab('0x7')](_0x2754ab('0x5'),_0x3e517a,JSON[_0x2754ab('0xc')](_0x3e7c30)),_0x3283f1(_0x3e7c30);})[_0x3d8c68('0xa')](function(_0x5d5178){const _0x229445=_0x3d8c68;logger[_0x229445('0xf')](_0x229445('0x5'),_0x5d5178['message'],_0x3e517a),_0x9feec9(_0xf5f730[_0x229445('0xf')](0x1f4,_0x5d5178['message']));});});};
\ No newline at end of file