Built motion from commit e0fa946e.|2.6.5
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index fbb11dd..7ccc116 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xad53=['nolimit','limit','order','sort','where','pick','filter','merge','type','options','includeAll','include','findAll','rows','catch','show','keys','rawAttributes','find','body','params','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','ejs','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json','count','offset','set','Content-Range','apply','reject','save','update','destroy','then','error','stack','name','send','map','SmsTransferReport','fieldName','key','model','query','filters','intersection','fields','attributes','length','hasOwnProperty'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xad53,0x1ea));var _0x3ad5=function(_0x4e2951,_0x370626){_0x4e2951=_0x4e2951-0x0;var _0x9d83ce=_0xad53[_0x4e2951];return _0x9d83ce;};'use strict';var pdf=require(_0x3ad5('0x0'));var emlformat=require(_0x3ad5('0x1'));var rimraf=require(_0x3ad5('0x2'));var zipdir=require(_0x3ad5('0x3'));var jsonpatch=require(_0x3ad5('0x4'));var rp=require(_0x3ad5('0x5'));var moment=require(_0x3ad5('0x6'));var BPromise=require(_0x3ad5('0x7'));var Mustache=require('mustache');var util=require(_0x3ad5('0x8'));var path=require(_0x3ad5('0x9'));var sox=require(_0x3ad5('0xa'));var csv=require(_0x3ad5('0xb'));var ejs=require(_0x3ad5('0xc'));var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0x3ad5('0xd'));var deskjs=require(_0x3ad5('0xe'));var toCsv=require(_0x3ad5('0xb'));var querystring=require(_0x3ad5('0xf'));var Papa=require(_0x3ad5('0x10'));var Redis=require(_0x3ad5('0x11'));var authService=require(_0x3ad5('0x12'));var qs=require(_0x3ad5('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x3ad5('0x14'));var logger=require(_0x3ad5('0x15'))(_0x3ad5('0x16'));var utils=require(_0x3ad5('0x17'));var config=require('../../config/environment');var licenseUtil=require(_0x3ad5('0x18'));var db=require(_0x3ad5('0x19'))['db'];function respondWithStatusCode(_0x1dc68b,_0x542e82){_0x542e82=_0x542e82||0xcc;return function(_0x1bd82f){if(_0x1bd82f){return _0x1dc68b[_0x3ad5('0x1a')](_0x542e82);}return _0x1dc68b[_0x3ad5('0x1b')](_0x542e82)[_0x3ad5('0x1c')]();};}function respondWithResult(_0x2cfe73,_0x28d6ad){_0x28d6ad=_0x28d6ad||0xc8;return function(_0x50758e){if(_0x50758e){return _0x2cfe73['status'](_0x28d6ad)[_0x3ad5('0x1d')](_0x50758e);}};}function respondWithFilteredResult(_0x278364,_0xabcbc0){return function(_0x70aec9){if(_0x70aec9){var _0x1d5868=_0x70aec9[_0x3ad5('0x1e')],_0x365f38=_0xabcbc0[_0x3ad5('0x1f')],_0x533ea1=_0xabcbc0['offset']+_0xabcbc0['limit'],_0x56123a;if(_0x533ea1>=_0x1d5868){_0x533ea1=_0x1d5868;_0x56123a=0xc8;}else{_0x56123a=0xce;}_0x278364[_0x3ad5('0x1b')](_0x56123a);return _0x278364[_0x3ad5('0x20')](_0x3ad5('0x21'),_0x365f38+'-'+_0x533ea1+'/'+_0x1d5868)[_0x3ad5('0x1d')](_0x70aec9);}return null;};}function patchUpdates(_0x523519){return function(_0xb97fb9){try{jsonpatch[_0x3ad5('0x22')](_0xb97fb9,_0x523519,!![]);}catch(_0x36935a){return BPromise[_0x3ad5('0x23')](_0x36935a);}return _0xb97fb9[_0x3ad5('0x24')]();};}function saveUpdates(_0x1c37c7,_0x3aaef8){return function(_0x3a8960){if(_0x3a8960){return _0x3a8960[_0x3ad5('0x25')](_0x1c37c7)['then'](function(_0x98dfb5){return _0x98dfb5;});}return null;};}function removeEntity(_0x4d00e2,_0x936a29){return function(_0x58a06f){if(_0x58a06f){return _0x58a06f[_0x3ad5('0x26')]()[_0x3ad5('0x27')](function(){_0x4d00e2[_0x3ad5('0x1b')](0xcc)[_0x3ad5('0x1c')]();});}};}function handleEntityNotFound(_0x24d2ee,_0x26b402){return function(_0x4c59dc){if(!_0x4c59dc){_0x24d2ee[_0x3ad5('0x1a')](0x194);}return _0x4c59dc;};}function handleError(_0x1aa2e9,_0x4d1a4c){_0x4d1a4c=_0x4d1a4c||0x1f4;return function(_0xaa80a){logger[_0x3ad5('0x28')](_0xaa80a[_0x3ad5('0x29')]);if(_0xaa80a['name']){delete _0xaa80a[_0x3ad5('0x2a')];}_0x1aa2e9[_0x3ad5('0x1b')](_0x4d1a4c)[_0x3ad5('0x2b')](_0xaa80a);};}exports['index']=function(_0x512d41,_0x578463){var _0x33c53e={},_0x4674f2={},_0x141680={'count':0x0,'rows':[]};var _0x4d7e51=_[_0x3ad5('0x2c')](db[_0x3ad5('0x2d')]['rawAttributes'],function(_0x4c66f7){return{'name':_0x4c66f7[_0x3ad5('0x2e')],'type':_0x4c66f7['type'][_0x3ad5('0x2f')]};});_0x4674f2[_0x3ad5('0x30')]=_[_0x3ad5('0x2c')](_0x4d7e51,_0x3ad5('0x2a'));_0x4674f2[_0x3ad5('0x31')]=_['keys'](_0x512d41['query']);_0x4674f2[_0x3ad5('0x32')]=_[_0x3ad5('0x33')](_0x4674f2[_0x3ad5('0x30')],_0x4674f2[_0x3ad5('0x31')]);_0x33c53e['attributes']=_[_0x3ad5('0x33')](_0x4674f2[_0x3ad5('0x30')],qs[_0x3ad5('0x34')](_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x34')]));_0x33c53e[_0x3ad5('0x35')]=_0x33c53e[_0x3ad5('0x35')][_0x3ad5('0x36')]?_0x33c53e[_0x3ad5('0x35')]:_0x4674f2[_0x3ad5('0x30')];if(!_0x512d41['query'][_0x3ad5('0x37')](_0x3ad5('0x38'))){_0x33c53e[_0x3ad5('0x39')]=qs[_0x3ad5('0x39')](_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x39')]);_0x33c53e[_0x3ad5('0x1f')]=qs['offset'](_0x512d41['query'][_0x3ad5('0x1f')]);}_0x33c53e[_0x3ad5('0x3a')]=qs['sort'](_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x3b')]);_0x33c53e[_0x3ad5('0x3c')]=qs[_0x3ad5('0x32')](_[_0x3ad5('0x3d')](_0x512d41[_0x3ad5('0x31')],_0x4674f2[_0x3ad5('0x32')]),_0x4d7e51);if(_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x3e')]){_0x33c53e[_0x3ad5('0x3c')]=_[_0x3ad5('0x3f')](_0x33c53e[_0x3ad5('0x3c')],{'$or':_[_0x3ad5('0x2c')](_0x4d7e51,function(_0x5b2893){if(_0x5b2893[_0x3ad5('0x40')]!=='VIRTUAL'){var _0xe693b={};_0xe693b[_0x5b2893[_0x3ad5('0x2a')]]={'$like':'%'+_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x3e')]+'%'};return _0xe693b;}})});}_0x33c53e=_[_0x3ad5('0x3f')]({},_0x33c53e,_0x512d41[_0x3ad5('0x41')]);var _0x183dcb={'where':_0x33c53e['where']};return db['SmsTransferReport'][_0x3ad5('0x1e')](_0x183dcb)[_0x3ad5('0x27')](function(_0x3734c5){_0x141680[_0x3ad5('0x1e')]=_0x3734c5;if(_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x42')]){_0x33c53e[_0x3ad5('0x43')]=[{'all':!![]}];}return db[_0x3ad5('0x2d')][_0x3ad5('0x44')](_0x33c53e);})[_0x3ad5('0x27')](function(_0xdece6d){_0x141680[_0x3ad5('0x45')]=_0xdece6d;return _0x141680;})[_0x3ad5('0x27')](respondWithFilteredResult(_0x578463,_0x33c53e))[_0x3ad5('0x46')](handleError(_0x578463,null));};exports[_0x3ad5('0x47')]=function(_0x327dbb,_0x26ae59){var _0x29726b={'raw':!![],'where':{'id':_0x327dbb['params']['id']}},_0x5ec9c3={};_0x5ec9c3[_0x3ad5('0x30')]=_[_0x3ad5('0x48')](db['SmsTransferReport'][_0x3ad5('0x49')]);_0x5ec9c3['query']=_['keys'](_0x327dbb[_0x3ad5('0x31')]);_0x5ec9c3[_0x3ad5('0x32')]=_[_0x3ad5('0x33')](_0x5ec9c3[_0x3ad5('0x30')],_0x5ec9c3[_0x3ad5('0x31')]);_0x29726b[_0x3ad5('0x35')]=_[_0x3ad5('0x33')](_0x5ec9c3['model'],qs[_0x3ad5('0x34')](_0x327dbb[_0x3ad5('0x31')][_0x3ad5('0x34')]));_0x29726b[_0x3ad5('0x35')]=_0x29726b[_0x3ad5('0x35')]['length']?_0x29726b[_0x3ad5('0x35')]:_0x5ec9c3[_0x3ad5('0x30')];if(_0x327dbb[_0x3ad5('0x31')][_0x3ad5('0x42')]){_0x29726b['include']=[{'all':!![]}];}_0x29726b=_['merge']({},_0x29726b,_0x327dbb['options']);return db[_0x3ad5('0x2d')][_0x3ad5('0x4a')](_0x29726b)[_0x3ad5('0x27')](handleEntityNotFound(_0x26ae59,null))[_0x3ad5('0x27')](respondWithResult(_0x26ae59,null))['catch'](handleError(_0x26ae59,null));};exports['create']=function(_0x2a86fd,_0x4170d1){return db[_0x3ad5('0x2d')]['create'](_0x2a86fd[_0x3ad5('0x4b')],{})[_0x3ad5('0x27')](respondWithResult(_0x4170d1,0xc9))['catch'](handleError(_0x4170d1,null));};exports[_0x3ad5('0x25')]=function(_0x31f25c,_0x2ad1dd){if(_0x31f25c['body']['id']){delete _0x31f25c['body']['id'];}return db[_0x3ad5('0x2d')]['find']({'where':{'id':_0x31f25c[_0x3ad5('0x4c')]['id']}})['then'](handleEntityNotFound(_0x2ad1dd,null))[_0x3ad5('0x27')](saveUpdates(_0x31f25c[_0x3ad5('0x4b')],null))['then'](respondWithResult(_0x2ad1dd,null))[_0x3ad5('0x46')](handleError(_0x2ad1dd,null));};exports[_0x3ad5('0x26')]=function(_0x267200,_0x5a8218){return db['SmsTransferReport'][_0x3ad5('0x4a')]({'where':{'id':_0x267200[_0x3ad5('0x4c')]['id']}})[_0x3ad5('0x27')](handleEntityNotFound(_0x5a8218,null))[_0x3ad5('0x27')](removeEntity(_0x5a8218,null))[_0x3ad5('0x46')](handleError(_0x5a8218,null));};exports['describe']=function(_0xb11ec0,_0x457d32){return db['SmsTransferReport'][_0x3ad5('0x4d')]()['then'](respondWithResult(_0x457d32,null))[_0x3ad5('0x46')](handleError(_0x457d32,null));};
\ No newline at end of file
+var _0xe88d=['describe','eml-format','zip-dir','request-promise','moment','bluebird','util','path','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/license/util','sendStatus','status','end','json','offset','undefined','count','set','Content-Range','apply','reject','save','update','then','destroy','stack','name','send','rawAttributes','fieldName','type','model','map','keys','query','filters','intersection','attributes','fields','length','hasOwnProperty','limit','order','sort','filter','where','merge','VIRTUAL','SmsTransferReport','includeAll','include','findAll','rows','catch','show','params','options','find','create','body'];(function(_0x22c000,_0x2f8519){var _0x194bcd=function(_0x52e4a6){while(--_0x52e4a6){_0x22c000['push'](_0x22c000['shift']());}};_0x194bcd(++_0x2f8519);}(_0xe88d,0x173));var _0xde88=function(_0x57645b,_0x25f73a){_0x57645b=_0x57645b-0x0;var _0xe82f00=_0xe88d[_0x57645b];return _0xe82f00;};'use strict';var emlformat=require(_0xde88('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xde88('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0xde88('0x2'));var moment=require(_0xde88('0x3'));var BPromise=require(_0xde88('0x4'));var Mustache=require('mustache');var util=require(_0xde88('0x5'));var path=require(_0xde88('0x6'));var sox=require('sox');var csv=require(_0xde88('0x7'));var ejs=require(_0xde88('0x8'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xde88('0x9'));var squel=require(_0xde88('0xa'));var crypto=require(_0xde88('0xb'));var jsforce=require(_0xde88('0xc'));var deskjs=require(_0xde88('0xd'));var toCsv=require(_0xde88('0x7'));var querystring=require(_0xde88('0xe'));var Papa=require(_0xde88('0xf'));var Redis=require(_0xde88('0x10'));var authService=require(_0xde88('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0xde88('0x12'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xde88('0x13'))(_0xde88('0x14'));var utils=require(_0xde88('0x15'));var config=require('../../config/environment');var licenseUtil=require(_0xde88('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x2fb2e3,_0x334e1c){_0x334e1c=_0x334e1c||0xcc;return function(_0x30bf7d){if(_0x30bf7d){return _0x2fb2e3[_0xde88('0x17')](_0x334e1c);}return _0x2fb2e3[_0xde88('0x18')](_0x334e1c)[_0xde88('0x19')]();};}function respondWithResult(_0x58c0d1,_0x59565b){_0x59565b=_0x59565b||0xc8;return function(_0x83a42f){if(_0x83a42f){return _0x58c0d1['status'](_0x59565b)[_0xde88('0x1a')](_0x83a42f);}};}function respondWithFilteredResult(_0x583340,_0x500565){return function(_0x5982c3){if(_0x5982c3){var _0x17254e=typeof _0x500565[_0xde88('0x1b')]===_0xde88('0x1c')&&typeof _0x500565['limit']===_0xde88('0x1c');var _0x15503e=_0x5982c3[_0xde88('0x1d')];var _0x1db1b9=_0x17254e?0x0:_0x500565['offset'];var _0x3c764a=_0x17254e?_0x5982c3[_0xde88('0x1d')]:_0x500565[_0xde88('0x1b')]+_0x500565['limit'];var _0x5c07b2;if(_0x3c764a>=_0x15503e){_0x3c764a=_0x15503e;_0x5c07b2=0xc8;}else{_0x5c07b2=0xce;}_0x583340[_0xde88('0x18')](_0x5c07b2);return _0x583340[_0xde88('0x1e')](_0xde88('0x1f'),_0x1db1b9+'-'+_0x3c764a+'/'+_0x15503e)['json'](_0x5982c3);}return null;};}function patchUpdates(_0x4eaf1e){return function(_0x59a909){try{jsonpatch[_0xde88('0x20')](_0x59a909,_0x4eaf1e,!![]);}catch(_0x300ca8){return BPromise[_0xde88('0x21')](_0x300ca8);}return _0x59a909[_0xde88('0x22')]();};}function saveUpdates(_0x4f16c0,_0x46757f){return function(_0x1b5fbb){if(_0x1b5fbb){return _0x1b5fbb[_0xde88('0x23')](_0x4f16c0)[_0xde88('0x24')](function(_0x1b0487){return _0x1b0487;});}return null;};}function removeEntity(_0x55d755,_0x57b1a2){return function(_0x316cc0){if(_0x316cc0){return _0x316cc0[_0xde88('0x25')]()['then'](function(){_0x55d755['status'](0xcc)[_0xde88('0x19')]();});}};}function handleEntityNotFound(_0x1f1d74,_0x23088b){return function(_0x4e4985){if(!_0x4e4985){_0x1f1d74[_0xde88('0x17')](0x194);}return _0x4e4985;};}function handleError(_0xfbb07f,_0x21372a){_0x21372a=_0x21372a||0x1f4;return function(_0x402034){logger['error'](_0x402034[_0xde88('0x26')]);if(_0x402034[_0xde88('0x27')]){delete _0x402034['name'];}_0xfbb07f[_0xde88('0x18')](_0x21372a)[_0xde88('0x28')](_0x402034);};}exports['index']=function(_0x156978,_0x32cebe){var _0x223ffa={},_0x387dee={},_0x4c3a14={'count':0x0,'rows':[]};var _0x47b670=_['map'](db['SmsTransferReport'][_0xde88('0x29')],function(_0x77aab4){return{'name':_0x77aab4[_0xde88('0x2a')],'type':_0x77aab4[_0xde88('0x2b')]['key']};});_0x387dee[_0xde88('0x2c')]=_[_0xde88('0x2d')](_0x47b670,_0xde88('0x27'));_0x387dee['query']=_[_0xde88('0x2e')](_0x156978[_0xde88('0x2f')]);_0x387dee[_0xde88('0x30')]=_[_0xde88('0x31')](_0x387dee[_0xde88('0x2c')],_0x387dee['query']);_0x223ffa[_0xde88('0x32')]=_[_0xde88('0x31')](_0x387dee['model'],qs['fields'](_0x156978[_0xde88('0x2f')][_0xde88('0x33')]));_0x223ffa[_0xde88('0x32')]=_0x223ffa['attributes'][_0xde88('0x34')]?_0x223ffa[_0xde88('0x32')]:_0x387dee['model'];if(!_0x156978[_0xde88('0x2f')][_0xde88('0x35')]('nolimit')){_0x223ffa[_0xde88('0x36')]=qs[_0xde88('0x36')](_0x156978['query'][_0xde88('0x36')]);_0x223ffa[_0xde88('0x1b')]=qs[_0xde88('0x1b')](_0x156978['query']['offset']);}_0x223ffa[_0xde88('0x37')]=qs[_0xde88('0x38')](_0x156978['query'][_0xde88('0x38')]);_0x223ffa['where']=qs[_0xde88('0x30')](_['pick'](_0x156978[_0xde88('0x2f')],_0x387dee[_0xde88('0x30')]),_0x47b670);if(_0x156978[_0xde88('0x2f')][_0xde88('0x39')]){_0x223ffa[_0xde88('0x3a')]=_[_0xde88('0x3b')](_0x223ffa['where'],{'$or':_[_0xde88('0x2d')](_0x47b670,function(_0x3c9ca1){if(_0x3c9ca1[_0xde88('0x2b')]!==_0xde88('0x3c')){var _0x5f5b51={};_0x5f5b51[_0x3c9ca1[_0xde88('0x27')]]={'$like':'%'+_0x156978[_0xde88('0x2f')][_0xde88('0x39')]+'%'};return _0x5f5b51;}})});}_0x223ffa=_[_0xde88('0x3b')]({},_0x223ffa,_0x156978['options']);var _0x3bcd80={'where':_0x223ffa['where']};return db[_0xde88('0x3d')]['count'](_0x3bcd80)[_0xde88('0x24')](function(_0x1619c9){_0x4c3a14[_0xde88('0x1d')]=_0x1619c9;if(_0x156978['query'][_0xde88('0x3e')]){_0x223ffa[_0xde88('0x3f')]=[{'all':!![]}];}return db[_0xde88('0x3d')][_0xde88('0x40')](_0x223ffa);})[_0xde88('0x24')](function(_0x1fb719){_0x4c3a14[_0xde88('0x41')]=_0x1fb719;return _0x4c3a14;})[_0xde88('0x24')](respondWithFilteredResult(_0x32cebe,_0x223ffa))[_0xde88('0x42')](handleError(_0x32cebe,null));};exports[_0xde88('0x43')]=function(_0x6c8c5b,_0x4f5aa2){var _0x79a2dc={'raw':!![],'where':{'id':_0x6c8c5b[_0xde88('0x44')]['id']}},_0x180bc4={};_0x180bc4['model']=_[_0xde88('0x2e')](db[_0xde88('0x3d')][_0xde88('0x29')]);_0x180bc4['query']=_[_0xde88('0x2e')](_0x6c8c5b[_0xde88('0x2f')]);_0x180bc4['filters']=_[_0xde88('0x31')](_0x180bc4['model'],_0x180bc4[_0xde88('0x2f')]);_0x79a2dc[_0xde88('0x32')]=_[_0xde88('0x31')](_0x180bc4[_0xde88('0x2c')],qs[_0xde88('0x33')](_0x6c8c5b[_0xde88('0x2f')]['fields']));_0x79a2dc[_0xde88('0x32')]=_0x79a2dc[_0xde88('0x32')][_0xde88('0x34')]?_0x79a2dc[_0xde88('0x32')]:_0x180bc4[_0xde88('0x2c')];if(_0x6c8c5b[_0xde88('0x2f')][_0xde88('0x3e')]){_0x79a2dc[_0xde88('0x3f')]=[{'all':!![]}];}_0x79a2dc=_[_0xde88('0x3b')]({},_0x79a2dc,_0x6c8c5b[_0xde88('0x45')]);return db[_0xde88('0x3d')][_0xde88('0x46')](_0x79a2dc)['then'](handleEntityNotFound(_0x4f5aa2,null))[_0xde88('0x24')](respondWithResult(_0x4f5aa2,null))[_0xde88('0x42')](handleError(_0x4f5aa2,null));};exports['create']=function(_0x30bc0f,_0x194c69){return db[_0xde88('0x3d')][_0xde88('0x47')](_0x30bc0f['body'],{})[_0xde88('0x24')](respondWithResult(_0x194c69,0xc9))['catch'](handleError(_0x194c69,null));};exports[_0xde88('0x23')]=function(_0x5ed6e0,_0x311dc3){if(_0x5ed6e0[_0xde88('0x48')]['id']){delete _0x5ed6e0[_0xde88('0x48')]['id'];}return db[_0xde88('0x3d')][_0xde88('0x46')]({'where':{'id':_0x5ed6e0['params']['id']}})[_0xde88('0x24')](handleEntityNotFound(_0x311dc3,null))[_0xde88('0x24')](saveUpdates(_0x5ed6e0['body'],null))['then'](respondWithResult(_0x311dc3,null))[_0xde88('0x42')](handleError(_0x311dc3,null));};exports[_0xde88('0x25')]=function(_0x501afb,_0x15ec39){return db[_0xde88('0x3d')][_0xde88('0x46')]({'where':{'id':_0x501afb['params']['id']}})[_0xde88('0x24')](handleEntityNotFound(_0x15ec39,null))[_0xde88('0x24')](removeEntity(_0x15ec39,null))[_0xde88('0x42')](handleError(_0x15ec39,null));};exports[_0xde88('0x49')]=function(_0x2d056a,_0x5fdec4){return db[_0xde88('0x3d')][_0xde88('0x49')]()[_0xde88('0x24')](respondWithResult(_0x5fdec4,null))['catch'](handleError(_0x5fdec4,null));};
\ No newline at end of file