Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / memberReport / memberReport.rpc.js
index aa535ca..50c0bd8 100644 (file)
@@ -1 +1 @@
-const a542_0x32a5=['debug','then','rpc','map','raw','lodash','create','include','attributes','error','../../config/logger','MemberReport','CreateMemberReport','GetMemberReport','message','stringify','model','catch','body','UpdateMemberReport','info','../../mysqldb','options'];(function(_0x2f29c5,_0x10e4d5){const _0x32a5fb=function(_0x52d62a){while(--_0x52d62a){_0x2f29c5['push'](_0x2f29c5['shift']());}};_0x32a5fb(++_0x10e4d5);}(a542_0x32a5,0xc6));const a542_0x52d6=function(_0x2f29c5,_0x10e4d5){_0x2f29c5=_0x2f29c5-0x9f;let _0x32a5fb=a542_0x32a5[_0x2f29c5];return _0x32a5fb;};const a542_0x354afe=a542_0x52d6;'use strict';const _=require(a542_0x354afe(0xad)),db=require(a542_0x354afe(0xa6))['db'],logger=require(a542_0x354afe(0xb2))(a542_0x354afe(0xaa));exports['GetMemberReport']=function(_0x243b19){const _0x3903f1=this;return new Promise(function(_0x16f75d,_0x4e64a7){const _0x5ad3e2=a542_0x52d6;return db[_0x5ad3e2(0xb3)]['findAll']({'raw':_0x243b19[_0x5ad3e2(0xa7)]?_0x243b19[_0x5ad3e2(0xa7)]['raw']===undefined?!![]:![]:!![],'where':_0x243b19[_0x5ad3e2(0xa7)]?_0x243b19[_0x5ad3e2(0xa7)]['where']||null:null,'attributes':_0x243b19[_0x5ad3e2(0xa7)]?_0x243b19[_0x5ad3e2(0xa7)][_0x5ad3e2(0xb0)]||null:null,'limit':_0x243b19['options']?_0x243b19[_0x5ad3e2(0xa7)]['limit']||null:null,'include':_0x243b19['options']?_0x243b19[_0x5ad3e2(0xa7)][_0x5ad3e2(0xaf)]?_[_0x5ad3e2(0xab)](_0x243b19[_0x5ad3e2(0xa7)]['include'],function(_0x20882a){const _0x2cb2c0=_0x5ad3e2;return{'model':db[_0x20882a[_0x2cb2c0(0xa1)]],'as':_0x20882a['as'],'attributes':_0x20882a['attributes'],'include':_0x20882a[_0x2cb2c0(0xaf)]?_[_0x2cb2c0(0xab)](_0x20882a[_0x2cb2c0(0xaf)],function(_0x54687e){const _0x2244ca=_0x2cb2c0;return{'model':db[_0x54687e[_0x2244ca(0xa1)]],'as':_0x54687e['as'],'attributes':_0x54687e[_0x2244ca(0xb0)],'include':_0x54687e[_0x2244ca(0xaf)]?_['map'](_0x54687e[_0x2244ca(0xaf)],function(_0x26fba9){const _0x321863=_0x2244ca;return{'model':db[_0x26fba9[_0x321863(0xa1)]],'as':_0x26fba9['as'],'attributes':_0x26fba9['attributes']};}):[]};}):[]};}):[]:[]})[_0x5ad3e2(0xa9)](function(_0x3fcf42){const _0x16b0ae=_0x5ad3e2;logger[_0x16b0ae(0xa5)](_0x16b0ae(0xb5),_0x243b19),logger['debug'](_0x16b0ae(0xb5),_0x243b19,JSON[_0x16b0ae(0xa0)](_0x3fcf42)),_0x16f75d(_0x3fcf42);})[_0x5ad3e2(0xa2)](function(_0x3c3023){const _0x49a9ea=_0x5ad3e2;logger['error'](_0x49a9ea(0xb5),_0x3c3023[_0x49a9ea(0x9f)],_0x243b19),_0x4e64a7(_0x3903f1[_0x49a9ea(0xb1)](0x1f4,_0x3c3023[_0x49a9ea(0x9f)]));});});},exports['CreateMemberReport']=function(_0x4356be){const _0x52343a=this;return new Promise(function(_0x44c802,_0x186777){const _0x3ea457=a542_0x52d6;return db[_0x3ea457(0xb3)][_0x3ea457(0xae)](_0x4356be[_0x3ea457(0xa3)],{'raw':_0x4356be[_0x3ea457(0xa7)]?_0x4356be[_0x3ea457(0xa7)][_0x3ea457(0xac)]===undefined?!![]:![]:!![]})[_0x3ea457(0xa9)](function(_0x277c87){const _0x52bb65=_0x3ea457;logger['info'](_0x52bb65(0xb4),_0x4356be),logger[_0x52bb65(0xa8)](_0x52bb65(0xb4),_0x4356be,JSON[_0x52bb65(0xa0)](_0x277c87)),_0x44c802(_0x277c87);})['catch'](function(_0x3c7949){const _0x59e5cc=_0x3ea457;logger[_0x59e5cc(0xb1)]('CreateMemberReport',_0x3c7949['message'],_0x4356be),_0x186777(_0x52343a[_0x59e5cc(0xb1)](0x1f4,_0x3c7949[_0x59e5cc(0x9f)]));});});},exports[a542_0x354afe(0xa4)]=function(_0x2fcfa1){const _0x1ee9eb=this;return new Promise(function(_0x105d7d,_0x12cb1f){const _0x3594b8=a542_0x52d6;return db[_0x3594b8(0xb3)]['update'](_0x2fcfa1[_0x3594b8(0xa3)],{'raw':_0x2fcfa1['options']?_0x2fcfa1['options'][_0x3594b8(0xac)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2fcfa1[_0x3594b8(0xa7)]?_0x2fcfa1[_0x3594b8(0xa7)]['where']||null:null,'attributes':_0x2fcfa1[_0x3594b8(0xa7)]?_0x2fcfa1[_0x3594b8(0xa7)][_0x3594b8(0xb0)]||null:null,'limit':_0x2fcfa1['options']?_0x2fcfa1[_0x3594b8(0xa7)]['limit']||null:null})[_0x3594b8(0xa9)](function(_0x24b49e){const _0x32e766=_0x3594b8;logger[_0x32e766(0xa5)](_0x32e766(0xa4),_0x2fcfa1),logger[_0x32e766(0xa8)](_0x32e766(0xa4),_0x2fcfa1,JSON[_0x32e766(0xa0)](_0x24b49e)),_0x105d7d(_0x24b49e);})[_0x3594b8(0xa2)](function(_0x4f7b4f){const _0x10b4d8=_0x3594b8;logger[_0x10b4d8(0xb1)](_0x10b4d8(0xa4),_0x4f7b4f['message'],_0x2fcfa1),_0x12cb1f(_0x1ee9eb[_0x10b4d8(0xb1)](0x1f4,_0x4f7b4f['message']));});});};
\ No newline at end of file
+const a542_0x1242=['update','map','model','MemberReport','stringify','../../config/logger','options','message','debug','info','where','include','catch','CreateMemberReport','limit','raw','then','body','rpc','findAll','UpdateMemberReport','error','GetMemberReport','attributes','create'];(function(_0x2796b7,_0x3ee44a){const _0x124297=function(_0x3b6a41){while(--_0x3b6a41){_0x2796b7['push'](_0x2796b7['shift']());}};_0x124297(++_0x3ee44a);}(a542_0x1242,0xdf));const a542_0x3b6a=function(_0x2796b7,_0x3ee44a){_0x2796b7=_0x2796b7-0x12d;let _0x124297=a542_0x1242[_0x2796b7];return _0x124297;};const a542_0x3d5ad9=a542_0x3b6a;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(a542_0x3d5ad9(0x134))(a542_0x3d5ad9(0x141));exports['GetMemberReport']=function(_0x4efd26){const _0x5baae=this;return new Promise(function(_0x16ee93,_0x5c75f2){const _0x580d8=a542_0x3b6a;return db[_0x580d8(0x132)][_0x580d8(0x142)]({'raw':_0x4efd26[_0x580d8(0x135)]?_0x4efd26[_0x580d8(0x135)][_0x580d8(0x13e)]===undefined?!![]:![]:!![],'where':_0x4efd26[_0x580d8(0x135)]?_0x4efd26[_0x580d8(0x135)][_0x580d8(0x139)]||null:null,'attributes':_0x4efd26[_0x580d8(0x135)]?_0x4efd26[_0x580d8(0x135)][_0x580d8(0x12d)]||null:null,'limit':_0x4efd26['options']?_0x4efd26[_0x580d8(0x135)][_0x580d8(0x13d)]||null:null,'include':_0x4efd26[_0x580d8(0x135)]?_0x4efd26[_0x580d8(0x135)]['include']?_[_0x580d8(0x130)](_0x4efd26[_0x580d8(0x135)][_0x580d8(0x13a)],function(_0x3e3a4c){const _0x4ffc61=_0x580d8;return{'model':db[_0x3e3a4c[_0x4ffc61(0x131)]],'as':_0x3e3a4c['as'],'attributes':_0x3e3a4c['attributes'],'include':_0x3e3a4c[_0x4ffc61(0x13a)]?_[_0x4ffc61(0x130)](_0x3e3a4c[_0x4ffc61(0x13a)],function(_0x376e0b){const _0x252bd0=_0x4ffc61;return{'model':db[_0x376e0b['model']],'as':_0x376e0b['as'],'attributes':_0x376e0b[_0x252bd0(0x12d)],'include':_0x376e0b[_0x252bd0(0x13a)]?_['map'](_0x376e0b[_0x252bd0(0x13a)],function(_0x3daea7){const _0x4057c4=_0x252bd0;return{'model':db[_0x3daea7[_0x4057c4(0x131)]],'as':_0x3daea7['as'],'attributes':_0x3daea7[_0x4057c4(0x12d)]};}):[]};}):[]};}):[]:[]})[_0x580d8(0x13f)](function(_0x210992){const _0x325712=_0x580d8;logger[_0x325712(0x138)](_0x325712(0x145),_0x4efd26),logger[_0x325712(0x137)](_0x325712(0x145),_0x4efd26,JSON[_0x325712(0x133)](_0x210992)),_0x16ee93(_0x210992);})[_0x580d8(0x13b)](function(_0x2554b3){const _0x41aed4=_0x580d8;logger[_0x41aed4(0x144)](_0x41aed4(0x145),_0x2554b3['message'],_0x4efd26),_0x5c75f2(_0x5baae[_0x41aed4(0x144)](0x1f4,_0x2554b3['message']));});});},exports[a542_0x3d5ad9(0x13c)]=function(_0x2f0fd0){const _0x433841=this;return new Promise(function(_0x141f2e,_0x5420d0){const _0xe01b53=a542_0x3b6a;return db['MemberReport'][_0xe01b53(0x12e)](_0x2f0fd0['body'],{'raw':_0x2f0fd0['options']?_0x2f0fd0['options'][_0xe01b53(0x13e)]===undefined?!![]:![]:!![]})[_0xe01b53(0x13f)](function(_0x192b1e){const _0x479344=_0xe01b53;logger[_0x479344(0x138)](_0x479344(0x13c),_0x2f0fd0),logger['debug']('CreateMemberReport',_0x2f0fd0,JSON[_0x479344(0x133)](_0x192b1e)),_0x141f2e(_0x192b1e);})['catch'](function(_0x18a02d){const _0x1600b3=_0xe01b53;logger[_0x1600b3(0x144)](_0x1600b3(0x13c),_0x18a02d[_0x1600b3(0x136)],_0x2f0fd0),_0x5420d0(_0x433841[_0x1600b3(0x144)](0x1f4,_0x18a02d[_0x1600b3(0x136)]));});});},exports[a542_0x3d5ad9(0x143)]=function(_0x193fb0){const _0x3ccb3c=this;return new Promise(function(_0x1e0e54,_0x443340){const _0x4605ea=a542_0x3b6a;return db[_0x4605ea(0x132)][_0x4605ea(0x12f)](_0x193fb0[_0x4605ea(0x140)],{'raw':_0x193fb0[_0x4605ea(0x135)]?_0x193fb0[_0x4605ea(0x135)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x193fb0['options']?_0x193fb0[_0x4605ea(0x135)][_0x4605ea(0x139)]||null:null,'attributes':_0x193fb0[_0x4605ea(0x135)]?_0x193fb0[_0x4605ea(0x135)][_0x4605ea(0x12d)]||null:null,'limit':_0x193fb0[_0x4605ea(0x135)]?_0x193fb0['options'][_0x4605ea(0x13d)]||null:null})[_0x4605ea(0x13f)](function(_0x582ddd){const _0x323ca4=_0x4605ea;logger[_0x323ca4(0x138)](_0x323ca4(0x143),_0x193fb0),logger[_0x323ca4(0x137)](_0x323ca4(0x143),_0x193fb0,JSON[_0x323ca4(0x133)](_0x582ddd)),_0x1e0e54(_0x582ddd);})[_0x4605ea(0x13b)](function(_0x54665b){const _0x32e32a=_0x4605ea;logger[_0x32e32a(0x144)](_0x32e32a(0x143),_0x54665b[_0x32e32a(0x136)],_0x193fb0),_0x443340(_0x3ccb3c[_0x32e32a(0x144)](0x1f4,_0x54665b[_0x32e32a(0x136)]));});});};
\ No newline at end of file