Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / api / memberReport / memberReport.rpc.js
index a7d6a92..fc7c064 100644 (file)
@@ -1 +1 @@
-const a450_0x1693=['body','../../config/logger','raw','GetMemberReport','debug','options','then','stringify','include','rpc','findAll','MemberReport','model','limit','attributes','CreateMemberReport','error','create','message','where','../../mysqldb','info','update','lodash','catch','UpdateMemberReport','map'];(function(_0x5af018,_0x1693d4){const _0x4f37fc=function(_0x382568){while(--_0x382568){_0x5af018['push'](_0x5af018['shift']());}};_0x4f37fc(++_0x1693d4);}(a450_0x1693,0x1b7));const a450_0x4f37=function(_0x5af018,_0x1693d4){_0x5af018=_0x5af018-0x0;let _0x4f37fc=a450_0x1693[_0x5af018];return _0x4f37fc;};const _0x5c7e99=a450_0x4f37;'use strict';const _=require(_0x5c7e99('0x10')),db=require(_0x5c7e99('0xd'))['db'],logger=require(_0x5c7e99('0x15'))(_0x5c7e99('0x2'));exports['GetMemberReport']=function(_0x382568){const _0x1d6d8b=this;return new Promise(function(_0x1d8879,_0x2846dc){const _0x4385c7=a450_0x4f37;return db[_0x4385c7('0x4')][_0x4385c7('0x3')]({'raw':_0x382568[_0x4385c7('0x19')]?_0x382568[_0x4385c7('0x19')][_0x4385c7('0x16')]===undefined?!![]:![]:!![],'where':_0x382568[_0x4385c7('0x19')]?_0x382568[_0x4385c7('0x19')]['where']||null:null,'attributes':_0x382568[_0x4385c7('0x19')]?_0x382568[_0x4385c7('0x19')][_0x4385c7('0x7')]||null:null,'limit':_0x382568['options']?_0x382568[_0x4385c7('0x19')][_0x4385c7('0x6')]||null:null,'include':_0x382568[_0x4385c7('0x19')]?_0x382568[_0x4385c7('0x19')][_0x4385c7('0x1')]?_[_0x4385c7('0x13')](_0x382568[_0x4385c7('0x19')]['include'],function(_0x4dd284){const _0x9f22f9=_0x4385c7;return{'model':db[_0x4dd284[_0x9f22f9('0x5')]],'as':_0x4dd284['as'],'attributes':_0x4dd284[_0x9f22f9('0x7')],'include':_0x4dd284[_0x9f22f9('0x1')]?_[_0x9f22f9('0x13')](_0x4dd284[_0x9f22f9('0x1')],function(_0x311f0f){const _0x4dccca=_0x9f22f9;return{'model':db[_0x311f0f[_0x4dccca('0x5')]],'as':_0x311f0f['as'],'attributes':_0x311f0f[_0x4dccca('0x7')],'include':_0x311f0f[_0x4dccca('0x1')]?_[_0x4dccca('0x13')](_0x311f0f[_0x4dccca('0x1')],function(_0x20aff3){const _0x188e14=_0x4dccca;return{'model':db[_0x20aff3[_0x188e14('0x5')]],'as':_0x20aff3['as'],'attributes':_0x20aff3[_0x188e14('0x7')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xdac71c){const _0x2f6c59=_0x4385c7;logger[_0x2f6c59('0xe')](_0x2f6c59('0x17'),_0x382568),logger[_0x2f6c59('0x18')](_0x2f6c59('0x17'),_0x382568,JSON[_0x2f6c59('0x0')](_0xdac71c)),_0x1d8879(_0xdac71c);})['catch'](function(_0x3d9714){const _0x23c618=_0x4385c7;logger[_0x23c618('0x9')](_0x23c618('0x17'),_0x3d9714['message'],_0x382568),_0x2846dc(_0x1d6d8b[_0x23c618('0x9')](0x1f4,_0x3d9714[_0x23c618('0xb')]));});});},exports[_0x5c7e99('0x8')]=function(_0xececda){const _0x22299d=this;return new Promise(function(_0x13ac85,_0x5be95c){const _0x41dacd=a450_0x4f37;return db[_0x41dacd('0x4')][_0x41dacd('0xa')](_0xececda[_0x41dacd('0x14')],{'raw':_0xececda[_0x41dacd('0x19')]?_0xececda[_0x41dacd('0x19')]['raw']===undefined?!![]:![]:!![]})[_0x41dacd('0x1a')](function(_0x5277b4){const _0x1786fe=_0x41dacd;logger[_0x1786fe('0xe')](_0x1786fe('0x8'),_0xececda),logger[_0x1786fe('0x18')]('CreateMemberReport',_0xececda,JSON[_0x1786fe('0x0')](_0x5277b4)),_0x13ac85(_0x5277b4);})['catch'](function(_0x3db013){const _0x1e38a0=_0x41dacd;logger[_0x1e38a0('0x9')](_0x1e38a0('0x8'),_0x3db013['message'],_0xececda),_0x5be95c(_0x22299d['error'](0x1f4,_0x3db013[_0x1e38a0('0xb')]));});});},exports[_0x5c7e99('0x12')]=function(_0x449f26){const _0x4c0e5f=this;return new Promise(function(_0x33fccc,_0x22f049){const _0x91eb6=a450_0x4f37;return db[_0x91eb6('0x4')][_0x91eb6('0xf')](_0x449f26['body'],{'raw':_0x449f26[_0x91eb6('0x19')]?_0x449f26[_0x91eb6('0x19')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x449f26[_0x91eb6('0x19')]?_0x449f26[_0x91eb6('0x19')][_0x91eb6('0xc')]||null:null,'attributes':_0x449f26[_0x91eb6('0x19')]?_0x449f26[_0x91eb6('0x19')]['attributes']||null:null,'limit':_0x449f26['options']?_0x449f26[_0x91eb6('0x19')][_0x91eb6('0x6')]||null:null})[_0x91eb6('0x1a')](function(_0x5f4c1c){const _0x2f7a5d=_0x91eb6;logger[_0x2f7a5d('0xe')](_0x2f7a5d('0x12'),_0x449f26),logger[_0x2f7a5d('0x18')]('UpdateMemberReport',_0x449f26,JSON[_0x2f7a5d('0x0')](_0x5f4c1c)),_0x33fccc(_0x5f4c1c);})[_0x91eb6('0x11')](function(_0x3fbadf){const _0x57bef8=_0x91eb6;logger['error']('UpdateMemberReport',_0x3fbadf[_0x57bef8('0xb')],_0x449f26),_0x22f049(_0x4c0e5f[_0x57bef8('0x9')](0x1f4,_0x3fbadf[_0x57bef8('0xb')]));});});};
\ No newline at end of file
+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