Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / api / cmHopperBlack / cmHopperBlack.rpc.js
index a88eb45..0b00b51 100644 (file)
@@ -1 +1 @@
-const a144_0x39ca=['../../config/logger','update','catch','include','DestroyCmHopperBlack','stringify','attributes','then','rpc','message','destroy','UpdateCmHopperBlack','error','../../mysqldb','findAll','info','lodash','model','raw','CmHopperBlack','limit','where','options','GetCmHopperBlack','map','debug','body'];(function(_0x440f25,_0x39ca32){const _0xcb5398=function(_0x1943ba){while(--_0x1943ba){_0x440f25['push'](_0x440f25['shift']());}};_0xcb5398(++_0x39ca32);}(a144_0x39ca,0x1a1));const a144_0xcb53=function(_0x440f25,_0x39ca32){_0x440f25=_0x440f25-0x0;let _0xcb5398=a144_0x39ca[_0x440f25];return _0xcb5398;};const _0x2fc79a=a144_0xcb53;'use strict';const _=require(_0x2fc79a('0x4')),db=require(_0x2fc79a('0x1'))['db'],logger=require(_0x2fc79a('0xf'))(_0x2fc79a('0x17'));exports[_0x2fc79a('0xb')]=function(_0x1943ba){const _0x1ef4ce=this;return new Promise(function(_0x299d13,_0x319964){const _0x340290=a144_0xcb53;return db[_0x340290('0x7')][_0x340290('0x2')]({'raw':_0x1943ba[_0x340290('0xa')]?_0x1943ba['options'][_0x340290('0x6')]===undefined?!![]:![]:!![],'where':_0x1943ba['options']?_0x1943ba['options'][_0x340290('0x9')]||null:null,'attributes':_0x1943ba['options']?_0x1943ba[_0x340290('0xa')][_0x340290('0x15')]||null:null,'limit':_0x1943ba[_0x340290('0xa')]?_0x1943ba[_0x340290('0xa')][_0x340290('0x8')]||null:null,'include':_0x1943ba[_0x340290('0xa')]?_0x1943ba[_0x340290('0xa')][_0x340290('0x12')]?_['map'](_0x1943ba['options']['include'],function(_0x5a5f14){const _0x50244e=_0x340290;return{'model':db[_0x5a5f14['model']],'as':_0x5a5f14['as'],'attributes':_0x5a5f14['attributes'],'include':_0x5a5f14[_0x50244e('0x12')]?_[_0x50244e('0xc')](_0x5a5f14[_0x50244e('0x12')],function(_0x358d98){const _0x52c71d=_0x50244e;return{'model':db[_0x358d98[_0x52c71d('0x5')]],'as':_0x358d98['as'],'attributes':_0x358d98['attributes'],'include':_0x358d98[_0x52c71d('0x12')]?_['map'](_0x358d98[_0x52c71d('0x12')],function(_0x5d8d50){const _0xec1de1=_0x52c71d;return{'model':db[_0x5d8d50[_0xec1de1('0x5')]],'as':_0x5d8d50['as'],'attributes':_0x5d8d50[_0xec1de1('0x15')]};}):[]};}):[]};}):[]:[]})[_0x340290('0x16')](function(_0x274b68){const _0x40d46a=_0x340290;logger[_0x40d46a('0x3')](_0x40d46a('0xb'),_0x1943ba),logger['debug']('GetCmHopperBlack',_0x1943ba,JSON[_0x40d46a('0x14')](_0x274b68)),_0x299d13(_0x274b68);})[_0x340290('0x11')](function(_0x1f0321){const _0x38addb=_0x340290;logger[_0x38addb('0x0')](_0x38addb('0xb'),_0x1f0321['message'],_0x1943ba),_0x319964(_0x1ef4ce[_0x38addb('0x0')](0x1f4,_0x1f0321[_0x38addb('0x18')]));});});},exports[_0x2fc79a('0x1a')]=function(_0x50de78){const _0x1dbb98=this;return new Promise(function(_0x5be681,_0x785510){const _0x24f779=a144_0xcb53;return db[_0x24f779('0x7')][_0x24f779('0x10')](_0x50de78[_0x24f779('0xe')],{'raw':_0x50de78[_0x24f779('0xa')]?_0x50de78[_0x24f779('0xa')][_0x24f779('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x50de78[_0x24f779('0xa')]?_0x50de78[_0x24f779('0xa')][_0x24f779('0x9')]||null:null,'attributes':_0x50de78['options']?_0x50de78[_0x24f779('0xa')][_0x24f779('0x15')]||null:null,'limit':_0x50de78[_0x24f779('0xa')]?_0x50de78[_0x24f779('0xa')][_0x24f779('0x8')]||null:null})[_0x24f779('0x16')](function(_0x5d693c){const _0x432da2=_0x24f779;logger[_0x432da2('0x3')](_0x432da2('0x1a'),_0x50de78),logger[_0x432da2('0xd')](_0x432da2('0x1a'),_0x50de78,JSON[_0x432da2('0x14')](_0x5d693c)),_0x5be681(_0x5d693c);})[_0x24f779('0x11')](function(_0x2fb69b){const _0x4af648=_0x24f779;logger[_0x4af648('0x0')](_0x4af648('0x1a'),_0x2fb69b[_0x4af648('0x18')],_0x50de78),_0x785510(_0x1dbb98[_0x4af648('0x0')](0x1f4,_0x2fb69b[_0x4af648('0x18')]));});});},exports['DestroyCmHopperBlack']=function(_0x352381){const _0x542444=this;return new Promise(function(_0x21e579,_0x113e33){const _0x335889=a144_0xcb53;return db[_0x335889('0x7')][_0x335889('0x19')]({'where':_0x352381[_0x335889('0xa')]?_0x352381[_0x335889('0xa')][_0x335889('0x9')]||null:null})[_0x335889('0x16')](function(_0x17f04e){const _0x3077bb=_0x335889;logger[_0x3077bb('0x3')](_0x3077bb('0x13'),_0x352381),logger['debug'](_0x3077bb('0x13'),_0x352381,JSON['stringify'](_0x17f04e)),_0x21e579(_0x17f04e);})['catch'](function(_0x5a100a){const _0x2e1534=_0x335889;logger['error'](_0x2e1534('0x13'),_0x5a100a[_0x2e1534('0x18')],_0x352381),_0x113e33(_0x542444['error'](0x1f4,_0x5a100a['message']));});});};
\ No newline at end of file
+const a144_0x10ae=['stringify','attributes','options','limit','raw','lodash','then','GetCmHopperBlack','../../mysqldb','rpc','message','include','../../config/logger','map','where','update','DestroyCmHopperBlack','model','debug','catch','CmHopperBlack','info','UpdateCmHopperBlack','error'];(function(_0x15c7cc,_0x10aea7){const _0x12a5b8=function(_0x483b0f){while(--_0x483b0f){_0x15c7cc['push'](_0x15c7cc['shift']());}};_0x12a5b8(++_0x10aea7);}(a144_0x10ae,0x93));const a144_0x12a5=function(_0x15c7cc,_0x10aea7){_0x15c7cc=_0x15c7cc-0x0;let _0x12a5b8=a144_0x10ae[_0x15c7cc];return _0x12a5b8;};const _0x115bda=a144_0x12a5;'use strict';const _=require(_0x115bda('0x2')),db=require(_0x115bda('0x5'))['db'],logger=require(_0x115bda('0x9'))(_0x115bda('0x6'));exports['GetCmHopperBlack']=function(_0x483b0f){const _0x314b09=this;return new Promise(function(_0x39bf98,_0x1792ad){const _0x3c1872=a144_0x12a5;return db[_0x3c1872('0x11')]['findAll']({'raw':_0x483b0f['options']?_0x483b0f['options'][_0x3c1872('0x1')]===undefined?!![]:![]:!![],'where':_0x483b0f['options']?_0x483b0f['options'][_0x3c1872('0xb')]||null:null,'attributes':_0x483b0f[_0x3c1872('0x17')]?_0x483b0f[_0x3c1872('0x17')]['attributes']||null:null,'limit':_0x483b0f[_0x3c1872('0x17')]?_0x483b0f[_0x3c1872('0x17')][_0x3c1872('0x0')]||null:null,'include':_0x483b0f[_0x3c1872('0x17')]?_0x483b0f[_0x3c1872('0x17')][_0x3c1872('0x8')]?_[_0x3c1872('0xa')](_0x483b0f['options'][_0x3c1872('0x8')],function(_0x28ae61){const _0x3d94a4=_0x3c1872;return{'model':db[_0x28ae61['model']],'as':_0x28ae61['as'],'attributes':_0x28ae61[_0x3d94a4('0x16')],'include':_0x28ae61[_0x3d94a4('0x8')]?_[_0x3d94a4('0xa')](_0x28ae61[_0x3d94a4('0x8')],function(_0x8d1414){const _0x731513=_0x3d94a4;return{'model':db[_0x8d1414[_0x731513('0xe')]],'as':_0x8d1414['as'],'attributes':_0x8d1414[_0x731513('0x16')],'include':_0x8d1414[_0x731513('0x8')]?_[_0x731513('0xa')](_0x8d1414['include'],function(_0x591909){const _0x351d8e=_0x731513;return{'model':db[_0x591909['model']],'as':_0x591909['as'],'attributes':_0x591909[_0x351d8e('0x16')]};}):[]};}):[]};}):[]:[]})[_0x3c1872('0x3')](function(_0x382878){const _0x38b9f3=_0x3c1872;logger[_0x38b9f3('0x12')]('GetCmHopperBlack',_0x483b0f),logger[_0x38b9f3('0xf')](_0x38b9f3('0x4'),_0x483b0f,JSON[_0x38b9f3('0x15')](_0x382878)),_0x39bf98(_0x382878);})[_0x3c1872('0x10')](function(_0x331a9c){const _0x492844=_0x3c1872;logger[_0x492844('0x14')](_0x492844('0x4'),_0x331a9c[_0x492844('0x7')],_0x483b0f),_0x1792ad(_0x314b09[_0x492844('0x14')](0x1f4,_0x331a9c[_0x492844('0x7')]));});});},exports[_0x115bda('0x13')]=function(_0x53eab2){const _0x531015=this;return new Promise(function(_0x10076e,_0x10644c){const _0x9e1f2f=a144_0x12a5;return db[_0x9e1f2f('0x11')][_0x9e1f2f('0xc')](_0x53eab2['body'],{'raw':_0x53eab2[_0x9e1f2f('0x17')]?_0x53eab2[_0x9e1f2f('0x17')][_0x9e1f2f('0x1')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x53eab2[_0x9e1f2f('0x17')]?_0x53eab2['options'][_0x9e1f2f('0xb')]||null:null,'attributes':_0x53eab2[_0x9e1f2f('0x17')]?_0x53eab2[_0x9e1f2f('0x17')][_0x9e1f2f('0x16')]||null:null,'limit':_0x53eab2[_0x9e1f2f('0x17')]?_0x53eab2[_0x9e1f2f('0x17')][_0x9e1f2f('0x0')]||null:null})['then'](function(_0xf1207b){const _0x3bb85c=_0x9e1f2f;logger['info'](_0x3bb85c('0x13'),_0x53eab2),logger[_0x3bb85c('0xf')]('UpdateCmHopperBlack',_0x53eab2,JSON['stringify'](_0xf1207b)),_0x10076e(_0xf1207b);})['catch'](function(_0x1ab958){const _0xefda3=_0x9e1f2f;logger[_0xefda3('0x14')]('UpdateCmHopperBlack',_0x1ab958[_0xefda3('0x7')],_0x53eab2),_0x10644c(_0x531015[_0xefda3('0x14')](0x1f4,_0x1ab958[_0xefda3('0x7')]));});});},exports[_0x115bda('0xd')]=function(_0x4e78a9){const _0x20df46=this;return new Promise(function(_0x489549,_0x4642e9){const _0x162829=a144_0x12a5;return db['CmHopperBlack']['destroy']({'where':_0x4e78a9[_0x162829('0x17')]?_0x4e78a9[_0x162829('0x17')][_0x162829('0xb')]||null:null})[_0x162829('0x3')](function(_0x5f7f1b){const _0x4fa0c5=_0x162829;logger['info'](_0x4fa0c5('0xd'),_0x4e78a9),logger[_0x4fa0c5('0xf')](_0x4fa0c5('0xd'),_0x4e78a9,JSON[_0x4fa0c5('0x15')](_0x5f7f1b)),_0x489549(_0x5f7f1b);})[_0x162829('0x10')](function(_0x260d07){const _0x5c8739=_0x162829;logger[_0x5c8739('0x14')](_0x5c8739('0xd'),_0x260d07[_0x5c8739('0x7')],_0x4e78a9),_0x4642e9(_0x20df46[_0x5c8739('0x14')](0x1f4,_0x260d07['message']));});});};
\ No newline at end of file