Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / intDeskAccount / intDeskAccount.rpc.js
index 6cf1fff..7d79cbd 100644 (file)
@@ -1 +1 @@
-const a231_0x55c4=['catch','findOne','message','limit','error','options','DeskAccount','../../config/logger','include','map','info','attributes','model','findAll','ShowDeskAccount','GetDeskAccount','raw','debug','where','then','stringify'];(function(_0x380dda,_0x55c449){const _0x2b8003=function(_0x43aabd){while(--_0x43aabd){_0x380dda['push'](_0x380dda['shift']());}};_0x2b8003(++_0x55c449);}(a231_0x55c4,0xdb));const a231_0x2b80=function(_0x380dda,_0x55c449){_0x380dda=_0x380dda-0x0;let _0x2b8003=a231_0x55c4[_0x380dda];return _0x2b8003;};const _0x2b9b9a=a231_0x2b80;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x2b9b9a('0x13'))('rpc');exports[_0x2b9b9a('0x6')]=function(_0x43aabd){const _0x3328f4=this;return new Promise(function(_0x4590a1,_0x4bdeee){const _0x1f76ef=a231_0x2b80;return db[_0x1f76ef('0x12')][_0x1f76ef('0x4')]({'raw':_0x43aabd[_0x1f76ef('0x11')]?_0x43aabd[_0x1f76ef('0x11')][_0x1f76ef('0x7')]===undefined?!![]:![]:!![],'where':_0x43aabd['options']?_0x43aabd[_0x1f76ef('0x11')][_0x1f76ef('0x9')]||null:null,'attributes':_0x43aabd[_0x1f76ef('0x11')]?_0x43aabd[_0x1f76ef('0x11')][_0x1f76ef('0x2')]||null:null,'limit':_0x43aabd[_0x1f76ef('0x11')]?_0x43aabd['options'][_0x1f76ef('0xf')]||null:null,'include':_0x43aabd['options']?_0x43aabd[_0x1f76ef('0x11')]['include']?_[_0x1f76ef('0x0')](_0x43aabd[_0x1f76ef('0x11')][_0x1f76ef('0x14')],function(_0x49bf92){const _0x36649e=_0x1f76ef;return{'model':db[_0x49bf92[_0x36649e('0x3')]],'as':_0x49bf92['as'],'attributes':_0x49bf92[_0x36649e('0x2')],'include':_0x49bf92['include']?_[_0x36649e('0x0')](_0x49bf92[_0x36649e('0x14')],function(_0x4dd78c){const _0x5c5dc1=_0x36649e;return{'model':db[_0x4dd78c[_0x5c5dc1('0x3')]],'as':_0x4dd78c['as'],'attributes':_0x4dd78c[_0x5c5dc1('0x2')],'include':_0x4dd78c[_0x5c5dc1('0x14')]?_[_0x5c5dc1('0x0')](_0x4dd78c[_0x5c5dc1('0x14')],function(_0xf102fd){const _0x587dbb=_0x5c5dc1;return{'model':db[_0xf102fd[_0x587dbb('0x3')]],'as':_0xf102fd['as'],'attributes':_0xf102fd[_0x587dbb('0x2')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x423e0c){const _0x49f9d5=_0x1f76ef;logger[_0x49f9d5('0x1')](_0x49f9d5('0x6'),_0x43aabd),logger[_0x49f9d5('0x8')](_0x49f9d5('0x6'),_0x43aabd,JSON[_0x49f9d5('0xb')](_0x423e0c)),_0x4590a1(_0x423e0c);})[_0x1f76ef('0xc')](function(_0x339018){const _0x20cec0=_0x1f76ef;logger[_0x20cec0('0x10')](_0x20cec0('0x6'),_0x339018[_0x20cec0('0xe')],_0x43aabd),_0x4bdeee(_0x3328f4['error'](0x1f4,_0x339018[_0x20cec0('0xe')]));});});},exports[_0x2b9b9a('0x5')]=function(_0x5ee0eb){const _0x33a9ad=this;return new Promise(function(_0xb5e80e,_0x530d6d){const _0xd5099a=a231_0x2b80;return db['DeskAccount'][_0xd5099a('0xd')]({'raw':_0x5ee0eb[_0xd5099a('0x11')]?_0x5ee0eb[_0xd5099a('0x11')][_0xd5099a('0x7')]===undefined?!![]:![]:!![],'where':_0x5ee0eb[_0xd5099a('0x11')]?_0x5ee0eb[_0xd5099a('0x11')][_0xd5099a('0x9')]||null:null,'attributes':_0x5ee0eb[_0xd5099a('0x11')]?_0x5ee0eb['options'][_0xd5099a('0x2')]||null:null,'include':_0x5ee0eb[_0xd5099a('0x11')]?_0x5ee0eb[_0xd5099a('0x11')]['include']?_[_0xd5099a('0x0')](_0x5ee0eb['options'][_0xd5099a('0x14')],function(_0x5ae345){const _0x3690b8=_0xd5099a;return{'model':db[_0x5ae345[_0x3690b8('0x3')]],'as':_0x5ae345['as'],'attributes':_0x5ae345[_0x3690b8('0x2')],'include':_0x5ae345[_0x3690b8('0x14')]?_['map'](_0x5ae345[_0x3690b8('0x14')],function(_0x2c7c65){const _0x114090=_0x3690b8;return{'model':db[_0x2c7c65[_0x114090('0x3')]],'as':_0x2c7c65['as'],'attributes':_0x2c7c65[_0x114090('0x2')],'include':_0x2c7c65[_0x114090('0x14')]?_['map'](_0x2c7c65[_0x114090('0x14')],function(_0x207218){const _0x45acdb=_0x114090;return{'model':db[_0x207218['model']],'as':_0x207218['as'],'attributes':_0x207218[_0x45acdb('0x2')]};}):[]};}):[]};}):[]:[]})[_0xd5099a('0xa')](function(_0x59c9bf){const _0x341291=_0xd5099a;logger[_0x341291('0x1')](_0x341291('0x5'),_0x5ee0eb),logger[_0x341291('0x8')](_0x341291('0x5'),_0x5ee0eb,JSON[_0x341291('0xb')](_0x59c9bf)),_0xb5e80e(_0x59c9bf);})[_0xd5099a('0xc')](function(_0x3b67c2){const _0x864e08=_0xd5099a;logger['error'](_0x864e08('0x5'),_0x3b67c2[_0x864e08('0xe')],_0x5ee0eb),_0x530d6d(_0x33a9ad['error'](0x1f4,_0x3b67c2[_0x864e08('0xe')]));});});};
\ No newline at end of file
+const a231_0x3c0a=['stringify','info','lodash','findOne','message','raw','../../config/logger','GetDeskAccount','include','attributes','debug','rpc','error','options','../../mysqldb','model','where','map','findAll','ShowDeskAccount'];(function(_0x2a35c1,_0x3c0a7d){const _0x137776=function(_0x212b2d){while(--_0x212b2d){_0x2a35c1['push'](_0x2a35c1['shift']());}};_0x137776(++_0x3c0a7d);}(a231_0x3c0a,0xa5));const a231_0x1377=function(_0x2a35c1,_0x3c0a7d){_0x2a35c1=_0x2a35c1-0x0;let _0x137776=a231_0x3c0a[_0x2a35c1];return _0x137776;};const _0x370f74=a231_0x1377;'use strict';const _=require(_0x370f74('0x11')),db=require(_0x370f74('0x9'))['db'],logger=require(_0x370f74('0x1'))(_0x370f74('0x6'));exports['GetDeskAccount']=function(_0x212b2d){const _0x5a7509=this;return new Promise(function(_0x164eb7,_0x18596b){const _0x58a1e5=a231_0x1377;return db['DeskAccount'][_0x58a1e5('0xd')]({'raw':_0x212b2d[_0x58a1e5('0x8')]?_0x212b2d[_0x58a1e5('0x8')][_0x58a1e5('0x0')]===undefined?!![]:![]:!![],'where':_0x212b2d[_0x58a1e5('0x8')]?_0x212b2d[_0x58a1e5('0x8')][_0x58a1e5('0xb')]||null:null,'attributes':_0x212b2d[_0x58a1e5('0x8')]?_0x212b2d[_0x58a1e5('0x8')][_0x58a1e5('0x4')]||null:null,'limit':_0x212b2d[_0x58a1e5('0x8')]?_0x212b2d[_0x58a1e5('0x8')]['limit']||null:null,'include':_0x212b2d[_0x58a1e5('0x8')]?_0x212b2d[_0x58a1e5('0x8')][_0x58a1e5('0x3')]?_[_0x58a1e5('0xc')](_0x212b2d[_0x58a1e5('0x8')][_0x58a1e5('0x3')],function(_0x3e365f){const _0x10f1bf=_0x58a1e5;return{'model':db[_0x3e365f[_0x10f1bf('0xa')]],'as':_0x3e365f['as'],'attributes':_0x3e365f[_0x10f1bf('0x4')],'include':_0x3e365f['include']?_['map'](_0x3e365f[_0x10f1bf('0x3')],function(_0x554dd5){const _0x57302d=_0x10f1bf;return{'model':db[_0x554dd5[_0x57302d('0xa')]],'as':_0x554dd5['as'],'attributes':_0x554dd5[_0x57302d('0x4')],'include':_0x554dd5[_0x57302d('0x3')]?_['map'](_0x554dd5[_0x57302d('0x3')],function(_0x198071){const _0x94eb95=_0x57302d;return{'model':db[_0x198071[_0x94eb95('0xa')]],'as':_0x198071['as'],'attributes':_0x198071['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x262a6f){const _0x42aaef=_0x58a1e5;logger['info'](_0x42aaef('0x2'),_0x212b2d),logger[_0x42aaef('0x5')](_0x42aaef('0x2'),_0x212b2d,JSON[_0x42aaef('0xf')](_0x262a6f)),_0x164eb7(_0x262a6f);})['catch'](function(_0x25c2b6){const _0x1fb18f=_0x58a1e5;logger[_0x1fb18f('0x7')](_0x1fb18f('0x2'),_0x25c2b6[_0x1fb18f('0x13')],_0x212b2d),_0x18596b(_0x5a7509[_0x1fb18f('0x7')](0x1f4,_0x25c2b6[_0x1fb18f('0x13')]));});});},exports[_0x370f74('0xe')]=function(_0x52a2f2){const _0x5538b7=this;return new Promise(function(_0x3918b4,_0x53d28b){const _0x304379=a231_0x1377;return db['DeskAccount'][_0x304379('0x12')]({'raw':_0x52a2f2[_0x304379('0x8')]?_0x52a2f2['options'][_0x304379('0x0')]===undefined?!![]:![]:!![],'where':_0x52a2f2[_0x304379('0x8')]?_0x52a2f2[_0x304379('0x8')]['where']||null:null,'attributes':_0x52a2f2[_0x304379('0x8')]?_0x52a2f2[_0x304379('0x8')][_0x304379('0x4')]||null:null,'include':_0x52a2f2['options']?_0x52a2f2[_0x304379('0x8')][_0x304379('0x3')]?_[_0x304379('0xc')](_0x52a2f2['options']['include'],function(_0x106c6d){const _0x4b1d0f=_0x304379;return{'model':db[_0x106c6d['model']],'as':_0x106c6d['as'],'attributes':_0x106c6d[_0x4b1d0f('0x4')],'include':_0x106c6d['include']?_[_0x4b1d0f('0xc')](_0x106c6d[_0x4b1d0f('0x3')],function(_0x58d5e5){const _0x523393=_0x4b1d0f;return{'model':db[_0x58d5e5[_0x523393('0xa')]],'as':_0x58d5e5['as'],'attributes':_0x58d5e5['attributes'],'include':_0x58d5e5[_0x523393('0x3')]?_[_0x523393('0xc')](_0x58d5e5[_0x523393('0x3')],function(_0x2c8912){const _0x403ddd=_0x523393;return{'model':db[_0x2c8912[_0x403ddd('0xa')]],'as':_0x2c8912['as'],'attributes':_0x2c8912[_0x403ddd('0x4')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x274aff){const _0x3ef41e=_0x304379;logger[_0x3ef41e('0x10')](_0x3ef41e('0xe'),_0x52a2f2),logger[_0x3ef41e('0x5')](_0x3ef41e('0xe'),_0x52a2f2,JSON[_0x3ef41e('0xf')](_0x274aff)),_0x3918b4(_0x274aff);})['catch'](function(_0x3545d7){const _0x158312=_0x304379;logger['error']('ShowDeskAccount',_0x3545d7[_0x158312('0x13')],_0x52a2f2),_0x53d28b(_0x5538b7[_0x158312('0x7')](0x1f4,_0x3545d7['message']));});});};
\ No newline at end of file