Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / mailTransferReport / mailTransferReport.controller.js
index fb29a32..96025d3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcb3f=['html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../mysqldb','sendStatus','status','end','count','offset','limit','set','Content-Range','apply','reject','save','update','destroy','then','send','index','map','fieldName','type','key','model','name','query','filters','intersection','attributes','fields','length','hasOwnProperty','sort','where','pick','filter','merge','VIRTUAL','options','MailTransferReport','includeAll','include','findAll','rows','catch','show','params','rawAttributes','keys','create','body','find'];(function(_0x5806d3,_0x574986){var _0x57eec3=function(_0x34829c){while(--_0x34829c){_0x5806d3['push'](_0x5806d3['shift']());}};_0x57eec3(++_0x574986);}(_0xcb3f,0xde));var _0xfcb3=function(_0x1d1779,_0x284147){_0x1d1779=_0x1d1779-0x0;var _0x2377e9=_0xcb3f[_0x1d1779];return _0x2377e9;};'use strict';var pdf=require(_0xfcb3('0x0'));var emlformat=require(_0xfcb3('0x1'));var rimraf=require(_0xfcb3('0x2'));var zipdir=require(_0xfcb3('0x3'));var jsonpatch=require(_0xfcb3('0x4'));var rp=require(_0xfcb3('0x5'));var moment=require('moment');var BPromise=require(_0xfcb3('0x6'));var Mustache=require(_0xfcb3('0x7'));var util=require(_0xfcb3('0x8'));var path=require(_0xfcb3('0x9'));var sox=require(_0xfcb3('0xa'));var csv=require(_0xfcb3('0xb'));var ejs=require(_0xfcb3('0xc'));var fs=require('fs');var _=require(_0xfcb3('0xd'));var squel=require(_0xfcb3('0xe'));var crypto=require(_0xfcb3('0xf'));var jsforce=require(_0xfcb3('0x10'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0xfcb3('0x11'));var Papa=require(_0xfcb3('0x12'));var Redis=require(_0xfcb3('0x13'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xfcb3('0x14'));var hardwareService=require(_0xfcb3('0x15'));var logger=require(_0xfcb3('0x16'))('api');var utils=require(_0xfcb3('0x17'));var config=require('../../config/environment');var db=require(_0xfcb3('0x18'))['db'];function respondWithStatusCode(_0x429b43,_0x49c20d){_0x49c20d=_0x49c20d||0xcc;return function(_0x28823e){if(_0x28823e){return _0x429b43[_0xfcb3('0x19')](_0x49c20d);}return _0x429b43[_0xfcb3('0x1a')](_0x49c20d)[_0xfcb3('0x1b')]();};}function respondWithResult(_0x4a8bc1,_0x50faf2){_0x50faf2=_0x50faf2||0xc8;return function(_0x2a8da8){if(_0x2a8da8){return _0x4a8bc1['status'](_0x50faf2)['json'](_0x2a8da8);}};}function respondWithFilteredResult(_0x3158c5,_0x1b07ad){return function(_0x2e34b9){if(_0x2e34b9){var _0x47a11e=_0x2e34b9[_0xfcb3('0x1c')],_0x33292e=_0x1b07ad[_0xfcb3('0x1d')],_0x517c35=_0x1b07ad[_0xfcb3('0x1d')]+_0x1b07ad[_0xfcb3('0x1e')],_0x58eeee;if(_0x517c35>=_0x47a11e){_0x517c35=_0x47a11e;_0x58eeee=0xc8;}else{_0x58eeee=0xce;}_0x3158c5[_0xfcb3('0x1a')](_0x58eeee);return _0x3158c5[_0xfcb3('0x1f')](_0xfcb3('0x20'),_0x33292e+'-'+_0x517c35+'/'+_0x47a11e)['json'](_0x2e34b9);}return null;};}function patchUpdates(_0x5a3175){return function(_0x217090){try{jsonpatch[_0xfcb3('0x21')](_0x217090,_0x5a3175,!![]);}catch(_0x38407c){return BPromise[_0xfcb3('0x22')](_0x38407c);}return _0x217090[_0xfcb3('0x23')]();};}function saveUpdates(_0x397946,_0x18a52c){return function(_0x2db85e){if(_0x2db85e){return _0x2db85e[_0xfcb3('0x24')](_0x397946)['then'](function(_0x5be714){return _0x5be714;});}return null;};}function removeEntity(_0x4869bb,_0x499231){return function(_0x488196){if(_0x488196){return _0x488196[_0xfcb3('0x25')]()[_0xfcb3('0x26')](function(){_0x4869bb[_0xfcb3('0x1a')](0xcc)[_0xfcb3('0x1b')]();});}};}function handleEntityNotFound(_0x38dbf6,_0x24b89b){return function(_0x3ac0a3){if(!_0x3ac0a3){_0x38dbf6['sendStatus'](0x194);}return _0x3ac0a3;};}function handleError(_0x6a5d7,_0x21bda7){_0x21bda7=_0x21bda7||0x1f4;return function(_0x4c579d){logger['error'](_0x4c579d['stack']);if(_0x4c579d['name']){delete _0x4c579d['name'];}_0x6a5d7['status'](_0x21bda7)[_0xfcb3('0x27')](_0x4c579d);};}exports[_0xfcb3('0x28')]=function(_0x7af65d,_0x51a281){var _0x453838={},_0x132feb={},_0x27e690={'count':0x0,'rows':[]};var _0x491bfe=_[_0xfcb3('0x29')](db['MailTransferReport']['rawAttributes'],function(_0x23f74e){return{'name':_0x23f74e[_0xfcb3('0x2a')],'type':_0x23f74e[_0xfcb3('0x2b')][_0xfcb3('0x2c')]};});_0x132feb[_0xfcb3('0x2d')]=_['map'](_0x491bfe,_0xfcb3('0x2e'));_0x132feb['query']=_['keys'](_0x7af65d[_0xfcb3('0x2f')]);_0x132feb[_0xfcb3('0x30')]=_[_0xfcb3('0x31')](_0x132feb[_0xfcb3('0x2d')],_0x132feb[_0xfcb3('0x2f')]);_0x453838[_0xfcb3('0x32')]=_['intersection'](_0x132feb['model'],qs[_0xfcb3('0x33')](_0x7af65d[_0xfcb3('0x2f')][_0xfcb3('0x33')]));_0x453838[_0xfcb3('0x32')]=_0x453838[_0xfcb3('0x32')][_0xfcb3('0x34')]?_0x453838[_0xfcb3('0x32')]:_0x132feb[_0xfcb3('0x2d')];if(!_0x7af65d[_0xfcb3('0x2f')][_0xfcb3('0x35')]('nolimit')){_0x453838[_0xfcb3('0x1e')]=qs[_0xfcb3('0x1e')](_0x7af65d[_0xfcb3('0x2f')]['limit']);_0x453838[_0xfcb3('0x1d')]=qs['offset'](_0x7af65d[_0xfcb3('0x2f')][_0xfcb3('0x1d')]);}_0x453838['order']=qs[_0xfcb3('0x36')](_0x7af65d[_0xfcb3('0x2f')][_0xfcb3('0x36')]);_0x453838[_0xfcb3('0x37')]=qs['filters'](_[_0xfcb3('0x38')](_0x7af65d[_0xfcb3('0x2f')],_0x132feb[_0xfcb3('0x30')]),_0x491bfe);if(_0x7af65d[_0xfcb3('0x2f')][_0xfcb3('0x39')]){_0x453838[_0xfcb3('0x37')]=_[_0xfcb3('0x3a')](_0x453838[_0xfcb3('0x37')],{'$or':_[_0xfcb3('0x29')](_0x491bfe,function(_0x4d9b73){if(_0x4d9b73[_0xfcb3('0x2b')]!==_0xfcb3('0x3b')){var _0x53d808={};_0x53d808[_0x4d9b73[_0xfcb3('0x2e')]]={'$like':'%'+_0x7af65d[_0xfcb3('0x2f')][_0xfcb3('0x39')]+'%'};return _0x53d808;}})});}_0x453838=_[_0xfcb3('0x3a')]({},_0x453838,_0x7af65d[_0xfcb3('0x3c')]);var _0x496b88={'where':_0x453838[_0xfcb3('0x37')]};return db[_0xfcb3('0x3d')][_0xfcb3('0x1c')](_0x496b88)[_0xfcb3('0x26')](function(_0x1be2ed){_0x27e690[_0xfcb3('0x1c')]=_0x1be2ed;if(_0x7af65d[_0xfcb3('0x2f')][_0xfcb3('0x3e')]){_0x453838[_0xfcb3('0x3f')]=[{'all':!![]}];}return db[_0xfcb3('0x3d')][_0xfcb3('0x40')](_0x453838);})[_0xfcb3('0x26')](function(_0x6e9553){_0x27e690[_0xfcb3('0x41')]=_0x6e9553;return _0x27e690;})[_0xfcb3('0x26')](respondWithFilteredResult(_0x51a281,_0x453838))[_0xfcb3('0x42')](handleError(_0x51a281,null));};exports[_0xfcb3('0x43')]=function(_0x20613a,_0x5266e6){var _0x4f0b14={'raw':!![],'where':{'id':_0x20613a[_0xfcb3('0x44')]['id']}},_0x21ecf3={};_0x21ecf3[_0xfcb3('0x2d')]=_['keys'](db['MailTransferReport'][_0xfcb3('0x45')]);_0x21ecf3[_0xfcb3('0x2f')]=_[_0xfcb3('0x46')](_0x20613a[_0xfcb3('0x2f')]);_0x21ecf3[_0xfcb3('0x30')]=_[_0xfcb3('0x31')](_0x21ecf3['model'],_0x21ecf3[_0xfcb3('0x2f')]);_0x4f0b14[_0xfcb3('0x32')]=_[_0xfcb3('0x31')](_0x21ecf3[_0xfcb3('0x2d')],qs[_0xfcb3('0x33')](_0x20613a['query']['fields']));_0x4f0b14[_0xfcb3('0x32')]=_0x4f0b14['attributes'][_0xfcb3('0x34')]?_0x4f0b14[_0xfcb3('0x32')]:_0x21ecf3['model'];if(_0x20613a[_0xfcb3('0x2f')][_0xfcb3('0x3e')]){_0x4f0b14[_0xfcb3('0x3f')]=[{'all':!![]}];}_0x4f0b14=_[_0xfcb3('0x3a')]({},_0x4f0b14,_0x20613a[_0xfcb3('0x3c')]);return db['MailTransferReport']['find'](_0x4f0b14)[_0xfcb3('0x26')](handleEntityNotFound(_0x5266e6,null))[_0xfcb3('0x26')](respondWithResult(_0x5266e6,null))[_0xfcb3('0x42')](handleError(_0x5266e6,null));};exports[_0xfcb3('0x47')]=function(_0x2fd804,_0x5a2cc0){return db[_0xfcb3('0x3d')]['create'](_0x2fd804[_0xfcb3('0x48')],{})['then'](respondWithResult(_0x5a2cc0,0xc9))['catch'](handleError(_0x5a2cc0,null));};exports['update']=function(_0x29b1bc,_0x596872){if(_0x29b1bc[_0xfcb3('0x48')]['id']){delete _0x29b1bc['body']['id'];}return db['MailTransferReport'][_0xfcb3('0x49')]({'where':{'id':_0x29b1bc['params']['id']}})[_0xfcb3('0x26')](handleEntityNotFound(_0x596872,null))[_0xfcb3('0x26')](saveUpdates(_0x29b1bc[_0xfcb3('0x48')],null))[_0xfcb3('0x26')](respondWithResult(_0x596872,null))[_0xfcb3('0x42')](handleError(_0x596872,null));};exports[_0xfcb3('0x25')]=function(_0x12316f,_0x29f094){return db[_0xfcb3('0x3d')][_0xfcb3('0x49')]({'where':{'id':_0x12316f[_0xfcb3('0x44')]['id']}})[_0xfcb3('0x26')](handleEntityNotFound(_0x29f094,null))[_0xfcb3('0x26')](removeEntity(_0x29f094,null))[_0xfcb3('0x42')](handleError(_0x29f094,null));};exports['describe']=function(_0x3062a1,_0x16cedf){return db[_0xfcb3('0x3d')]['describe']()[_0xfcb3('0x26')](respondWithResult(_0x16cedf,null))[_0xfcb3('0x42')](handleError(_0x16cedf,null));};
\ No newline at end of file
+var _0x5265=['../../config/utils','../../mysqldb','status','end','json','count','offset','limit','Content-Range','reject','save','then','destroy','sendStatus','error','stack','name','send','index','map','rawAttributes','type','key','model','query','keys','filters','intersection','attributes','fields','length','order','sort','where','pick','merge','VIRTUAL','filter','includeAll','findAll','rows','show','params','MailTransferReport','include','options','catch','create','body','find','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api'];(function(_0x2adc2c,_0x169d86){var _0x91ae36=function(_0x583180){while(--_0x583180){_0x2adc2c['push'](_0x2adc2c['shift']());}};_0x91ae36(++_0x169d86);}(_0x5265,0x163));var _0x5526=function(_0x4e96e8,_0x59af01){_0x4e96e8=_0x4e96e8-0x0;var _0x51ac1a=_0x5265[_0x4e96e8];return _0x51ac1a;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x5526('0x0'));var rimraf=require(_0x5526('0x1'));var zipdir=require(_0x5526('0x2'));var jsonpatch=require(_0x5526('0x3'));var rp=require(_0x5526('0x4'));var moment=require(_0x5526('0x5'));var BPromise=require(_0x5526('0x6'));var Mustache=require(_0x5526('0x7'));var util=require(_0x5526('0x8'));var path=require(_0x5526('0x9'));var sox=require(_0x5526('0xa'));var csv=require(_0x5526('0xb'));var ejs=require(_0x5526('0xc'));var fs=require('fs');var _=require(_0x5526('0xd'));var squel=require(_0x5526('0xe'));var crypto=require(_0x5526('0xf'));var jsforce=require('jsforce');var deskjs=require(_0x5526('0x10'));var toCsv=require(_0x5526('0xb'));var querystring=require(_0x5526('0x11'));var Papa=require(_0x5526('0x12'));var Redis=require('ioredis');var authService=require(_0x5526('0x13'));var qs=require(_0x5526('0x14'));var as=require(_0x5526('0x15'));var hardwareService=require(_0x5526('0x16'));var logger=require(_0x5526('0x17'))(_0x5526('0x18'));var utils=require(_0x5526('0x19'));var config=require('../../config/environment');var db=require(_0x5526('0x1a'))['db'];function respondWithStatusCode(_0x246fb2,_0x332d85){_0x332d85=_0x332d85||0xcc;return function(_0x5d5b4c){if(_0x5d5b4c){return _0x246fb2['sendStatus'](_0x332d85);}return _0x246fb2[_0x5526('0x1b')](_0x332d85)[_0x5526('0x1c')]();};}function respondWithResult(_0x51083b,_0xb8afca){_0xb8afca=_0xb8afca||0xc8;return function(_0x54d268){if(_0x54d268){return _0x51083b[_0x5526('0x1b')](_0xb8afca)[_0x5526('0x1d')](_0x54d268);}};}function respondWithFilteredResult(_0x4561f1,_0x4a49b7){return function(_0x1c558f){if(_0x1c558f){var _0x16a0c1=_0x1c558f[_0x5526('0x1e')],_0xe715b7=_0x4a49b7[_0x5526('0x1f')],_0x31fa9b=_0x4a49b7[_0x5526('0x1f')]+_0x4a49b7[_0x5526('0x20')],_0x50b423;if(_0x31fa9b>=_0x16a0c1){_0x31fa9b=_0x16a0c1;_0x50b423=0xc8;}else{_0x50b423=0xce;}_0x4561f1[_0x5526('0x1b')](_0x50b423);return _0x4561f1['set'](_0x5526('0x21'),_0xe715b7+'-'+_0x31fa9b+'/'+_0x16a0c1)['json'](_0x1c558f);}return null;};}function patchUpdates(_0x4456a9){return function(_0x54b37a){try{jsonpatch['apply'](_0x54b37a,_0x4456a9,!![]);}catch(_0x8f7d32){return BPromise[_0x5526('0x22')](_0x8f7d32);}return _0x54b37a[_0x5526('0x23')]();};}function saveUpdates(_0x1c07a3,_0x1ae5bb){return function(_0x1f0153){if(_0x1f0153){return _0x1f0153['update'](_0x1c07a3)[_0x5526('0x24')](function(_0x1459cd){return _0x1459cd;});}return null;};}function removeEntity(_0x264f73,_0x5434b7){return function(_0x1f2185){if(_0x1f2185){return _0x1f2185[_0x5526('0x25')]()[_0x5526('0x24')](function(){_0x264f73['status'](0xcc)[_0x5526('0x1c')]();});}};}function handleEntityNotFound(_0x5df584,_0x261acc){return function(_0x3cafe6){if(!_0x3cafe6){_0x5df584[_0x5526('0x26')](0x194);}return _0x3cafe6;};}function handleError(_0x5d3136,_0x53fc3d){_0x53fc3d=_0x53fc3d||0x1f4;return function(_0x22663a){logger[_0x5526('0x27')](_0x22663a[_0x5526('0x28')]);if(_0x22663a[_0x5526('0x29')]){delete _0x22663a['name'];}_0x5d3136[_0x5526('0x1b')](_0x53fc3d)[_0x5526('0x2a')](_0x22663a);};}exports[_0x5526('0x2b')]=function(_0x5f4f37,_0x33759d){var _0x1e3bb6={},_0x5a95ac={},_0x438ecc={'count':0x0,'rows':[]};var _0x727666=_[_0x5526('0x2c')](db['MailTransferReport'][_0x5526('0x2d')],function(_0x3ca3c9){return{'name':_0x3ca3c9['fieldName'],'type':_0x3ca3c9[_0x5526('0x2e')][_0x5526('0x2f')]};});_0x5a95ac[_0x5526('0x30')]=_[_0x5526('0x2c')](_0x727666,_0x5526('0x29'));_0x5a95ac[_0x5526('0x31')]=_[_0x5526('0x32')](_0x5f4f37[_0x5526('0x31')]);_0x5a95ac[_0x5526('0x33')]=_[_0x5526('0x34')](_0x5a95ac[_0x5526('0x30')],_0x5a95ac[_0x5526('0x31')]);_0x1e3bb6[_0x5526('0x35')]=_['intersection'](_0x5a95ac[_0x5526('0x30')],qs[_0x5526('0x36')](_0x5f4f37['query'][_0x5526('0x36')]));_0x1e3bb6[_0x5526('0x35')]=_0x1e3bb6['attributes'][_0x5526('0x37')]?_0x1e3bb6['attributes']:_0x5a95ac[_0x5526('0x30')];if(!_0x5f4f37[_0x5526('0x31')]['hasOwnProperty']('nolimit')){_0x1e3bb6[_0x5526('0x20')]=qs[_0x5526('0x20')](_0x5f4f37[_0x5526('0x31')][_0x5526('0x20')]);_0x1e3bb6[_0x5526('0x1f')]=qs[_0x5526('0x1f')](_0x5f4f37[_0x5526('0x31')][_0x5526('0x1f')]);}_0x1e3bb6[_0x5526('0x38')]=qs[_0x5526('0x39')](_0x5f4f37['query']['sort']);_0x1e3bb6[_0x5526('0x3a')]=qs[_0x5526('0x33')](_[_0x5526('0x3b')](_0x5f4f37[_0x5526('0x31')],_0x5a95ac['filters']),_0x727666);if(_0x5f4f37['query']['filter']){_0x1e3bb6['where']=_[_0x5526('0x3c')](_0x1e3bb6[_0x5526('0x3a')],{'$or':_[_0x5526('0x2c')](_0x727666,function(_0x4df6ad){if(_0x4df6ad[_0x5526('0x2e')]!==_0x5526('0x3d')){var _0x159fe5={};_0x159fe5[_0x4df6ad['name']]={'$like':'%'+_0x5f4f37['query'][_0x5526('0x3e')]+'%'};return _0x159fe5;}})});}_0x1e3bb6=_[_0x5526('0x3c')]({},_0x1e3bb6,_0x5f4f37['options']);var _0x258494={'where':_0x1e3bb6['where']};return db['MailTransferReport'][_0x5526('0x1e')](_0x258494)[_0x5526('0x24')](function(_0x59ea0b){_0x438ecc[_0x5526('0x1e')]=_0x59ea0b;if(_0x5f4f37[_0x5526('0x31')][_0x5526('0x3f')]){_0x1e3bb6['include']=[{'all':!![]}];}return db['MailTransferReport'][_0x5526('0x40')](_0x1e3bb6);})[_0x5526('0x24')](function(_0x20c1f6){_0x438ecc[_0x5526('0x41')]=_0x20c1f6;return _0x438ecc;})[_0x5526('0x24')](respondWithFilteredResult(_0x33759d,_0x1e3bb6))['catch'](handleError(_0x33759d,null));};exports[_0x5526('0x42')]=function(_0xa3b8eb,_0x1959ed){var _0x50c418={'raw':!![],'where':{'id':_0xa3b8eb[_0x5526('0x43')]['id']}},_0xedd346={};_0xedd346[_0x5526('0x30')]=_[_0x5526('0x32')](db[_0x5526('0x44')][_0x5526('0x2d')]);_0xedd346[_0x5526('0x31')]=_[_0x5526('0x32')](_0xa3b8eb[_0x5526('0x31')]);_0xedd346[_0x5526('0x33')]=_[_0x5526('0x34')](_0xedd346[_0x5526('0x30')],_0xedd346[_0x5526('0x31')]);_0x50c418[_0x5526('0x35')]=_[_0x5526('0x34')](_0xedd346[_0x5526('0x30')],qs[_0x5526('0x36')](_0xa3b8eb[_0x5526('0x31')][_0x5526('0x36')]));_0x50c418[_0x5526('0x35')]=_0x50c418[_0x5526('0x35')]['length']?_0x50c418[_0x5526('0x35')]:_0xedd346[_0x5526('0x30')];if(_0xa3b8eb[_0x5526('0x31')][_0x5526('0x3f')]){_0x50c418[_0x5526('0x45')]=[{'all':!![]}];}_0x50c418=_['merge']({},_0x50c418,_0xa3b8eb[_0x5526('0x46')]);return db[_0x5526('0x44')]['find'](_0x50c418)[_0x5526('0x24')](handleEntityNotFound(_0x1959ed,null))['then'](respondWithResult(_0x1959ed,null))[_0x5526('0x47')](handleError(_0x1959ed,null));};exports[_0x5526('0x48')]=function(_0xcf3ab7,_0x3c7794){return db[_0x5526('0x44')][_0x5526('0x48')](_0xcf3ab7[_0x5526('0x49')],{})[_0x5526('0x24')](respondWithResult(_0x3c7794,0xc9))[_0x5526('0x47')](handleError(_0x3c7794,null));};exports['update']=function(_0x4a0e15,_0x1431e4){if(_0x4a0e15[_0x5526('0x49')]['id']){delete _0x4a0e15[_0x5526('0x49')]['id'];}return db[_0x5526('0x44')][_0x5526('0x4a')]({'where':{'id':_0x4a0e15[_0x5526('0x43')]['id']}})[_0x5526('0x24')](handleEntityNotFound(_0x1431e4,null))[_0x5526('0x24')](saveUpdates(_0x4a0e15[_0x5526('0x49')],null))[_0x5526('0x24')](respondWithResult(_0x1431e4,null))[_0x5526('0x47')](handleError(_0x1431e4,null));};exports[_0x5526('0x25')]=function(_0x100957,_0x332bbd){return db[_0x5526('0x44')][_0x5526('0x4a')]({'where':{'id':_0x100957[_0x5526('0x43')]['id']}})[_0x5526('0x24')](handleEntityNotFound(_0x332bbd,null))[_0x5526('0x24')](removeEntity(_0x332bbd,null))['catch'](handleError(_0x332bbd,null));};exports[_0x5526('0x4b')]=function(_0x4a6835,_0x4b5c6d){return db[_0x5526('0x44')][_0x5526('0x4b')]()['then'](respondWithResult(_0x4b5c6d,null))['catch'](handleError(_0x4b5c6d,null));};
\ No newline at end of file