Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0...
[motion-next.git] / server / api / memberReport / memberReport.rpc.js
index fc7c064..2ce6d00 100644 (file)
@@ -1 +1 @@
-const a450_0x3af5=['attributes','GetMemberReport','limit','then','MemberReport','where','stringify','error','message','rpc','raw','include','body','model','create','../../config/logger','CreateMemberReport','catch','options','debug','map','update','UpdateMemberReport','../../mysqldb','info'];(function(_0x27d9ff,_0x3af5d8){const _0xe23e37=function(_0x13b6fb){while(--_0x13b6fb){_0x27d9ff['push'](_0x27d9ff['shift']());}};_0xe23e37(++_0x3af5d8);}(a450_0x3af5,0x88));const a450_0xe23e=function(_0x27d9ff,_0x3af5d8){_0x27d9ff=_0x27d9ff-0x0;let _0xe23e37=a450_0x3af5[_0x27d9ff];return _0xe23e37;};const _0x37e079=a450_0xe23e;'use strict';const _=require('lodash'),db=require(_0x37e079('0xc'))['db'],logger=require(_0x37e079('0x4'))(_0x37e079('0x17'));exports[_0x37e079('0xf')]=function(_0x13b6fb){const _0xd3d5ce=this;return new Promise(function(_0x40d5d0,_0x37ba98){const _0x165946=a450_0xe23e;return db[_0x165946('0x12')]['findAll']({'raw':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')][_0x165946('0x18')]===undefined?!![]:![]:!![],'where':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')][_0x165946('0x13')]||null:null,'attributes':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')][_0x165946('0xe')]||null:null,'limit':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')][_0x165946('0x10')]||null:null,'include':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')]['include']?_[_0x165946('0x9')](_0x13b6fb[_0x165946('0x7')]['include'],function(_0x4ccb78){const _0x508b65=_0x165946;return{'model':db[_0x4ccb78[_0x508b65('0x2')]],'as':_0x4ccb78['as'],'attributes':_0x4ccb78['attributes'],'include':_0x4ccb78[_0x508b65('0x0')]?_['map'](_0x4ccb78[_0x508b65('0x0')],function(_0x3379a6){const _0x12fc33=_0x508b65;return{'model':db[_0x3379a6[_0x12fc33('0x2')]],'as':_0x3379a6['as'],'attributes':_0x3379a6['attributes'],'include':_0x3379a6[_0x12fc33('0x0')]?_[_0x12fc33('0x9')](_0x3379a6[_0x12fc33('0x0')],function(_0x186133){const _0x266855=_0x12fc33;return{'model':db[_0x186133[_0x266855('0x2')]],'as':_0x186133['as'],'attributes':_0x186133['attributes']};}):[]};}):[]};}):[]:[]})[_0x165946('0x11')](function(_0x2a0e8d){const _0x569042=_0x165946;logger['info'](_0x569042('0xf'),_0x13b6fb),logger[_0x569042('0x8')](_0x569042('0xf'),_0x13b6fb,JSON['stringify'](_0x2a0e8d)),_0x40d5d0(_0x2a0e8d);})[_0x165946('0x6')](function(_0x4193ce){const _0x13825e=_0x165946;logger['error']('GetMemberReport',_0x4193ce[_0x13825e('0x16')],_0x13b6fb),_0x37ba98(_0xd3d5ce['error'](0x1f4,_0x4193ce[_0x13825e('0x16')]));});});},exports[_0x37e079('0x5')]=function(_0x4963f6){const _0x20996b=this;return new Promise(function(_0x2c410b,_0x24e87f){const _0x44f228=a450_0xe23e;return db[_0x44f228('0x12')][_0x44f228('0x3')](_0x4963f6[_0x44f228('0x1')],{'raw':_0x4963f6[_0x44f228('0x7')]?_0x4963f6['options'][_0x44f228('0x18')]===undefined?!![]:![]:!![]})[_0x44f228('0x11')](function(_0x474e50){const _0x1ec4b5=_0x44f228;logger[_0x1ec4b5('0xd')]('CreateMemberReport',_0x4963f6),logger[_0x1ec4b5('0x8')]('CreateMemberReport',_0x4963f6,JSON[_0x1ec4b5('0x14')](_0x474e50)),_0x2c410b(_0x474e50);})[_0x44f228('0x6')](function(_0x195805){const _0x4a937d=_0x44f228;logger['error'](_0x4a937d('0x5'),_0x195805[_0x4a937d('0x16')],_0x4963f6),_0x24e87f(_0x20996b[_0x4a937d('0x15')](0x1f4,_0x195805[_0x4a937d('0x16')]));});});},exports[_0x37e079('0xb')]=function(_0x2a9b3c){const _0x3d53bf=this;return new Promise(function(_0xcb71af,_0x4c485e){const _0x2eff7d=a450_0xe23e;return db[_0x2eff7d('0x12')][_0x2eff7d('0xa')](_0x2a9b3c[_0x2eff7d('0x1')],{'raw':_0x2a9b3c[_0x2eff7d('0x7')]?_0x2a9b3c[_0x2eff7d('0x7')][_0x2eff7d('0x18')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2a9b3c[_0x2eff7d('0x7')]?_0x2a9b3c['options'][_0x2eff7d('0x13')]||null:null,'attributes':_0x2a9b3c[_0x2eff7d('0x7')]?_0x2a9b3c[_0x2eff7d('0x7')][_0x2eff7d('0xe')]||null:null,'limit':_0x2a9b3c[_0x2eff7d('0x7')]?_0x2a9b3c[_0x2eff7d('0x7')][_0x2eff7d('0x10')]||null:null})[_0x2eff7d('0x11')](function(_0x284e04){const _0x5b5408=_0x2eff7d;logger[_0x5b5408('0xd')](_0x5b5408('0xb'),_0x2a9b3c),logger['debug'](_0x5b5408('0xb'),_0x2a9b3c,JSON[_0x5b5408('0x14')](_0x284e04)),_0xcb71af(_0x284e04);})['catch'](function(_0x10e185){const _0x3cee6e=_0x2eff7d;logger[_0x3cee6e('0x15')](_0x3cee6e('0xb'),_0x10e185[_0x3cee6e('0x16')],_0x2a9b3c),_0x4c485e(_0x3d53bf['error'](0x1f4,_0x10e185[_0x3cee6e('0x16')]));});});};
\ No newline at end of file
+const a450_0x36fc=['model','message','limit','body','stringify','where','then','CreateMemberReport','options','findAll','info','raw','error','MemberReport','../../mysqldb','attributes','include','update','GetMemberReport','debug','lodash','UpdateMemberReport','map','create','../../config/logger','catch'];(function(_0x728daa,_0x36fc00){const _0x5dc9d2=function(_0x1249d7){while(--_0x1249d7){_0x728daa['push'](_0x728daa['shift']());}};_0x5dc9d2(++_0x36fc00);}(a450_0x36fc,0xf1));const a450_0x5dc9=function(_0x728daa,_0x36fc00){_0x728daa=_0x728daa-0x0;let _0x5dc9d2=a450_0x36fc[_0x728daa];return _0x5dc9d2;};const _0x155032=a450_0x5dc9;'use strict';const _=require(_0x155032('0xd')),db=require(_0x155032('0x7'))['db'],logger=require(_0x155032('0x11'))('rpc');exports['GetMemberReport']=function(_0x1249d7){const _0x368a5c=this;return new Promise(function(_0x9ac148,_0x2b504a){const _0x1357cf=a450_0x5dc9;return db[_0x1357cf('0x6')][_0x1357cf('0x2')]({'raw':_0x1249d7[_0x1357cf('0x1')]?_0x1249d7[_0x1357cf('0x1')][_0x1357cf('0x4')]===undefined?!![]:![]:!![],'where':_0x1249d7[_0x1357cf('0x1')]?_0x1249d7['options'][_0x1357cf('0x18')]||null:null,'attributes':_0x1249d7[_0x1357cf('0x1')]?_0x1249d7['options'][_0x1357cf('0x8')]||null:null,'limit':_0x1249d7[_0x1357cf('0x1')]?_0x1249d7['options'][_0x1357cf('0x15')]||null:null,'include':_0x1249d7['options']?_0x1249d7['options'][_0x1357cf('0x9')]?_[_0x1357cf('0xf')](_0x1249d7[_0x1357cf('0x1')]['include'],function(_0x2d4904){const _0x130968=_0x1357cf;return{'model':db[_0x2d4904[_0x130968('0x13')]],'as':_0x2d4904['as'],'attributes':_0x2d4904[_0x130968('0x8')],'include':_0x2d4904['include']?_['map'](_0x2d4904[_0x130968('0x9')],function(_0x4503e6){const _0x39c74d=_0x130968;return{'model':db[_0x4503e6[_0x39c74d('0x13')]],'as':_0x4503e6['as'],'attributes':_0x4503e6[_0x39c74d('0x8')],'include':_0x4503e6[_0x39c74d('0x9')]?_['map'](_0x4503e6[_0x39c74d('0x9')],function(_0x532088){const _0x5f4b78=_0x39c74d;return{'model':db[_0x532088[_0x5f4b78('0x13')]],'as':_0x532088['as'],'attributes':_0x532088[_0x5f4b78('0x8')]};}):[]};}):[]};}):[]:[]})[_0x1357cf('0x19')](function(_0x1d9633){const _0x1467f2=_0x1357cf;logger[_0x1467f2('0x3')](_0x1467f2('0xb'),_0x1249d7),logger['debug']('GetMemberReport',_0x1249d7,JSON[_0x1467f2('0x17')](_0x1d9633)),_0x9ac148(_0x1d9633);})['catch'](function(_0x14a929){const _0x8e2aba=_0x1357cf;logger['error'](_0x8e2aba('0xb'),_0x14a929[_0x8e2aba('0x14')],_0x1249d7),_0x2b504a(_0x368a5c[_0x8e2aba('0x5')](0x1f4,_0x14a929['message']));});});},exports[_0x155032('0x0')]=function(_0x17a523){const _0x5ae737=this;return new Promise(function(_0x163c24,_0x27f3e7){const _0x1da552=a450_0x5dc9;return db['MemberReport'][_0x1da552('0x10')](_0x17a523[_0x1da552('0x16')],{'raw':_0x17a523[_0x1da552('0x1')]?_0x17a523['options'][_0x1da552('0x4')]===undefined?!![]:![]:!![]})[_0x1da552('0x19')](function(_0x12011f){const _0x1ef2c7=_0x1da552;logger['info'](_0x1ef2c7('0x0'),_0x17a523),logger[_0x1ef2c7('0xc')](_0x1ef2c7('0x0'),_0x17a523,JSON[_0x1ef2c7('0x17')](_0x12011f)),_0x163c24(_0x12011f);})[_0x1da552('0x12')](function(_0x157a55){const _0x47f289=_0x1da552;logger['error']('CreateMemberReport',_0x157a55[_0x47f289('0x14')],_0x17a523),_0x27f3e7(_0x5ae737['error'](0x1f4,_0x157a55['message']));});});},exports['UpdateMemberReport']=function(_0x133ac6){const _0x588c17=this;return new Promise(function(_0x48043a,_0x397a61){const _0x11483f=a450_0x5dc9;return db[_0x11483f('0x6')][_0x11483f('0xa')](_0x133ac6[_0x11483f('0x16')],{'raw':_0x133ac6[_0x11483f('0x1')]?_0x133ac6[_0x11483f('0x1')][_0x11483f('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x133ac6[_0x11483f('0x1')]?_0x133ac6[_0x11483f('0x1')][_0x11483f('0x18')]||null:null,'attributes':_0x133ac6[_0x11483f('0x1')]?_0x133ac6['options'][_0x11483f('0x8')]||null:null,'limit':_0x133ac6[_0x11483f('0x1')]?_0x133ac6[_0x11483f('0x1')][_0x11483f('0x15')]||null:null})[_0x11483f('0x19')](function(_0x1a90c7){const _0x2fa7c8=_0x11483f;logger[_0x2fa7c8('0x3')](_0x2fa7c8('0xe'),_0x133ac6),logger[_0x2fa7c8('0xc')](_0x2fa7c8('0xe'),_0x133ac6,JSON[_0x2fa7c8('0x17')](_0x1a90c7)),_0x48043a(_0x1a90c7);})[_0x11483f('0x12')](function(_0x404b57){const _0x52c300=_0x11483f;logger[_0x52c300('0x5')](_0x52c300('0xe'),_0x404b57[_0x52c300('0x14')],_0x133ac6),_0x397a61(_0x588c17[_0x52c300('0x5')](0x1f4,_0x404b57[_0x52c300('0x14')]));});});};
\ No newline at end of file