Built motion from commit 8dca541896b0ff92bb88a36cc13f4f385b593b4b. Version 3.0.0...
[motion-next.git] / server / api / faxQueue / faxQueue.rpc.js
index b556ddb..33a719b 100644 (file)
@@ -1 +1 @@
-const a215_0x4a12=['../../config/logger','../../mysqldb','ShowFaxQueue','message','attributes','raw','options','FaxQueue','GetFaxQueue','then','map','../../rediscache','rpc','model','findOne','findAll','include','stringify','register','limit','where','info','debug','error'];(function(_0xc99d5,_0x4a12af){const _0xe4e061=function(_0x3f5545){while(--_0x3f5545){_0xc99d5['push'](_0xc99d5['shift']());}};_0xe4e061(++_0x4a12af);}(a215_0x4a12,0x1c8));const a215_0xe4e0=function(_0xc99d5,_0x4a12af){_0xc99d5=_0xc99d5-0x0;let _0xe4e061=a215_0x4a12[_0xc99d5];return _0xe4e061;};const _0x36515b=a215_0xe4e0;'use strict';const _=require('lodash'),db=require(_0x36515b('0x1'))['db'],logger=require(_0x36515b('0x0'))(_0x36515b('0xc')),{getSocket}=require(_0x36515b('0xb')),socket=getSocket();require('./faxQueue.socket')[_0x36515b('0x12')](socket),exports[_0x36515b('0x8')]=function(_0x3f5545){const _0x19fd0a=this;return new Promise(function(_0x48f9a9,_0x4250cc){const _0xff2006=a215_0xe4e0;return db[_0xff2006('0x7')][_0xff2006('0xf')]({'raw':_0x3f5545['options']?_0x3f5545[_0xff2006('0x6')][_0xff2006('0x5')]===undefined?!![]:![]:!![],'where':_0x3f5545['options']?_0x3f5545['options'][_0xff2006('0x14')]||null:null,'attributes':_0x3f5545['options']?_0x3f5545[_0xff2006('0x6')][_0xff2006('0x4')]||null:null,'limit':_0x3f5545['options']?_0x3f5545[_0xff2006('0x6')][_0xff2006('0x13')]||null:null,'include':_0x3f5545[_0xff2006('0x6')]?_0x3f5545['options'][_0xff2006('0x10')]?_[_0xff2006('0xa')](_0x3f5545['options'][_0xff2006('0x10')],function(_0x409fd0){const _0x234f1d=_0xff2006;return{'model':db[_0x409fd0[_0x234f1d('0xd')]],'as':_0x409fd0['as'],'attributes':_0x409fd0[_0x234f1d('0x4')],'include':_0x409fd0[_0x234f1d('0x10')]?_[_0x234f1d('0xa')](_0x409fd0[_0x234f1d('0x10')],function(_0x2eac1d){const _0x45be33=_0x234f1d;return{'model':db[_0x2eac1d['model']],'as':_0x2eac1d['as'],'attributes':_0x2eac1d[_0x45be33('0x4')],'include':_0x2eac1d[_0x45be33('0x10')]?_[_0x45be33('0xa')](_0x2eac1d[_0x45be33('0x10')],function(_0x2499c1){const _0xd2c667=_0x45be33;return{'model':db[_0x2499c1[_0xd2c667('0xd')]],'as':_0x2499c1['as'],'attributes':_0x2499c1['attributes']};}):[]};}):[]};}):[]:[]})[_0xff2006('0x9')](function(_0x1ea534){const _0x51e4b5=_0xff2006;logger[_0x51e4b5('0x15')](_0x51e4b5('0x8'),_0x3f5545),logger[_0x51e4b5('0x16')](_0x51e4b5('0x8'),_0x3f5545,JSON[_0x51e4b5('0x11')](_0x1ea534)),_0x48f9a9(_0x1ea534);})['catch'](function(_0x4ea12d){const _0x2c756a=_0xff2006;logger[_0x2c756a('0x17')](_0x2c756a('0x8'),_0x4ea12d[_0x2c756a('0x3')],_0x3f5545),_0x4250cc(_0x19fd0a['error'](0x1f4,_0x4ea12d[_0x2c756a('0x3')]));});});},exports[_0x36515b('0x2')]=function(_0x5ee76d){const _0x4fa555=this;return new Promise(function(_0x80fbb0,_0x158419){const _0x543a81=a215_0xe4e0;return db[_0x543a81('0x7')][_0x543a81('0xe')]({'raw':_0x5ee76d[_0x543a81('0x6')]?_0x5ee76d[_0x543a81('0x6')][_0x543a81('0x5')]===undefined?!![]:![]:!![],'where':_0x5ee76d['options']?_0x5ee76d[_0x543a81('0x6')]['where']||null:null,'attributes':_0x5ee76d['options']?_0x5ee76d[_0x543a81('0x6')]['attributes']||null:null,'include':_0x5ee76d['options']?_0x5ee76d[_0x543a81('0x6')][_0x543a81('0x10')]?_[_0x543a81('0xa')](_0x5ee76d[_0x543a81('0x6')]['include'],function(_0x4fb2b2){const _0x154d9b=_0x543a81;return{'model':db[_0x4fb2b2['model']],'as':_0x4fb2b2['as'],'attributes':_0x4fb2b2[_0x154d9b('0x4')],'include':_0x4fb2b2[_0x154d9b('0x10')]?_[_0x154d9b('0xa')](_0x4fb2b2[_0x154d9b('0x10')],function(_0x448e77){const _0x2c984b=_0x154d9b;return{'model':db[_0x448e77[_0x2c984b('0xd')]],'as':_0x448e77['as'],'attributes':_0x448e77[_0x2c984b('0x4')],'include':_0x448e77['include']?_[_0x2c984b('0xa')](_0x448e77['include'],function(_0x4dbedb){const _0x3bec9c=_0x2c984b;return{'model':db[_0x4dbedb[_0x3bec9c('0xd')]],'as':_0x4dbedb['as'],'attributes':_0x4dbedb['attributes']};}):[]};}):[]};}):[]:[]})[_0x543a81('0x9')](function(_0x3569cc){const _0x2eb786=_0x543a81;logger[_0x2eb786('0x15')](_0x2eb786('0x2'),_0x5ee76d),logger[_0x2eb786('0x16')]('ShowFaxQueue',_0x5ee76d,JSON[_0x2eb786('0x11')](_0x3569cc)),_0x80fbb0(_0x3569cc);})['catch'](function(_0x4a906b){const _0x5580b9=_0x543a81;logger[_0x5580b9('0x17')](_0x5580b9('0x2'),_0x4a906b[_0x5580b9('0x3')],_0x5ee76d),_0x158419(_0x4fa555[_0x5580b9('0x17')](0x1f4,_0x4a906b['message']));});});};
\ No newline at end of file
+const a215_0x3e14=['limit','where','map','model','rpc','stringify','lodash','ShowFaxQueue','debug','attributes','info','GetFaxQueue','../../config/logger','register','../../mysqldb','include','../../rediscache','findAll','then','raw','message','FaxQueue','error','catch','options'];(function(_0x3bc2a1,_0x3e140a){const _0xb456f8=function(_0x1dcb55){while(--_0x1dcb55){_0x3bc2a1['push'](_0x3bc2a1['shift']());}};_0xb456f8(++_0x3e140a);}(a215_0x3e14,0xfb));const a215_0xb456=function(_0x3bc2a1,_0x3e140a){_0x3bc2a1=_0x3bc2a1-0x0;let _0xb456f8=a215_0x3e14[_0x3bc2a1];return _0xb456f8;};const _0x5ef6ca=a215_0xb456;'use strict';const _=require(_0x5ef6ca('0x5')),db=require(_0x5ef6ca('0xd'))['db'],logger=require(_0x5ef6ca('0xb'))(_0x5ef6ca('0x3')),{getSocket}=require(_0x5ef6ca('0xf')),socket=getSocket();require('./faxQueue.socket')[_0x5ef6ca('0xc')](socket),exports[_0x5ef6ca('0xa')]=function(_0x1dcb55){const _0x180789=this;return new Promise(function(_0xe1b1ff,_0x408ed1){const _0x49cc76=a215_0xb456;return db[_0x49cc76('0x14')][_0x49cc76('0x10')]({'raw':_0x1dcb55[_0x49cc76('0x17')]?_0x1dcb55[_0x49cc76('0x17')][_0x49cc76('0x12')]===undefined?!![]:![]:!![],'where':_0x1dcb55['options']?_0x1dcb55['options']['where']||null:null,'attributes':_0x1dcb55[_0x49cc76('0x17')]?_0x1dcb55[_0x49cc76('0x17')][_0x49cc76('0x8')]||null:null,'limit':_0x1dcb55[_0x49cc76('0x17')]?_0x1dcb55[_0x49cc76('0x17')][_0x49cc76('0x18')]||null:null,'include':_0x1dcb55[_0x49cc76('0x17')]?_0x1dcb55[_0x49cc76('0x17')][_0x49cc76('0xe')]?_[_0x49cc76('0x1')](_0x1dcb55['options'][_0x49cc76('0xe')],function(_0x48aa96){const _0x1f521c=_0x49cc76;return{'model':db[_0x48aa96[_0x1f521c('0x2')]],'as':_0x48aa96['as'],'attributes':_0x48aa96[_0x1f521c('0x8')],'include':_0x48aa96[_0x1f521c('0xe')]?_[_0x1f521c('0x1')](_0x48aa96['include'],function(_0x2d84e6){const _0x28161e=_0x1f521c;return{'model':db[_0x2d84e6['model']],'as':_0x2d84e6['as'],'attributes':_0x2d84e6[_0x28161e('0x8')],'include':_0x2d84e6[_0x28161e('0xe')]?_[_0x28161e('0x1')](_0x2d84e6[_0x28161e('0xe')],function(_0x106810){const _0x25cf8e=_0x28161e;return{'model':db[_0x106810[_0x25cf8e('0x2')]],'as':_0x106810['as'],'attributes':_0x106810[_0x25cf8e('0x8')]};}):[]};}):[]};}):[]:[]})[_0x49cc76('0x11')](function(_0x18806b){const _0x451dc4=_0x49cc76;logger[_0x451dc4('0x9')](_0x451dc4('0xa'),_0x1dcb55),logger[_0x451dc4('0x7')](_0x451dc4('0xa'),_0x1dcb55,JSON[_0x451dc4('0x4')](_0x18806b)),_0xe1b1ff(_0x18806b);})[_0x49cc76('0x16')](function(_0x49a7ef){const _0xe4fcfb=_0x49cc76;logger['error']('GetFaxQueue',_0x49a7ef[_0xe4fcfb('0x13')],_0x1dcb55),_0x408ed1(_0x180789[_0xe4fcfb('0x15')](0x1f4,_0x49a7ef[_0xe4fcfb('0x13')]));});});},exports[_0x5ef6ca('0x6')]=function(_0x32c8ed){const _0x59f9d1=this;return new Promise(function(_0x2a6361,_0xf4f41a){const _0xcedf4f=a215_0xb456;return db['FaxQueue']['findOne']({'raw':_0x32c8ed[_0xcedf4f('0x17')]?_0x32c8ed['options'][_0xcedf4f('0x12')]===undefined?!![]:![]:!![],'where':_0x32c8ed[_0xcedf4f('0x17')]?_0x32c8ed[_0xcedf4f('0x17')][_0xcedf4f('0x0')]||null:null,'attributes':_0x32c8ed[_0xcedf4f('0x17')]?_0x32c8ed[_0xcedf4f('0x17')]['attributes']||null:null,'include':_0x32c8ed[_0xcedf4f('0x17')]?_0x32c8ed[_0xcedf4f('0x17')][_0xcedf4f('0xe')]?_[_0xcedf4f('0x1')](_0x32c8ed[_0xcedf4f('0x17')][_0xcedf4f('0xe')],function(_0x33d85b){const _0x24801c=_0xcedf4f;return{'model':db[_0x33d85b['model']],'as':_0x33d85b['as'],'attributes':_0x33d85b['attributes'],'include':_0x33d85b[_0x24801c('0xe')]?_['map'](_0x33d85b[_0x24801c('0xe')],function(_0x8834b7){const _0x584919=_0x24801c;return{'model':db[_0x8834b7[_0x584919('0x2')]],'as':_0x8834b7['as'],'attributes':_0x8834b7[_0x584919('0x8')],'include':_0x8834b7['include']?_['map'](_0x8834b7[_0x584919('0xe')],function(_0x5e8ab0){const _0x2f6b22=_0x584919;return{'model':db[_0x5e8ab0[_0x2f6b22('0x2')]],'as':_0x5e8ab0['as'],'attributes':_0x5e8ab0['attributes']};}):[]};}):[]};}):[]:[]})[_0xcedf4f('0x11')](function(_0x155203){const _0x1ccabf=_0xcedf4f;logger[_0x1ccabf('0x9')]('ShowFaxQueue',_0x32c8ed),logger['debug'](_0x1ccabf('0x6'),_0x32c8ed,JSON['stringify'](_0x155203)),_0x2a6361(_0x155203);})[_0xcedf4f('0x16')](function(_0x16383a){const _0x3997d0=_0xcedf4f;logger[_0x3997d0('0x15')](_0x3997d0('0x6'),_0x16383a[_0x3997d0('0x13')],_0x32c8ed),_0xf4f41a(_0x59f9d1[_0x3997d0('0x15')](0x1f4,_0x16383a[_0x3997d0('0x13')]));});});};
\ No newline at end of file