Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / api / trunk / trunk.rpc.js
index e743c28..95cd6a9 100644 (file)
@@ -1 +1 @@
-const a645_0x27b9=['catch','raw','ShowTrunk','limit','../../mysqldb','GetTrunk','error','include','where','then','Trunk','stringify','message','model','options','../../config/logger','findOne','attributes','findAll','lodash','info','map'];(function(_0x37ec4c,_0x27b978){const _0x40da08=function(_0x2006d6){while(--_0x2006d6){_0x37ec4c['push'](_0x37ec4c['shift']());}};_0x40da08(++_0x27b978);}(a645_0x27b9,0xde));const a645_0x40da=function(_0x37ec4c,_0x27b978){_0x37ec4c=_0x37ec4c-0x0;let _0x40da08=a645_0x27b9[_0x37ec4c];return _0x40da08;};const _0x318bb5=a645_0x40da;'use strict';const _=require(_0x318bb5('0x11')),db=require(_0x318bb5('0x2'))['db'],logger=require(_0x318bb5('0xd'))('rpc');exports[_0x318bb5('0x3')]=function(_0x2006d6){const _0x553ea8=this;return new Promise(function(_0x58d050,_0x119c6f){const _0x10c6a8=a645_0x40da;return db[_0x10c6a8('0x8')][_0x10c6a8('0x10')]({'raw':_0x2006d6[_0x10c6a8('0xc')]?_0x2006d6[_0x10c6a8('0xc')][_0x10c6a8('0x15')]===undefined?!![]:![]:!![],'where':_0x2006d6[_0x10c6a8('0xc')]?_0x2006d6[_0x10c6a8('0xc')][_0x10c6a8('0x6')]||null:null,'attributes':_0x2006d6[_0x10c6a8('0xc')]?_0x2006d6[_0x10c6a8('0xc')]['attributes']||null:null,'limit':_0x2006d6['options']?_0x2006d6[_0x10c6a8('0xc')][_0x10c6a8('0x1')]||null:null,'include':_0x2006d6['options']?_0x2006d6['options'][_0x10c6a8('0x5')]?_[_0x10c6a8('0x13')](_0x2006d6[_0x10c6a8('0xc')][_0x10c6a8('0x5')],function(_0x1af597){const _0x2b0009=_0x10c6a8;return{'model':db[_0x1af597[_0x2b0009('0xb')]],'as':_0x1af597['as'],'attributes':_0x1af597[_0x2b0009('0xf')],'include':_0x1af597[_0x2b0009('0x5')]?_[_0x2b0009('0x13')](_0x1af597['include'],function(_0x87a3a5){const _0x210037=_0x2b0009;return{'model':db[_0x87a3a5[_0x210037('0xb')]],'as':_0x87a3a5['as'],'attributes':_0x87a3a5[_0x210037('0xf')],'include':_0x87a3a5['include']?_[_0x210037('0x13')](_0x87a3a5['include'],function(_0x1ba9bf){const _0x2df346=_0x210037;return{'model':db[_0x1ba9bf[_0x2df346('0xb')]],'as':_0x1ba9bf['as'],'attributes':_0x1ba9bf['attributes']};}):[]};}):[]};}):[]:[]})[_0x10c6a8('0x7')](function(_0x2c77ce){const _0x3b3bd8=_0x10c6a8;logger[_0x3b3bd8('0x12')](_0x3b3bd8('0x3'),_0x2006d6),logger['debug'](_0x3b3bd8('0x3'),_0x2006d6,JSON[_0x3b3bd8('0x9')](_0x2c77ce)),_0x58d050(_0x2c77ce);})[_0x10c6a8('0x14')](function(_0x271cb7){const _0x4a22fc=_0x10c6a8;logger[_0x4a22fc('0x4')](_0x4a22fc('0x3'),_0x271cb7['message'],_0x2006d6),_0x119c6f(_0x553ea8[_0x4a22fc('0x4')](0x1f4,_0x271cb7[_0x4a22fc('0xa')]));});});},exports[_0x318bb5('0x0')]=function(_0x3f5a43){const _0x531e8e=this;return new Promise(function(_0x495e60,_0x5e94b9){const _0x5d6e07=a645_0x40da;return db['Trunk'][_0x5d6e07('0xe')]({'raw':_0x3f5a43[_0x5d6e07('0xc')]?_0x3f5a43[_0x5d6e07('0xc')][_0x5d6e07('0x15')]===undefined?!![]:![]:!![],'where':_0x3f5a43[_0x5d6e07('0xc')]?_0x3f5a43[_0x5d6e07('0xc')]['where']||null:null,'attributes':_0x3f5a43[_0x5d6e07('0xc')]?_0x3f5a43[_0x5d6e07('0xc')][_0x5d6e07('0xf')]||null:null,'include':_0x3f5a43[_0x5d6e07('0xc')]?_0x3f5a43['options']['include']?_[_0x5d6e07('0x13')](_0x3f5a43[_0x5d6e07('0xc')][_0x5d6e07('0x5')],function(_0xebe993){const _0x19bfe4=_0x5d6e07;return{'model':db[_0xebe993['model']],'as':_0xebe993['as'],'attributes':_0xebe993[_0x19bfe4('0xf')],'include':_0xebe993['include']?_[_0x19bfe4('0x13')](_0xebe993[_0x19bfe4('0x5')],function(_0x4bf9bc){const _0x184674=_0x19bfe4;return{'model':db[_0x4bf9bc[_0x184674('0xb')]],'as':_0x4bf9bc['as'],'attributes':_0x4bf9bc[_0x184674('0xf')],'include':_0x4bf9bc[_0x184674('0x5')]?_['map'](_0x4bf9bc[_0x184674('0x5')],function(_0x810f5){const _0x649b53=_0x184674;return{'model':db[_0x810f5[_0x649b53('0xb')]],'as':_0x810f5['as'],'attributes':_0x810f5['attributes']};}):[]};}):[]};}):[]:[]})[_0x5d6e07('0x7')](function(_0x2ddd37){const _0x3f4846=_0x5d6e07;logger['info']('ShowTrunk',_0x3f5a43),logger['debug'](_0x3f4846('0x0'),_0x3f5a43,JSON[_0x3f4846('0x9')](_0x2ddd37)),_0x495e60(_0x2ddd37);})[_0x5d6e07('0x14')](function(_0x3df7fb){const _0x31cef9=_0x5d6e07;logger[_0x31cef9('0x4')]('ShowTrunk',_0x3df7fb[_0x31cef9('0xa')],_0x3f5a43),_0x5e94b9(_0x531e8e[_0x31cef9('0x4')](0x1f4,_0x3df7fb[_0x31cef9('0xa')]));});});};
\ No newline at end of file
+const a645_0xce0e=['GetTrunk','findOne','raw','info','../../config/logger','message','Trunk','then','model','catch','options','attributes','../../mysqldb','ShowTrunk','map','limit','findAll','lodash','where','stringify','include'];(function(_0xda4960,_0xce0e32){const _0x5aee91=function(_0xf377c0){while(--_0xf377c0){_0xda4960['push'](_0xda4960['shift']());}};_0x5aee91(++_0xce0e32);}(a645_0xce0e,0x196));const a645_0x5aee=function(_0xda4960,_0xce0e32){_0xda4960=_0xda4960-0x0;let _0x5aee91=a645_0xce0e[_0xda4960];return _0x5aee91;};const _0x51e747=a645_0x5aee;'use strict';const _=require(_0x51e747('0xa')),db=require(_0x51e747('0x5'))['db'],logger=require(_0x51e747('0x12'))('rpc');exports[_0x51e747('0xe')]=function(_0xf377c0){const _0x3fba80=this;return new Promise(function(_0x30f42e,_0x5c6c96){const _0xbe0ba1=a645_0x5aee;return db[_0xbe0ba1('0x14')][_0xbe0ba1('0x9')]({'raw':_0xf377c0['options']?_0xf377c0[_0xbe0ba1('0x3')][_0xbe0ba1('0x10')]===undefined?!![]:![]:!![],'where':_0xf377c0[_0xbe0ba1('0x3')]?_0xf377c0[_0xbe0ba1('0x3')][_0xbe0ba1('0xb')]||null:null,'attributes':_0xf377c0[_0xbe0ba1('0x3')]?_0xf377c0['options'][_0xbe0ba1('0x4')]||null:null,'limit':_0xf377c0['options']?_0xf377c0['options'][_0xbe0ba1('0x8')]||null:null,'include':_0xf377c0['options']?_0xf377c0['options'][_0xbe0ba1('0xd')]?_[_0xbe0ba1('0x7')](_0xf377c0[_0xbe0ba1('0x3')][_0xbe0ba1('0xd')],function(_0x10ab0f){const _0x33fa9b=_0xbe0ba1;return{'model':db[_0x10ab0f['model']],'as':_0x10ab0f['as'],'attributes':_0x10ab0f[_0x33fa9b('0x4')],'include':_0x10ab0f[_0x33fa9b('0xd')]?_['map'](_0x10ab0f[_0x33fa9b('0xd')],function(_0x31494e){const _0x3cf0af=_0x33fa9b;return{'model':db[_0x31494e[_0x3cf0af('0x1')]],'as':_0x31494e['as'],'attributes':_0x31494e[_0x3cf0af('0x4')],'include':_0x31494e[_0x3cf0af('0xd')]?_[_0x3cf0af('0x7')](_0x31494e[_0x3cf0af('0xd')],function(_0x135eb2){const _0x21b34e=_0x3cf0af;return{'model':db[_0x135eb2[_0x21b34e('0x1')]],'as':_0x135eb2['as'],'attributes':_0x135eb2[_0x21b34e('0x4')]};}):[]};}):[]};}):[]:[]})[_0xbe0ba1('0x0')](function(_0x3b24bc){const _0x42235b=_0xbe0ba1;logger[_0x42235b('0x11')]('GetTrunk',_0xf377c0),logger['debug'](_0x42235b('0xe'),_0xf377c0,JSON[_0x42235b('0xc')](_0x3b24bc)),_0x30f42e(_0x3b24bc);})[_0xbe0ba1('0x2')](function(_0x152959){const _0x88ea27=_0xbe0ba1;logger['error']('GetTrunk',_0x152959['message'],_0xf377c0),_0x5c6c96(_0x3fba80['error'](0x1f4,_0x152959[_0x88ea27('0x13')]));});});},exports[_0x51e747('0x6')]=function(_0xce3102){const _0x2ef3a2=this;return new Promise(function(_0xd81092,_0x4e82d8){const _0x192954=a645_0x5aee;return db[_0x192954('0x14')][_0x192954('0xf')]({'raw':_0xce3102['options']?_0xce3102['options'][_0x192954('0x10')]===undefined?!![]:![]:!![],'where':_0xce3102['options']?_0xce3102[_0x192954('0x3')][_0x192954('0xb')]||null:null,'attributes':_0xce3102[_0x192954('0x3')]?_0xce3102[_0x192954('0x3')][_0x192954('0x4')]||null:null,'include':_0xce3102[_0x192954('0x3')]?_0xce3102[_0x192954('0x3')][_0x192954('0xd')]?_[_0x192954('0x7')](_0xce3102[_0x192954('0x3')][_0x192954('0xd')],function(_0x24fc8a){const _0x49a4d0=_0x192954;return{'model':db[_0x24fc8a[_0x49a4d0('0x1')]],'as':_0x24fc8a['as'],'attributes':_0x24fc8a[_0x49a4d0('0x4')],'include':_0x24fc8a['include']?_['map'](_0x24fc8a['include'],function(_0x19e142){const _0x526c5d=_0x49a4d0;return{'model':db[_0x19e142[_0x526c5d('0x1')]],'as':_0x19e142['as'],'attributes':_0x19e142[_0x526c5d('0x4')],'include':_0x19e142[_0x526c5d('0xd')]?_[_0x526c5d('0x7')](_0x19e142[_0x526c5d('0xd')],function(_0x4365d8){const _0x125919=_0x526c5d;return{'model':db[_0x4365d8[_0x125919('0x1')]],'as':_0x4365d8['as'],'attributes':_0x4365d8[_0x125919('0x4')]};}):[]};}):[]};}):[]:[]})[_0x192954('0x0')](function(_0x592cb7){const _0x50e3db=_0x192954;logger['info'](_0x50e3db('0x6'),_0xce3102),logger['debug']('ShowTrunk',_0xce3102,JSON[_0x50e3db('0xc')](_0x592cb7)),_0xd81092(_0x592cb7);})[_0x192954('0x2')](function(_0x31ce74){const _0x40495b=_0x192954;logger['error'](_0x40495b('0x6'),_0x31ce74[_0x40495b('0x13')],_0xce3102),_0x4e82d8(_0x2ef3a2['error'](0x1f4,_0x31ce74[_0x40495b('0x13')]));});});};
\ No newline at end of file