Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / memberReport / memberReport.controller.js
index c04c47d..ec4184a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc2b3=['error','stack','name','send','map','MemberReport','rawAttributes','fieldName','type','model','query','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','filters','filter','VIRTUAL','merge','options','count','includeAll','include','findAll','rows','catch','show','params','keys','find','create','body','describe','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/utils','../../mysqldb','sendStatus','end','status','json','offset','limit','set','Content-Range','apply','reject','update','then','destroy'];(function(_0x296809,_0x1c9665){var _0x18c0d3=function(_0x249156){while(--_0x249156){_0x296809['push'](_0x296809['shift']());}};_0x18c0d3(++_0x1c9665);}(_0xc2b3,0xbb));var _0x3c2b=function(_0x5107cb,_0x1dfcf1){_0x5107cb=_0x5107cb-0x0;var _0x5586b8=_0xc2b3[_0x5107cb];return _0x5586b8;};'use strict';var pdf=require(_0x3c2b('0x0'));var emlformat=require(_0x3c2b('0x1'));var rimraf=require(_0x3c2b('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x3c2b('0x3'));var rp=require(_0x3c2b('0x4'));var moment=require(_0x3c2b('0x5'));var BPromise=require(_0x3c2b('0x6'));var Mustache=require('mustache');var util=require(_0x3c2b('0x7'));var path=require(_0x3c2b('0x8'));var sox=require(_0x3c2b('0x9'));var csv=require(_0x3c2b('0xa'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x3c2b('0xb'));var squel=require(_0x3c2b('0xc'));var crypto=require(_0x3c2b('0xd'));var jsforce=require(_0x3c2b('0xe'));var deskjs=require(_0x3c2b('0xf'));var toCsv=require(_0x3c2b('0xa'));var querystring=require(_0x3c2b('0x10'));var Papa=require(_0x3c2b('0x11'));var Redis=require(_0x3c2b('0x12'));var authService=require(_0x3c2b('0x13'));var qs=require(_0x3c2b('0x14'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x3c2b('0x15'));var logger=require(_0x3c2b('0x16'))('api');var utils=require(_0x3c2b('0x17'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0x3c2b('0x18'))['db'];function respondWithStatusCode(_0x2f5fd4,_0x4510bc){_0x4510bc=_0x4510bc||0xcc;return function(_0x1f53c6){if(_0x1f53c6){return _0x2f5fd4[_0x3c2b('0x19')](_0x4510bc);}return _0x2f5fd4['status'](_0x4510bc)[_0x3c2b('0x1a')]();};}function respondWithResult(_0x104348,_0x3493b4){_0x3493b4=_0x3493b4||0xc8;return function(_0x27497c){if(_0x27497c){return _0x104348[_0x3c2b('0x1b')](_0x3493b4)[_0x3c2b('0x1c')](_0x27497c);}};}function respondWithFilteredResult(_0x137660,_0x3bc37f){return function(_0x3e18ff){if(_0x3e18ff){var _0x4c9c2b=_0x3e18ff['count'],_0x49771f=_0x3bc37f[_0x3c2b('0x1d')],_0x304bb4=_0x3bc37f[_0x3c2b('0x1d')]+_0x3bc37f[_0x3c2b('0x1e')],_0x30a8cc;if(_0x304bb4>=_0x4c9c2b){_0x304bb4=_0x4c9c2b;_0x30a8cc=0xc8;}else{_0x30a8cc=0xce;}_0x137660['status'](_0x30a8cc);return _0x137660[_0x3c2b('0x1f')](_0x3c2b('0x20'),_0x49771f+'-'+_0x304bb4+'/'+_0x4c9c2b)[_0x3c2b('0x1c')](_0x3e18ff);}return null;};}function patchUpdates(_0x580986){return function(_0x3a50cb){try{jsonpatch[_0x3c2b('0x21')](_0x3a50cb,_0x580986,!![]);}catch(_0x1fb905){return BPromise[_0x3c2b('0x22')](_0x1fb905);}return _0x3a50cb['save']();};}function saveUpdates(_0x27c6df,_0x5cece9){return function(_0x127038){if(_0x127038){return _0x127038[_0x3c2b('0x23')](_0x27c6df)[_0x3c2b('0x24')](function(_0x554697){return _0x554697;});}return null;};}function removeEntity(_0x52b575,_0x1369cf){return function(_0x355c75){if(_0x355c75){return _0x355c75[_0x3c2b('0x25')]()[_0x3c2b('0x24')](function(){_0x52b575[_0x3c2b('0x1b')](0xcc)[_0x3c2b('0x1a')]();});}};}function handleEntityNotFound(_0x45f1dc,_0x500afc){return function(_0x5b677c){if(!_0x5b677c){_0x45f1dc[_0x3c2b('0x19')](0x194);}return _0x5b677c;};}function handleError(_0x427a8f,_0x3ce930){_0x3ce930=_0x3ce930||0x1f4;return function(_0x423dce){logger[_0x3c2b('0x26')](_0x423dce[_0x3c2b('0x27')]);if(_0x423dce[_0x3c2b('0x28')]){delete _0x423dce[_0x3c2b('0x28')];}_0x427a8f[_0x3c2b('0x1b')](_0x3ce930)[_0x3c2b('0x29')](_0x423dce);};}exports['index']=function(_0x23983c,_0x2130c2){var _0x20cd04={},_0x529ec6={},_0x45ff19={'count':0x0,'rows':[]};var _0x293af1=_[_0x3c2b('0x2a')](db[_0x3c2b('0x2b')][_0x3c2b('0x2c')],function(_0x4e4c44){return{'name':_0x4e4c44[_0x3c2b('0x2d')],'type':_0x4e4c44[_0x3c2b('0x2e')]['key']};});_0x529ec6[_0x3c2b('0x2f')]=_[_0x3c2b('0x2a')](_0x293af1,_0x3c2b('0x28'));_0x529ec6[_0x3c2b('0x30')]=_['keys'](_0x23983c[_0x3c2b('0x30')]);_0x529ec6['filters']=_[_0x3c2b('0x31')](_0x529ec6['model'],_0x529ec6[_0x3c2b('0x30')]);_0x20cd04[_0x3c2b('0x32')]=_[_0x3c2b('0x31')](_0x529ec6[_0x3c2b('0x2f')],qs[_0x3c2b('0x33')](_0x23983c['query'][_0x3c2b('0x33')]));_0x20cd04[_0x3c2b('0x32')]=_0x20cd04[_0x3c2b('0x32')][_0x3c2b('0x34')]?_0x20cd04[_0x3c2b('0x32')]:_0x529ec6[_0x3c2b('0x2f')];if(!_0x23983c[_0x3c2b('0x30')][_0x3c2b('0x35')](_0x3c2b('0x36'))){_0x20cd04[_0x3c2b('0x1e')]=qs[_0x3c2b('0x1e')](_0x23983c[_0x3c2b('0x30')][_0x3c2b('0x1e')]);_0x20cd04[_0x3c2b('0x1d')]=qs[_0x3c2b('0x1d')](_0x23983c[_0x3c2b('0x30')]['offset']);}_0x20cd04['order']=qs[_0x3c2b('0x37')](_0x23983c[_0x3c2b('0x30')][_0x3c2b('0x37')]);_0x20cd04[_0x3c2b('0x38')]=qs[_0x3c2b('0x39')](_['pick'](_0x23983c[_0x3c2b('0x30')],_0x529ec6[_0x3c2b('0x39')]),_0x293af1);if(_0x23983c[_0x3c2b('0x30')][_0x3c2b('0x3a')]){_0x20cd04[_0x3c2b('0x38')]=_['merge'](_0x20cd04[_0x3c2b('0x38')],{'$or':_[_0x3c2b('0x2a')](_0x293af1,function(_0x57de03){if(_0x57de03[_0x3c2b('0x2e')]!==_0x3c2b('0x3b')){var _0x12d0da={};_0x12d0da[_0x57de03[_0x3c2b('0x28')]]={'$like':'%'+_0x23983c['query'][_0x3c2b('0x3a')]+'%'};return _0x12d0da;}})});}_0x20cd04=_[_0x3c2b('0x3c')]({},_0x20cd04,_0x23983c[_0x3c2b('0x3d')]);var _0x3f44d2={'where':_0x20cd04[_0x3c2b('0x38')]};return db['MemberReport'][_0x3c2b('0x3e')](_0x3f44d2)[_0x3c2b('0x24')](function(_0x4186a5){_0x45ff19[_0x3c2b('0x3e')]=_0x4186a5;if(_0x23983c[_0x3c2b('0x30')][_0x3c2b('0x3f')]){_0x20cd04[_0x3c2b('0x40')]=[{'all':!![]}];}return db[_0x3c2b('0x2b')][_0x3c2b('0x41')](_0x20cd04);})[_0x3c2b('0x24')](function(_0x31d13b){_0x45ff19[_0x3c2b('0x42')]=_0x31d13b;return _0x45ff19;})['then'](respondWithFilteredResult(_0x2130c2,_0x20cd04))[_0x3c2b('0x43')](handleError(_0x2130c2,null));};exports[_0x3c2b('0x44')]=function(_0x4159ba,_0x41a490){var _0x5e8dea={'raw':!![],'where':{'id':_0x4159ba[_0x3c2b('0x45')]['id']}},_0x2fd5bc={};_0x2fd5bc['model']=_[_0x3c2b('0x46')](db[_0x3c2b('0x2b')][_0x3c2b('0x2c')]);_0x2fd5bc[_0x3c2b('0x30')]=_[_0x3c2b('0x46')](_0x4159ba[_0x3c2b('0x30')]);_0x2fd5bc[_0x3c2b('0x39')]=_[_0x3c2b('0x31')](_0x2fd5bc[_0x3c2b('0x2f')],_0x2fd5bc['query']);_0x5e8dea[_0x3c2b('0x32')]=_[_0x3c2b('0x31')](_0x2fd5bc[_0x3c2b('0x2f')],qs[_0x3c2b('0x33')](_0x4159ba[_0x3c2b('0x30')]['fields']));_0x5e8dea[_0x3c2b('0x32')]=_0x5e8dea['attributes'][_0x3c2b('0x34')]?_0x5e8dea['attributes']:_0x2fd5bc[_0x3c2b('0x2f')];if(_0x4159ba['query'][_0x3c2b('0x3f')]){_0x5e8dea['include']=[{'all':!![]}];}_0x5e8dea=_[_0x3c2b('0x3c')]({},_0x5e8dea,_0x4159ba['options']);return db[_0x3c2b('0x2b')][_0x3c2b('0x47')](_0x5e8dea)[_0x3c2b('0x24')](handleEntityNotFound(_0x41a490,null))['then'](respondWithResult(_0x41a490,null))['catch'](handleError(_0x41a490,null));};exports['create']=function(_0x389fe5,_0x2a60b4){return db['MemberReport'][_0x3c2b('0x48')](_0x389fe5['body'],{})[_0x3c2b('0x24')](respondWithResult(_0x2a60b4,0xc9))[_0x3c2b('0x43')](handleError(_0x2a60b4,null));};exports[_0x3c2b('0x23')]=function(_0x57bbf3,_0x65f685){if(_0x57bbf3[_0x3c2b('0x49')]['id']){delete _0x57bbf3[_0x3c2b('0x49')]['id'];}return db['MemberReport'][_0x3c2b('0x47')]({'where':{'id':_0x57bbf3[_0x3c2b('0x45')]['id']}})[_0x3c2b('0x24')](handleEntityNotFound(_0x65f685,null))[_0x3c2b('0x24')](saveUpdates(_0x57bbf3[_0x3c2b('0x49')],null))[_0x3c2b('0x24')](respondWithResult(_0x65f685,null))['catch'](handleError(_0x65f685,null));};exports[_0x3c2b('0x25')]=function(_0x2ca209,_0x2b141a){return db[_0x3c2b('0x2b')]['find']({'where':{'id':_0x2ca209[_0x3c2b('0x45')]['id']}})[_0x3c2b('0x24')](handleEntityNotFound(_0x2b141a,null))['then'](removeEntity(_0x2b141a,null))['catch'](handleError(_0x2b141a,null));};exports[_0x3c2b('0x4a')]=function(_0x3dc13f,_0x18e041){return db[_0x3c2b('0x2b')][_0x3c2b('0x4a')]()[_0x3c2b('0x24')](respondWithResult(_0x18e041,null))['catch'](handleError(_0x18e041,null));};
\ No newline at end of file
+var _0x3e74=['show','params','options','find','catch','create','body','describe','eml-format','zip-dir','fast-json-patch','request-promise','mustache','path','sox','to-csv','ejs','fs-extra','squel','crypto','jsforce','desk.js','papaparse','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','end','json','undefined','limit','offset','count','status','set','Content-Range','apply','save','update','then','destroy','sendStatus','name','send','index','map','MemberReport','rawAttributes','fieldName','type','key','model','keys','query','filters','intersection','attributes','fields','length','hasOwnProperty','order','sort','where','pick','filter','merge','VIRTUAL','includeAll','include','findAll','rows'];(function(_0x4bc95e,_0x1b645a){var _0x4c3419=function(_0x48f367){while(--_0x48f367){_0x4bc95e['push'](_0x4bc95e['shift']());}};_0x4c3419(++_0x1b645a);}(_0x3e74,0x175));var _0x43e7=function(_0x4bfaaa,_0x3d1489){_0x4bfaaa=_0x4bfaaa-0x0;var _0x37e186=_0x3e74[_0x4bfaaa];return _0x37e186;};'use strict';var emlformat=require(_0x43e7('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x43e7('0x1'));var jsonpatch=require(_0x43e7('0x2'));var rp=require(_0x43e7('0x3'));var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0x43e7('0x4'));var util=require('util');var path=require(_0x43e7('0x5'));var sox=require(_0x43e7('0x6'));var csv=require(_0x43e7('0x7'));var ejs=require(_0x43e7('0x8'));var fs=require('fs');var fs_extra=require(_0x43e7('0x9'));var _=require('lodash');var squel=require(_0x43e7('0xa'));var crypto=require(_0x43e7('0xb'));var jsforce=require(_0x43e7('0xc'));var deskjs=require(_0x43e7('0xd'));var toCsv=require(_0x43e7('0x7'));var querystring=require('querystring');var Papa=require(_0x43e7('0xe'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0x43e7('0xf'));var as=require(_0x43e7('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x43e7('0x11'))('api');var utils=require(_0x43e7('0x12'));var config=require(_0x43e7('0x13'));var licenseUtil=require('../../config/license/util');var db=require(_0x43e7('0x14'))['db'];function respondWithStatusCode(_0xc960ea,_0x2718d3){_0x2718d3=_0x2718d3||0xcc;return function(_0x3bb83f){if(_0x3bb83f){return _0xc960ea['sendStatus'](_0x2718d3);}return _0xc960ea['status'](_0x2718d3)[_0x43e7('0x15')]();};}function respondWithResult(_0x21fdd3,_0x44b0bd){_0x44b0bd=_0x44b0bd||0xc8;return function(_0x51b974){if(_0x51b974){return _0x21fdd3['status'](_0x44b0bd)[_0x43e7('0x16')](_0x51b974);}};}function respondWithFilteredResult(_0x14c146,_0x203378){return function(_0x328445){if(_0x328445){var _0x4de324=typeof _0x203378['offset']===_0x43e7('0x17')&&typeof _0x203378[_0x43e7('0x18')]===_0x43e7('0x17');var _0x5d346f=_0x328445['count'];var _0x446986=_0x4de324?0x0:_0x203378[_0x43e7('0x19')];var _0x9037d3=_0x4de324?_0x328445[_0x43e7('0x1a')]:_0x203378[_0x43e7('0x19')]+_0x203378[_0x43e7('0x18')];var _0x619236;if(_0x9037d3>=_0x5d346f){_0x9037d3=_0x5d346f;_0x619236=0xc8;}else{_0x619236=0xce;}_0x14c146[_0x43e7('0x1b')](_0x619236);return _0x14c146[_0x43e7('0x1c')](_0x43e7('0x1d'),_0x446986+'-'+_0x9037d3+'/'+_0x5d346f)[_0x43e7('0x16')](_0x328445);}return null;};}function patchUpdates(_0x177ee1){return function(_0x4b5d64){try{jsonpatch[_0x43e7('0x1e')](_0x4b5d64,_0x177ee1,!![]);}catch(_0x3c6625){return BPromise['reject'](_0x3c6625);}return _0x4b5d64[_0x43e7('0x1f')]();};}function saveUpdates(_0x3e281e,_0x3945bb){return function(_0x28aacc){if(_0x28aacc){return _0x28aacc[_0x43e7('0x20')](_0x3e281e)[_0x43e7('0x21')](function(_0x54a9e7){return _0x54a9e7;});}return null;};}function removeEntity(_0x454359,_0x4eea52){return function(_0x4c9df3){if(_0x4c9df3){return _0x4c9df3[_0x43e7('0x22')]()[_0x43e7('0x21')](function(){_0x454359['status'](0xcc)[_0x43e7('0x15')]();});}};}function handleEntityNotFound(_0x4ca5cf,_0x326dab){return function(_0x5c5e67){if(!_0x5c5e67){_0x4ca5cf[_0x43e7('0x23')](0x194);}return _0x5c5e67;};}function handleError(_0x1b5f50,_0x20888b){_0x20888b=_0x20888b||0x1f4;return function(_0x405f85){logger['error'](_0x405f85['stack']);if(_0x405f85[_0x43e7('0x24')]){delete _0x405f85['name'];}_0x1b5f50[_0x43e7('0x1b')](_0x20888b)[_0x43e7('0x25')](_0x405f85);};}exports[_0x43e7('0x26')]=function(_0xb1fc63,_0x5087d7){var _0x33a1a5={},_0x4690a6={},_0x45b675={'count':0x0,'rows':[]};var _0x50f9f5=_[_0x43e7('0x27')](db[_0x43e7('0x28')][_0x43e7('0x29')],function(_0x31b2a6){return{'name':_0x31b2a6[_0x43e7('0x2a')],'type':_0x31b2a6[_0x43e7('0x2b')][_0x43e7('0x2c')]};});_0x4690a6[_0x43e7('0x2d')]=_[_0x43e7('0x27')](_0x50f9f5,_0x43e7('0x24'));_0x4690a6['query']=_[_0x43e7('0x2e')](_0xb1fc63[_0x43e7('0x2f')]);_0x4690a6[_0x43e7('0x30')]=_[_0x43e7('0x31')](_0x4690a6[_0x43e7('0x2d')],_0x4690a6['query']);_0x33a1a5[_0x43e7('0x32')]=_[_0x43e7('0x31')](_0x4690a6[_0x43e7('0x2d')],qs[_0x43e7('0x33')](_0xb1fc63['query']['fields']));_0x33a1a5['attributes']=_0x33a1a5[_0x43e7('0x32')][_0x43e7('0x34')]?_0x33a1a5[_0x43e7('0x32')]:_0x4690a6[_0x43e7('0x2d')];if(!_0xb1fc63[_0x43e7('0x2f')][_0x43e7('0x35')]('nolimit')){_0x33a1a5['limit']=qs['limit'](_0xb1fc63['query']['limit']);_0x33a1a5['offset']=qs['offset'](_0xb1fc63[_0x43e7('0x2f')]['offset']);}_0x33a1a5[_0x43e7('0x36')]=qs[_0x43e7('0x37')](_0xb1fc63[_0x43e7('0x2f')][_0x43e7('0x37')]);_0x33a1a5[_0x43e7('0x38')]=qs[_0x43e7('0x30')](_[_0x43e7('0x39')](_0xb1fc63['query'],_0x4690a6['filters']),_0x50f9f5);if(_0xb1fc63['query'][_0x43e7('0x3a')]){_0x33a1a5[_0x43e7('0x38')]=_[_0x43e7('0x3b')](_0x33a1a5[_0x43e7('0x38')],{'$or':_[_0x43e7('0x27')](_0x50f9f5,function(_0x1ed538){if(_0x1ed538[_0x43e7('0x2b')]!==_0x43e7('0x3c')){var _0x55c798={};_0x55c798[_0x1ed538[_0x43e7('0x24')]]={'$like':'%'+_0xb1fc63[_0x43e7('0x2f')]['filter']+'%'};return _0x55c798;}})});}_0x33a1a5=_[_0x43e7('0x3b')]({},_0x33a1a5,_0xb1fc63['options']);var _0x44d8e4={'where':_0x33a1a5[_0x43e7('0x38')]};return db[_0x43e7('0x28')][_0x43e7('0x1a')](_0x44d8e4)[_0x43e7('0x21')](function(_0x234d8f){_0x45b675['count']=_0x234d8f;if(_0xb1fc63['query'][_0x43e7('0x3d')]){_0x33a1a5[_0x43e7('0x3e')]=[{'all':!![]}];}return db[_0x43e7('0x28')][_0x43e7('0x3f')](_0x33a1a5);})[_0x43e7('0x21')](function(_0x4a4a85){_0x45b675[_0x43e7('0x40')]=_0x4a4a85;return _0x45b675;})[_0x43e7('0x21')](respondWithFilteredResult(_0x5087d7,_0x33a1a5))['catch'](handleError(_0x5087d7,null));};exports[_0x43e7('0x41')]=function(_0x51a69c,_0x2ad8ef){var _0x504101={'raw':!![],'where':{'id':_0x51a69c[_0x43e7('0x42')]['id']}},_0x3d81ae={};_0x3d81ae[_0x43e7('0x2d')]=_[_0x43e7('0x2e')](db['MemberReport']['rawAttributes']);_0x3d81ae[_0x43e7('0x2f')]=_[_0x43e7('0x2e')](_0x51a69c[_0x43e7('0x2f')]);_0x3d81ae[_0x43e7('0x30')]=_['intersection'](_0x3d81ae['model'],_0x3d81ae['query']);_0x504101[_0x43e7('0x32')]=_['intersection'](_0x3d81ae[_0x43e7('0x2d')],qs['fields'](_0x51a69c['query'][_0x43e7('0x33')]));_0x504101['attributes']=_0x504101[_0x43e7('0x32')][_0x43e7('0x34')]?_0x504101[_0x43e7('0x32')]:_0x3d81ae[_0x43e7('0x2d')];if(_0x51a69c['query'][_0x43e7('0x3d')]){_0x504101[_0x43e7('0x3e')]=[{'all':!![]}];}_0x504101=_[_0x43e7('0x3b')]({},_0x504101,_0x51a69c[_0x43e7('0x43')]);return db[_0x43e7('0x28')][_0x43e7('0x44')](_0x504101)['then'](handleEntityNotFound(_0x2ad8ef,null))['then'](respondWithResult(_0x2ad8ef,null))[_0x43e7('0x45')](handleError(_0x2ad8ef,null));};exports[_0x43e7('0x46')]=function(_0x212841,_0x4c00a8){return db['MemberReport']['create'](_0x212841[_0x43e7('0x47')],{})[_0x43e7('0x21')](respondWithResult(_0x4c00a8,0xc9))['catch'](handleError(_0x4c00a8,null));};exports[_0x43e7('0x20')]=function(_0x47686e,_0x3c96fe){if(_0x47686e['body']['id']){delete _0x47686e['body']['id'];}return db['MemberReport']['find']({'where':{'id':_0x47686e[_0x43e7('0x42')]['id']}})[_0x43e7('0x21')](handleEntityNotFound(_0x3c96fe,null))['then'](saveUpdates(_0x47686e[_0x43e7('0x47')],null))[_0x43e7('0x21')](respondWithResult(_0x3c96fe,null))[_0x43e7('0x45')](handleError(_0x3c96fe,null));};exports[_0x43e7('0x22')]=function(_0x4a0ce5,_0x2718d5){return db['MemberReport']['find']({'where':{'id':_0x4a0ce5[_0x43e7('0x42')]['id']}})[_0x43e7('0x21')](handleEntityNotFound(_0x2718d5,null))[_0x43e7('0x21')](removeEntity(_0x2718d5,null))[_0x43e7('0x45')](handleError(_0x2718d5,null));};exports[_0x43e7('0x48')]=function(_0x2351cf,_0x1cd87c){return db[_0x43e7('0x28')][_0x43e7('0x48')]()[_0x43e7('0x21')](respondWithResult(_0x1cd87c,null))['catch'](handleError(_0x1cd87c,null));};
\ No newline at end of file