Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / memberReport / memberReport.controller.js
index 1cddd5c..b75f8a5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xad82=['eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','count','offset','limit','set','json','apply','save','update','then','error','stack','name','send','index','map','rawAttributes','fieldName','type','key','model','query','keys','filters','attributes','intersection','fields','length','hasOwnProperty','order','sort','pick','where','merge','VIRTUAL','filter','options','MemberReport','includeAll','include','findAll','rows','catch','params','find','create','body','describe','html-pdf'];(function(_0x51a9b8,_0x48f6e0){var _0xaab44f=function(_0x148eff){while(--_0x148eff){_0x51a9b8['push'](_0x51a9b8['shift']());}};_0xaab44f(++_0x48f6e0);}(_0xad82,0x137));var _0x2ad8=function(_0x36e0e9,_0x138073){_0x36e0e9=_0x36e0e9-0x0;var _0x4591f5=_0xad82[_0x36e0e9];return _0x4591f5;};'use strict';var pdf=require(_0x2ad8('0x0'));var emlformat=require(_0x2ad8('0x1'));var rimraf=require(_0x2ad8('0x2'));var zipdir=require(_0x2ad8('0x3'));var jsonpatch=require(_0x2ad8('0x4'));var rp=require(_0x2ad8('0x5'));var moment=require(_0x2ad8('0x6'));var BPromise=require(_0x2ad8('0x7'));var Mustache=require(_0x2ad8('0x8'));var util=require(_0x2ad8('0x9'));var path=require(_0x2ad8('0xa'));var sox=require(_0x2ad8('0xb'));var csv=require(_0x2ad8('0xc'));var ejs=require(_0x2ad8('0xd'));var fs=require('fs');var _=require(_0x2ad8('0xe'));var squel=require(_0x2ad8('0xf'));var crypto=require(_0x2ad8('0x10'));var jsforce=require(_0x2ad8('0x11'));var deskjs=require(_0x2ad8('0x12'));var toCsv=require(_0x2ad8('0xc'));var querystring=require(_0x2ad8('0x13'));var Papa=require('papaparse');var Redis=require(_0x2ad8('0x14'));var authService=require('../../components/auth/service');var qs=require(_0x2ad8('0x15'));var as=require(_0x2ad8('0x16'));var hardwareService=require(_0x2ad8('0x17'));var logger=require('../../config/logger')(_0x2ad8('0x18'));var utils=require(_0x2ad8('0x19'));var config=require(_0x2ad8('0x1a'));var db=require(_0x2ad8('0x1b'))['db'];function respondWithStatusCode(_0x55a0e7,_0x597e09){_0x597e09=_0x597e09||0xcc;return function(_0x34ffa2){if(_0x34ffa2){return _0x55a0e7[_0x2ad8('0x1c')](_0x597e09);}return _0x55a0e7[_0x2ad8('0x1d')](_0x597e09)[_0x2ad8('0x1e')]();};}function respondWithResult(_0x1cc4cf,_0x2a7a40){_0x2a7a40=_0x2a7a40||0xc8;return function(_0x5c6d96){if(_0x5c6d96){return _0x1cc4cf['status'](_0x2a7a40)['json'](_0x5c6d96);}};}function respondWithFilteredResult(_0xe30317,_0xd21b88){return function(_0x4fac81){if(_0x4fac81){var _0x31e303=_0x4fac81[_0x2ad8('0x1f')],_0x2dd7d6=_0xd21b88[_0x2ad8('0x20')],_0x285fd2=_0xd21b88[_0x2ad8('0x20')]+_0xd21b88[_0x2ad8('0x21')],_0x56315c;if(_0x285fd2>=_0x31e303){_0x285fd2=_0x31e303;_0x56315c=0xc8;}else{_0x56315c=0xce;}_0xe30317[_0x2ad8('0x1d')](_0x56315c);return _0xe30317[_0x2ad8('0x22')]('Content-Range',_0x2dd7d6+'-'+_0x285fd2+'/'+_0x31e303)[_0x2ad8('0x23')](_0x4fac81);}return null;};}function patchUpdates(_0x17164d){return function(_0x47e87c){try{jsonpatch[_0x2ad8('0x24')](_0x47e87c,_0x17164d,!![]);}catch(_0x165361){return BPromise['reject'](_0x165361);}return _0x47e87c[_0x2ad8('0x25')]();};}function saveUpdates(_0x2e4aa8,_0x31d158){return function(_0x219006){if(_0x219006){return _0x219006[_0x2ad8('0x26')](_0x2e4aa8)[_0x2ad8('0x27')](function(_0xdeeafc){return _0xdeeafc;});}return null;};}function removeEntity(_0x538b44,_0xc381f3){return function(_0xcbe673){if(_0xcbe673){return _0xcbe673['destroy']()[_0x2ad8('0x27')](function(){_0x538b44[_0x2ad8('0x1d')](0xcc)[_0x2ad8('0x1e')]();});}};}function handleEntityNotFound(_0x32bf5a,_0x5b2787){return function(_0x32f5ec){if(!_0x32f5ec){_0x32bf5a[_0x2ad8('0x1c')](0x194);}return _0x32f5ec;};}function handleError(_0x4dd9ce,_0x565964){_0x565964=_0x565964||0x1f4;return function(_0x3df99f){logger[_0x2ad8('0x28')](_0x3df99f[_0x2ad8('0x29')]);if(_0x3df99f['name']){delete _0x3df99f[_0x2ad8('0x2a')];}_0x4dd9ce[_0x2ad8('0x1d')](_0x565964)[_0x2ad8('0x2b')](_0x3df99f);};}exports[_0x2ad8('0x2c')]=function(_0x460d24,_0x121ab1){var _0x1c628b={},_0x18c80a={},_0x27db81={'count':0x0,'rows':[]};var _0x3aecb5=_[_0x2ad8('0x2d')](db['MemberReport'][_0x2ad8('0x2e')],function(_0x5342e5){return{'name':_0x5342e5[_0x2ad8('0x2f')],'type':_0x5342e5[_0x2ad8('0x30')][_0x2ad8('0x31')]};});_0x18c80a[_0x2ad8('0x32')]=_[_0x2ad8('0x2d')](_0x3aecb5,_0x2ad8('0x2a'));_0x18c80a[_0x2ad8('0x33')]=_[_0x2ad8('0x34')](_0x460d24[_0x2ad8('0x33')]);_0x18c80a[_0x2ad8('0x35')]=_['intersection'](_0x18c80a[_0x2ad8('0x32')],_0x18c80a[_0x2ad8('0x33')]);_0x1c628b[_0x2ad8('0x36')]=_[_0x2ad8('0x37')](_0x18c80a[_0x2ad8('0x32')],qs['fields'](_0x460d24[_0x2ad8('0x33')][_0x2ad8('0x38')]));_0x1c628b[_0x2ad8('0x36')]=_0x1c628b[_0x2ad8('0x36')][_0x2ad8('0x39')]?_0x1c628b['attributes']:_0x18c80a[_0x2ad8('0x32')];if(!_0x460d24[_0x2ad8('0x33')][_0x2ad8('0x3a')]('nolimit')){_0x1c628b['limit']=qs[_0x2ad8('0x21')](_0x460d24[_0x2ad8('0x33')][_0x2ad8('0x21')]);_0x1c628b[_0x2ad8('0x20')]=qs[_0x2ad8('0x20')](_0x460d24[_0x2ad8('0x33')][_0x2ad8('0x20')]);}_0x1c628b[_0x2ad8('0x3b')]=qs['sort'](_0x460d24['query'][_0x2ad8('0x3c')]);_0x1c628b['where']=qs['filters'](_[_0x2ad8('0x3d')](_0x460d24[_0x2ad8('0x33')],_0x18c80a[_0x2ad8('0x35')]),_0x3aecb5);if(_0x460d24[_0x2ad8('0x33')]['filter']){_0x1c628b[_0x2ad8('0x3e')]=_[_0x2ad8('0x3f')](_0x1c628b[_0x2ad8('0x3e')],{'$or':_['map'](_0x3aecb5,function(_0x3fcaaa){if(_0x3fcaaa[_0x2ad8('0x30')]!==_0x2ad8('0x40')){var _0x334efc={};_0x334efc[_0x3fcaaa[_0x2ad8('0x2a')]]={'$like':'%'+_0x460d24[_0x2ad8('0x33')][_0x2ad8('0x41')]+'%'};return _0x334efc;}})});}_0x1c628b=_[_0x2ad8('0x3f')]({},_0x1c628b,_0x460d24[_0x2ad8('0x42')]);var _0xec1233={'where':_0x1c628b[_0x2ad8('0x3e')]};return db[_0x2ad8('0x43')][_0x2ad8('0x1f')](_0xec1233)['then'](function(_0x2f27c3){_0x27db81[_0x2ad8('0x1f')]=_0x2f27c3;if(_0x460d24['query'][_0x2ad8('0x44')]){_0x1c628b[_0x2ad8('0x45')]=[{'all':!![]}];}return db[_0x2ad8('0x43')][_0x2ad8('0x46')](_0x1c628b);})['then'](function(_0x1f41d6){_0x27db81[_0x2ad8('0x47')]=_0x1f41d6;return _0x27db81;})[_0x2ad8('0x27')](respondWithFilteredResult(_0x121ab1,_0x1c628b))[_0x2ad8('0x48')](handleError(_0x121ab1,null));};exports['show']=function(_0x35a0a7,_0x40eb88){var _0x4ad664={'raw':!![],'where':{'id':_0x35a0a7[_0x2ad8('0x49')]['id']}},_0x149333={};_0x149333['model']=_[_0x2ad8('0x34')](db[_0x2ad8('0x43')][_0x2ad8('0x2e')]);_0x149333[_0x2ad8('0x33')]=_[_0x2ad8('0x34')](_0x35a0a7[_0x2ad8('0x33')]);_0x149333['filters']=_[_0x2ad8('0x37')](_0x149333[_0x2ad8('0x32')],_0x149333[_0x2ad8('0x33')]);_0x4ad664[_0x2ad8('0x36')]=_[_0x2ad8('0x37')](_0x149333[_0x2ad8('0x32')],qs['fields'](_0x35a0a7['query']['fields']));_0x4ad664[_0x2ad8('0x36')]=_0x4ad664[_0x2ad8('0x36')][_0x2ad8('0x39')]?_0x4ad664['attributes']:_0x149333[_0x2ad8('0x32')];if(_0x35a0a7[_0x2ad8('0x33')][_0x2ad8('0x44')]){_0x4ad664[_0x2ad8('0x45')]=[{'all':!![]}];}_0x4ad664=_[_0x2ad8('0x3f')]({},_0x4ad664,_0x35a0a7[_0x2ad8('0x42')]);return db[_0x2ad8('0x43')][_0x2ad8('0x4a')](_0x4ad664)[_0x2ad8('0x27')](handleEntityNotFound(_0x40eb88,null))[_0x2ad8('0x27')](respondWithResult(_0x40eb88,null))['catch'](handleError(_0x40eb88,null));};exports[_0x2ad8('0x4b')]=function(_0x177b47,_0x9a0e51){return db['MemberReport']['create'](_0x177b47[_0x2ad8('0x4c')],{})['then'](respondWithResult(_0x9a0e51,0xc9))[_0x2ad8('0x48')](handleError(_0x9a0e51,null));};exports[_0x2ad8('0x26')]=function(_0x248f5c,_0x5f59c9){if(_0x248f5c['body']['id']){delete _0x248f5c['body']['id'];}return db[_0x2ad8('0x43')][_0x2ad8('0x4a')]({'where':{'id':_0x248f5c['params']['id']}})['then'](handleEntityNotFound(_0x5f59c9,null))['then'](saveUpdates(_0x248f5c[_0x2ad8('0x4c')],null))[_0x2ad8('0x27')](respondWithResult(_0x5f59c9,null))[_0x2ad8('0x48')](handleError(_0x5f59c9,null));};exports['destroy']=function(_0x2bff81,_0x43daf3){return db[_0x2ad8('0x43')]['find']({'where':{'id':_0x2bff81[_0x2ad8('0x49')]['id']}})[_0x2ad8('0x27')](handleEntityNotFound(_0x43daf3,null))[_0x2ad8('0x27')](removeEntity(_0x43daf3,null))[_0x2ad8('0x48')](handleError(_0x43daf3,null));};exports['describe']=function(_0x18e557,_0x17e199){return db[_0x2ad8('0x43')][_0x2ad8('0x4d')]()[_0x2ad8('0x27')](respondWithResult(_0x17e199,null))[_0x2ad8('0x48')](handleError(_0x17e199,null));};
\ No newline at end of file
+var _0xedd9=['keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','catch','params','find','create','body','update','destroy','describe','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','sox','to-csv','ejs','fs-extra','squel','jsforce','desk.js','querystring','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','undefined','limit','count','set','apply','then','end','error','stack','send','index','map','MemberReport','rawAttributes','fieldName','type','key','model','name','query'];(function(_0x47b58b,_0x41a189){var _0x46bebe=function(_0x22bbfa){while(--_0x22bbfa){_0x47b58b['push'](_0x47b58b['shift']());}};_0x46bebe(++_0x41a189);}(_0xedd9,0xfc));var _0x9edd=function(_0x152bf1,_0x21aef3){_0x152bf1=_0x152bf1-0x0;var _0x33d955=_0xedd9[_0x152bf1];return _0x33d955;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x9edd('0x0'));var zipdir=require(_0x9edd('0x1'));var jsonpatch=require(_0x9edd('0x2'));var rp=require(_0x9edd('0x3'));var moment=require(_0x9edd('0x4'));var BPromise=require(_0x9edd('0x5'));var Mustache=require(_0x9edd('0x6'));var util=require(_0x9edd('0x7'));var path=require('path');var sox=require(_0x9edd('0x8'));var csv=require(_0x9edd('0x9'));var ejs=require(_0x9edd('0xa'));var fs=require('fs');var fs_extra=require(_0x9edd('0xb'));var _=require('lodash');var squel=require(_0x9edd('0xc'));var crypto=require('crypto');var jsforce=require(_0x9edd('0xd'));var deskjs=require(_0x9edd('0xe'));var toCsv=require(_0x9edd('0x9'));var querystring=require(_0x9edd('0xf'));var Papa=require('papaparse');var Redis=require(_0x9edd('0x10'));var authService=require('../../components/auth/service');var qs=require(_0x9edd('0x11'));var as=require(_0x9edd('0x12'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x9edd('0x13'))(_0x9edd('0x14'));var utils=require('../../config/utils');var config=require(_0x9edd('0x15'));var licenseUtil=require(_0x9edd('0x16'));var db=require(_0x9edd('0x17'))['db'];function respondWithStatusCode(_0xfd544a,_0x287ddd){_0x287ddd=_0x287ddd||0xcc;return function(_0x3a7b84){if(_0x3a7b84){return _0xfd544a[_0x9edd('0x18')](_0x287ddd);}return _0xfd544a[_0x9edd('0x19')](_0x287ddd)['end']();};}function respondWithResult(_0x176bfa,_0x44fc7c){_0x44fc7c=_0x44fc7c||0xc8;return function(_0x891832){if(_0x891832){return _0x176bfa[_0x9edd('0x19')](_0x44fc7c)[_0x9edd('0x1a')](_0x891832);}};}function respondWithFilteredResult(_0x338f3c,_0x1042aa){return function(_0x75a4ab){if(_0x75a4ab){var _0x4ea60f=typeof _0x1042aa[_0x9edd('0x1b')]===_0x9edd('0x1c')&&typeof _0x1042aa[_0x9edd('0x1d')]==='undefined';var _0x1b54c0=_0x75a4ab[_0x9edd('0x1e')];var _0x40ba32=_0x4ea60f?0x0:_0x1042aa['offset'];var _0x43dc70=_0x4ea60f?_0x75a4ab['count']:_0x1042aa[_0x9edd('0x1b')]+_0x1042aa[_0x9edd('0x1d')];var _0x4bdb88;if(_0x43dc70>=_0x1b54c0){_0x43dc70=_0x1b54c0;_0x4bdb88=0xc8;}else{_0x4bdb88=0xce;}_0x338f3c['status'](_0x4bdb88);return _0x338f3c[_0x9edd('0x1f')]('Content-Range',_0x40ba32+'-'+_0x43dc70+'/'+_0x1b54c0)[_0x9edd('0x1a')](_0x75a4ab);}return null;};}function patchUpdates(_0x54a03f){return function(_0x535f37){try{jsonpatch[_0x9edd('0x20')](_0x535f37,_0x54a03f,!![]);}catch(_0x1c46a8){return BPromise['reject'](_0x1c46a8);}return _0x535f37['save']();};}function saveUpdates(_0x341d67,_0x186186){return function(_0x477878){if(_0x477878){return _0x477878['update'](_0x341d67)[_0x9edd('0x21')](function(_0x1dca43){return _0x1dca43;});}return null;};}function removeEntity(_0x44a6c1,_0x2ca65f){return function(_0x339a0d){if(_0x339a0d){return _0x339a0d['destroy']()[_0x9edd('0x21')](function(){_0x44a6c1[_0x9edd('0x19')](0xcc)[_0x9edd('0x22')]();});}};}function handleEntityNotFound(_0x2f9f86,_0x310a4d){return function(_0x4d507f){if(!_0x4d507f){_0x2f9f86['sendStatus'](0x194);}return _0x4d507f;};}function handleError(_0x3276ee,_0xfeca7b){_0xfeca7b=_0xfeca7b||0x1f4;return function(_0x8d67aa){logger[_0x9edd('0x23')](_0x8d67aa[_0x9edd('0x24')]);if(_0x8d67aa['name']){delete _0x8d67aa['name'];}_0x3276ee[_0x9edd('0x19')](_0xfeca7b)[_0x9edd('0x25')](_0x8d67aa);};}exports[_0x9edd('0x26')]=function(_0x52746a,_0x238b22){var _0x28cfae={},_0x2ae8dd={},_0x41af53={'count':0x0,'rows':[]};var _0x5eccfb=_[_0x9edd('0x27')](db[_0x9edd('0x28')][_0x9edd('0x29')],function(_0x12c1bc){return{'name':_0x12c1bc[_0x9edd('0x2a')],'type':_0x12c1bc[_0x9edd('0x2b')][_0x9edd('0x2c')]};});_0x2ae8dd[_0x9edd('0x2d')]=_[_0x9edd('0x27')](_0x5eccfb,_0x9edd('0x2e'));_0x2ae8dd[_0x9edd('0x2f')]=_[_0x9edd('0x30')](_0x52746a[_0x9edd('0x2f')]);_0x2ae8dd[_0x9edd('0x31')]=_[_0x9edd('0x32')](_0x2ae8dd['model'],_0x2ae8dd[_0x9edd('0x2f')]);_0x28cfae[_0x9edd('0x33')]=_[_0x9edd('0x32')](_0x2ae8dd['model'],qs[_0x9edd('0x34')](_0x52746a[_0x9edd('0x2f')][_0x9edd('0x34')]));_0x28cfae[_0x9edd('0x33')]=_0x28cfae[_0x9edd('0x33')][_0x9edd('0x35')]?_0x28cfae[_0x9edd('0x33')]:_0x2ae8dd[_0x9edd('0x2d')];if(!_0x52746a[_0x9edd('0x2f')][_0x9edd('0x36')](_0x9edd('0x37'))){_0x28cfae[_0x9edd('0x1d')]=qs[_0x9edd('0x1d')](_0x52746a[_0x9edd('0x2f')]['limit']);_0x28cfae[_0x9edd('0x1b')]=qs['offset'](_0x52746a[_0x9edd('0x2f')][_0x9edd('0x1b')]);}_0x28cfae[_0x9edd('0x38')]=qs[_0x9edd('0x39')](_0x52746a[_0x9edd('0x2f')]['sort']);_0x28cfae[_0x9edd('0x3a')]=qs[_0x9edd('0x31')](_[_0x9edd('0x3b')](_0x52746a[_0x9edd('0x2f')],_0x2ae8dd[_0x9edd('0x31')]),_0x5eccfb);if(_0x52746a[_0x9edd('0x2f')][_0x9edd('0x3c')]){_0x28cfae[_0x9edd('0x3a')]=_[_0x9edd('0x3d')](_0x28cfae[_0x9edd('0x3a')],{'$or':_['map'](_0x5eccfb,function(_0x231604){if(_0x231604['type']!==_0x9edd('0x3e')){var _0x5658d6={};_0x5658d6[_0x231604[_0x9edd('0x2e')]]={'$like':'%'+_0x52746a[_0x9edd('0x2f')][_0x9edd('0x3c')]+'%'};return _0x5658d6;}})});}_0x28cfae=_['merge']({},_0x28cfae,_0x52746a[_0x9edd('0x3f')]);var _0xcbd0ef={'where':_0x28cfae[_0x9edd('0x3a')]};return db['MemberReport'][_0x9edd('0x1e')](_0xcbd0ef)['then'](function(_0x1fc4fb){_0x41af53[_0x9edd('0x1e')]=_0x1fc4fb;if(_0x52746a['query'][_0x9edd('0x40')]){_0x28cfae[_0x9edd('0x41')]=[{'all':!![]}];}return db[_0x9edd('0x28')][_0x9edd('0x42')](_0x28cfae);})['then'](function(_0x449f01){_0x41af53['rows']=_0x449f01;return _0x41af53;})[_0x9edd('0x21')](respondWithFilteredResult(_0x238b22,_0x28cfae))[_0x9edd('0x43')](handleError(_0x238b22,null));};exports['show']=function(_0x318757,_0x49a128){var _0x548299={'raw':!![],'where':{'id':_0x318757[_0x9edd('0x44')]['id']}},_0x369b69={};_0x369b69[_0x9edd('0x2d')]=_[_0x9edd('0x30')](db[_0x9edd('0x28')][_0x9edd('0x29')]);_0x369b69[_0x9edd('0x2f')]=_[_0x9edd('0x30')](_0x318757[_0x9edd('0x2f')]);_0x369b69[_0x9edd('0x31')]=_[_0x9edd('0x32')](_0x369b69[_0x9edd('0x2d')],_0x369b69[_0x9edd('0x2f')]);_0x548299[_0x9edd('0x33')]=_[_0x9edd('0x32')](_0x369b69['model'],qs[_0x9edd('0x34')](_0x318757[_0x9edd('0x2f')][_0x9edd('0x34')]));_0x548299[_0x9edd('0x33')]=_0x548299[_0x9edd('0x33')][_0x9edd('0x35')]?_0x548299[_0x9edd('0x33')]:_0x369b69['model'];if(_0x318757['query']['includeAll']){_0x548299[_0x9edd('0x41')]=[{'all':!![]}];}_0x548299=_['merge']({},_0x548299,_0x318757[_0x9edd('0x3f')]);return db[_0x9edd('0x28')][_0x9edd('0x45')](_0x548299)[_0x9edd('0x21')](handleEntityNotFound(_0x49a128,null))[_0x9edd('0x21')](respondWithResult(_0x49a128,null))['catch'](handleError(_0x49a128,null));};exports[_0x9edd('0x46')]=function(_0x35e63c,_0x40e33d){return db['MemberReport'][_0x9edd('0x46')](_0x35e63c[_0x9edd('0x47')],{})[_0x9edd('0x21')](respondWithResult(_0x40e33d,0xc9))[_0x9edd('0x43')](handleError(_0x40e33d,null));};exports[_0x9edd('0x48')]=function(_0x35bdec,_0x4d4f33){if(_0x35bdec[_0x9edd('0x47')]['id']){delete _0x35bdec[_0x9edd('0x47')]['id'];}return db['MemberReport'][_0x9edd('0x45')]({'where':{'id':_0x35bdec[_0x9edd('0x44')]['id']}})['then'](handleEntityNotFound(_0x4d4f33,null))[_0x9edd('0x21')](saveUpdates(_0x35bdec[_0x9edd('0x47')],null))[_0x9edd('0x21')](respondWithResult(_0x4d4f33,null))['catch'](handleError(_0x4d4f33,null));};exports[_0x9edd('0x49')]=function(_0x151157,_0x317a60){return db[_0x9edd('0x28')]['find']({'where':{'id':_0x151157[_0x9edd('0x44')]['id']}})[_0x9edd('0x21')](handleEntityNotFound(_0x317a60,null))[_0x9edd('0x21')](removeEntity(_0x317a60,null))['catch'](handleError(_0x317a60,null));};exports[_0x9edd('0x4a')]=function(_0x21f6ce,_0x57db43){return db[_0x9edd('0x28')]['describe']()[_0x9edd('0x21')](respondWithResult(_0x57db43,null))[_0x9edd('0x43')](handleError(_0x57db43,null));};
\ No newline at end of file