Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index 8d3e867..c1cc0fc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xeb79=['jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','count','offset','limit','set','apply','reject','update','then','destroy','error','stack','name','send','map','SmsTransferReport','rawAttributes','type','keys','query','model','attributes','intersection','fields','hasOwnProperty','order','sort','filters','pick','filter','where','merge','VIRTUAL','include','findAll','rows','show','params','includeAll','options','find','catch','create','body','describe','rimraf','fast-json-patch','moment','mustache','util','path','sox','lodash','crypto'];(function(_0x5a2159,_0x1b9fa8){var _0xf29caa=function(_0x26eb5b){while(--_0x26eb5b){_0x5a2159['push'](_0x5a2159['shift']());}};_0xf29caa(++_0x1b9fa8);}(_0xeb79,0x87));var _0x9eb7=function(_0x1b5e06,_0x3f8aae){_0x1b5e06=_0x1b5e06-0x0;var _0x369ca8=_0xeb79[_0x1b5e06];return _0x369ca8;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0x9eb7('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0x9eb7('0x1'));var rp=require('request-promise');var moment=require(_0x9eb7('0x2'));var BPromise=require('bluebird');var Mustache=require(_0x9eb7('0x3'));var util=require(_0x9eb7('0x4'));var path=require(_0x9eb7('0x5'));var sox=require(_0x9eb7('0x6'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var _=require(_0x9eb7('0x7'));var squel=require('squel');var crypto=require(_0x9eb7('0x8'));var jsforce=require(_0x9eb7('0x9'));var deskjs=require(_0x9eb7('0xa'));var toCsv=require(_0x9eb7('0xb'));var querystring=require(_0x9eb7('0xc'));var Papa=require(_0x9eb7('0xd'));var Redis=require(_0x9eb7('0xe'));var authService=require('../../components/auth/service');var qs=require(_0x9eb7('0xf'));var as=require(_0x9eb7('0x10'));var hardwareService=require(_0x9eb7('0x11'));var logger=require(_0x9eb7('0x12'))(_0x9eb7('0x13'));var utils=require(_0x9eb7('0x14'));var config=require(_0x9eb7('0x15'));var licenseUtil=require(_0x9eb7('0x16'));var db=require(_0x9eb7('0x17'))['db'];function respondWithStatusCode(_0x9cbbce,_0xfe85b5){_0xfe85b5=_0xfe85b5||0xcc;return function(_0x185eb7){if(_0x185eb7){return _0x9cbbce[_0x9eb7('0x18')](_0xfe85b5);}return _0x9cbbce[_0x9eb7('0x19')](_0xfe85b5)[_0x9eb7('0x1a')]();};}function respondWithResult(_0x4edeba,_0x44948a){_0x44948a=_0x44948a||0xc8;return function(_0x6a91ae){if(_0x6a91ae){return _0x4edeba[_0x9eb7('0x19')](_0x44948a)[_0x9eb7('0x1b')](_0x6a91ae);}};}function respondWithFilteredResult(_0x30ac29,_0x12dd03){return function(_0x7cd0f7){if(_0x7cd0f7){var _0x40d5d4=_0x7cd0f7[_0x9eb7('0x1c')],_0x3e7723=_0x12dd03[_0x9eb7('0x1d')],_0x2a6e26=_0x12dd03['offset']+_0x12dd03[_0x9eb7('0x1e')],_0xc8aa18;if(_0x2a6e26>=_0x40d5d4){_0x2a6e26=_0x40d5d4;_0xc8aa18=0xc8;}else{_0xc8aa18=0xce;}_0x30ac29[_0x9eb7('0x19')](_0xc8aa18);return _0x30ac29[_0x9eb7('0x1f')]('Content-Range',_0x3e7723+'-'+_0x2a6e26+'/'+_0x40d5d4)[_0x9eb7('0x1b')](_0x7cd0f7);}return null;};}function patchUpdates(_0x166317){return function(_0x5b7695){try{jsonpatch[_0x9eb7('0x20')](_0x5b7695,_0x166317,!![]);}catch(_0x3c518c){return BPromise[_0x9eb7('0x21')](_0x3c518c);}return _0x5b7695['save']();};}function saveUpdates(_0x4762a9,_0x548bf5){return function(_0x5d4ada){if(_0x5d4ada){return _0x5d4ada[_0x9eb7('0x22')](_0x4762a9)[_0x9eb7('0x23')](function(_0x5b5a7e){return _0x5b5a7e;});}return null;};}function removeEntity(_0x295f35,_0x553c56){return function(_0x4ae66f){if(_0x4ae66f){return _0x4ae66f[_0x9eb7('0x24')]()[_0x9eb7('0x23')](function(){_0x295f35[_0x9eb7('0x19')](0xcc)['end']();});}};}function handleEntityNotFound(_0x4c92c2,_0x5ee15e){return function(_0x5078bd){if(!_0x5078bd){_0x4c92c2[_0x9eb7('0x18')](0x194);}return _0x5078bd;};}function handleError(_0x2b2c8e,_0x5810d8){_0x5810d8=_0x5810d8||0x1f4;return function(_0x379a70){logger[_0x9eb7('0x25')](_0x379a70[_0x9eb7('0x26')]);if(_0x379a70[_0x9eb7('0x27')]){delete _0x379a70[_0x9eb7('0x27')];}_0x2b2c8e[_0x9eb7('0x19')](_0x5810d8)[_0x9eb7('0x28')](_0x379a70);};}exports['index']=function(_0x198ae6,_0x543cee){var _0x24d290={},_0x5375fa={},_0x2f2742={'count':0x0,'rows':[]};var _0x3f5e50=_[_0x9eb7('0x29')](db[_0x9eb7('0x2a')][_0x9eb7('0x2b')],function(_0xf09486){return{'name':_0xf09486['fieldName'],'type':_0xf09486[_0x9eb7('0x2c')]['key']};});_0x5375fa['model']=_[_0x9eb7('0x29')](_0x3f5e50,'name');_0x5375fa['query']=_[_0x9eb7('0x2d')](_0x198ae6[_0x9eb7('0x2e')]);_0x5375fa['filters']=_['intersection'](_0x5375fa[_0x9eb7('0x2f')],_0x5375fa[_0x9eb7('0x2e')]);_0x24d290[_0x9eb7('0x30')]=_[_0x9eb7('0x31')](_0x5375fa['model'],qs[_0x9eb7('0x32')](_0x198ae6[_0x9eb7('0x2e')]['fields']));_0x24d290['attributes']=_0x24d290['attributes']['length']?_0x24d290[_0x9eb7('0x30')]:_0x5375fa['model'];if(!_0x198ae6[_0x9eb7('0x2e')][_0x9eb7('0x33')]('nolimit')){_0x24d290[_0x9eb7('0x1e')]=qs[_0x9eb7('0x1e')](_0x198ae6[_0x9eb7('0x2e')]['limit']);_0x24d290['offset']=qs[_0x9eb7('0x1d')](_0x198ae6['query']['offset']);}_0x24d290[_0x9eb7('0x34')]=qs[_0x9eb7('0x35')](_0x198ae6[_0x9eb7('0x2e')][_0x9eb7('0x35')]);_0x24d290['where']=qs[_0x9eb7('0x36')](_[_0x9eb7('0x37')](_0x198ae6[_0x9eb7('0x2e')],_0x5375fa[_0x9eb7('0x36')]),_0x3f5e50);if(_0x198ae6[_0x9eb7('0x2e')][_0x9eb7('0x38')]){_0x24d290[_0x9eb7('0x39')]=_[_0x9eb7('0x3a')](_0x24d290[_0x9eb7('0x39')],{'$or':_['map'](_0x3f5e50,function(_0x225499){if(_0x225499[_0x9eb7('0x2c')]!==_0x9eb7('0x3b')){var _0x4d28cb={};_0x4d28cb[_0x225499[_0x9eb7('0x27')]]={'$like':'%'+_0x198ae6[_0x9eb7('0x2e')][_0x9eb7('0x38')]+'%'};return _0x4d28cb;}})});}_0x24d290=_['merge']({},_0x24d290,_0x198ae6['options']);var _0x126cea={'where':_0x24d290[_0x9eb7('0x39')]};return db['SmsTransferReport'][_0x9eb7('0x1c')](_0x126cea)[_0x9eb7('0x23')](function(_0x13aff4){_0x2f2742[_0x9eb7('0x1c')]=_0x13aff4;if(_0x198ae6[_0x9eb7('0x2e')]['includeAll']){_0x24d290[_0x9eb7('0x3c')]=[{'all':!![]}];}return db[_0x9eb7('0x2a')][_0x9eb7('0x3d')](_0x24d290);})[_0x9eb7('0x23')](function(_0xc664ed){_0x2f2742[_0x9eb7('0x3e')]=_0xc664ed;return _0x2f2742;})[_0x9eb7('0x23')](respondWithFilteredResult(_0x543cee,_0x24d290))['catch'](handleError(_0x543cee,null));};exports[_0x9eb7('0x3f')]=function(_0x4ac566,_0x22a287){var _0x3f68f2={'raw':!![],'where':{'id':_0x4ac566[_0x9eb7('0x40')]['id']}},_0x251073={};_0x251073['model']=_[_0x9eb7('0x2d')](db[_0x9eb7('0x2a')][_0x9eb7('0x2b')]);_0x251073[_0x9eb7('0x2e')]=_[_0x9eb7('0x2d')](_0x4ac566[_0x9eb7('0x2e')]);_0x251073[_0x9eb7('0x36')]=_['intersection'](_0x251073[_0x9eb7('0x2f')],_0x251073['query']);_0x3f68f2[_0x9eb7('0x30')]=_['intersection'](_0x251073[_0x9eb7('0x2f')],qs[_0x9eb7('0x32')](_0x4ac566['query'][_0x9eb7('0x32')]));_0x3f68f2[_0x9eb7('0x30')]=_0x3f68f2[_0x9eb7('0x30')]['length']?_0x3f68f2[_0x9eb7('0x30')]:_0x251073[_0x9eb7('0x2f')];if(_0x4ac566[_0x9eb7('0x2e')][_0x9eb7('0x41')]){_0x3f68f2[_0x9eb7('0x3c')]=[{'all':!![]}];}_0x3f68f2=_[_0x9eb7('0x3a')]({},_0x3f68f2,_0x4ac566[_0x9eb7('0x42')]);return db[_0x9eb7('0x2a')][_0x9eb7('0x43')](_0x3f68f2)[_0x9eb7('0x23')](handleEntityNotFound(_0x22a287,null))[_0x9eb7('0x23')](respondWithResult(_0x22a287,null))[_0x9eb7('0x44')](handleError(_0x22a287,null));};exports[_0x9eb7('0x45')]=function(_0x375993,_0xfa3b8a){return db['SmsTransferReport'][_0x9eb7('0x45')](_0x375993['body'],{})[_0x9eb7('0x23')](respondWithResult(_0xfa3b8a,0xc9))[_0x9eb7('0x44')](handleError(_0xfa3b8a,null));};exports[_0x9eb7('0x22')]=function(_0x8c60bd,_0x5a6356){if(_0x8c60bd['body']['id']){delete _0x8c60bd[_0x9eb7('0x46')]['id'];}return db['SmsTransferReport'][_0x9eb7('0x43')]({'where':{'id':_0x8c60bd[_0x9eb7('0x40')]['id']}})[_0x9eb7('0x23')](handleEntityNotFound(_0x5a6356,null))[_0x9eb7('0x23')](saveUpdates(_0x8c60bd[_0x9eb7('0x46')],null))['then'](respondWithResult(_0x5a6356,null))[_0x9eb7('0x44')](handleError(_0x5a6356,null));};exports[_0x9eb7('0x24')]=function(_0x5ea1b5,_0x54dd13){return db[_0x9eb7('0x2a')]['find']({'where':{'id':_0x5ea1b5[_0x9eb7('0x40')]['id']}})[_0x9eb7('0x23')](handleEntityNotFound(_0x54dd13,null))[_0x9eb7('0x23')](removeEntity(_0x54dd13,null))[_0x9eb7('0x44')](handleError(_0x54dd13,null));};exports['describe']=function(_0x1af953,_0x130866){return db['SmsTransferReport'][_0x9eb7('0x47')]()[_0x9eb7('0x23')](respondWithResult(_0x130866,null))[_0x9eb7('0x44')](handleError(_0x130866,null));};
\ No newline at end of file
+var _0x61a7=['intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','options','includeAll','include','rows','catch','show','keys','create','body','find','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','path','sox','fs-extra','lodash','crypto','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','index','map','SmsTransferReport','rawAttributes','fieldName','type','key','model','query','filters'];(function(_0x5b66ca,_0x132e14){var _0x1dcc64=function(_0x4fd0a3){while(--_0x4fd0a3){_0x5b66ca['push'](_0x5b66ca['shift']());}};_0x1dcc64(++_0x132e14);}(_0x61a7,0xb2));var _0x761a=function(_0x17304b,_0x3cf1fe){_0x17304b=_0x17304b-0x0;var _0x2e4071=_0x61a7[_0x17304b];return _0x2e4071;};'use strict';var emlformat=require(_0x761a('0x0'));var rimraf=require(_0x761a('0x1'));var zipdir=require(_0x761a('0x2'));var jsonpatch=require(_0x761a('0x3'));var rp=require(_0x761a('0x4'));var moment=require('moment');var BPromise=require(_0x761a('0x5'));var Mustache=require(_0x761a('0x6'));var util=require('util');var path=require(_0x761a('0x7'));var sox=require(_0x761a('0x8'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x761a('0x9'));var _=require(_0x761a('0xa'));var squel=require('squel');var crypto=require(_0x761a('0xb'));var jsforce=require(_0x761a('0xc'));var deskjs=require(_0x761a('0xd'));var toCsv=require(_0x761a('0xe'));var querystring=require(_0x761a('0xf'));var Papa=require(_0x761a('0x10'));var Redis=require(_0x761a('0x11'));var authService=require(_0x761a('0x12'));var qs=require(_0x761a('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x761a('0x14'))('api');var utils=require(_0x761a('0x15'));var config=require(_0x761a('0x16'));var licenseUtil=require('../../config/license/util');var db=require(_0x761a('0x17'))['db'];function respondWithStatusCode(_0x1b63ac,_0x5d9a74){_0x5d9a74=_0x5d9a74||0xcc;return function(_0x552c12){if(_0x552c12){return _0x1b63ac[_0x761a('0x18')](_0x5d9a74);}return _0x1b63ac[_0x761a('0x19')](_0x5d9a74)[_0x761a('0x1a')]();};}function respondWithResult(_0x28ad22,_0x4663e2){_0x4663e2=_0x4663e2||0xc8;return function(_0x2026b9){if(_0x2026b9){return _0x28ad22['status'](_0x4663e2)[_0x761a('0x1b')](_0x2026b9);}};}function respondWithFilteredResult(_0x564619,_0x4c9e54){return function(_0x287f7e){if(_0x287f7e){var _0x43c378=typeof _0x4c9e54[_0x761a('0x1c')]===_0x761a('0x1d')&&typeof _0x4c9e54[_0x761a('0x1e')]==='undefined';var _0x2167df=_0x287f7e[_0x761a('0x1f')];var _0x75ad11=_0x43c378?0x0:_0x4c9e54[_0x761a('0x1c')];var _0x5f35b4=_0x43c378?_0x287f7e[_0x761a('0x1f')]:_0x4c9e54[_0x761a('0x1c')]+_0x4c9e54[_0x761a('0x1e')];var _0x53af2c;if(_0x5f35b4>=_0x2167df){_0x5f35b4=_0x2167df;_0x53af2c=0xc8;}else{_0x53af2c=0xce;}_0x564619[_0x761a('0x19')](_0x53af2c);return _0x564619[_0x761a('0x20')](_0x761a('0x21'),_0x75ad11+'-'+_0x5f35b4+'/'+_0x2167df)[_0x761a('0x1b')](_0x287f7e);}return null;};}function patchUpdates(_0x38ed2c){return function(_0xb85353){try{jsonpatch[_0x761a('0x22')](_0xb85353,_0x38ed2c,!![]);}catch(_0x51341c){return BPromise[_0x761a('0x23')](_0x51341c);}return _0xb85353[_0x761a('0x24')]();};}function saveUpdates(_0x1eb452,_0x27bf78){return function(_0x39e474){if(_0x39e474){return _0x39e474[_0x761a('0x25')](_0x1eb452)[_0x761a('0x26')](function(_0x35de8a){return _0x35de8a;});}return null;};}function removeEntity(_0x549cf2,_0x2852e0){return function(_0x538046){if(_0x538046){return _0x538046[_0x761a('0x27')]()[_0x761a('0x26')](function(){_0x549cf2[_0x761a('0x19')](0xcc)[_0x761a('0x1a')]();});}};}function handleEntityNotFound(_0x5566c0,_0x446967){return function(_0x51302a){if(!_0x51302a){_0x5566c0[_0x761a('0x18')](0x194);}return _0x51302a;};}function handleError(_0x2f9d4f,_0x274d37){_0x274d37=_0x274d37||0x1f4;return function(_0x3f234c){logger[_0x761a('0x28')](_0x3f234c[_0x761a('0x29')]);if(_0x3f234c[_0x761a('0x2a')]){delete _0x3f234c[_0x761a('0x2a')];}_0x2f9d4f['status'](_0x274d37)['send'](_0x3f234c);};}exports[_0x761a('0x2b')]=function(_0x1effff,_0x887b1d){var _0x16b2fa={},_0x5376a2={},_0x38826c={'count':0x0,'rows':[]};var _0x422341=_[_0x761a('0x2c')](db[_0x761a('0x2d')][_0x761a('0x2e')],function(_0x215715){return{'name':_0x215715[_0x761a('0x2f')],'type':_0x215715[_0x761a('0x30')][_0x761a('0x31')]};});_0x5376a2[_0x761a('0x32')]=_['map'](_0x422341,'name');_0x5376a2[_0x761a('0x33')]=_['keys'](_0x1effff['query']);_0x5376a2[_0x761a('0x34')]=_[_0x761a('0x35')](_0x5376a2[_0x761a('0x32')],_0x5376a2[_0x761a('0x33')]);_0x16b2fa[_0x761a('0x36')]=_[_0x761a('0x35')](_0x5376a2[_0x761a('0x32')],qs[_0x761a('0x37')](_0x1effff[_0x761a('0x33')][_0x761a('0x37')]));_0x16b2fa[_0x761a('0x36')]=_0x16b2fa[_0x761a('0x36')][_0x761a('0x38')]?_0x16b2fa[_0x761a('0x36')]:_0x5376a2['model'];if(!_0x1effff[_0x761a('0x33')][_0x761a('0x39')](_0x761a('0x3a'))){_0x16b2fa['limit']=qs[_0x761a('0x1e')](_0x1effff['query'][_0x761a('0x1e')]);_0x16b2fa['offset']=qs[_0x761a('0x1c')](_0x1effff[_0x761a('0x33')][_0x761a('0x1c')]);}_0x16b2fa[_0x761a('0x3b')]=qs[_0x761a('0x3c')](_0x1effff[_0x761a('0x33')][_0x761a('0x3c')]);_0x16b2fa[_0x761a('0x3d')]=qs['filters'](_[_0x761a('0x3e')](_0x1effff[_0x761a('0x33')],_0x5376a2[_0x761a('0x34')]),_0x422341);if(_0x1effff['query'][_0x761a('0x3f')]){_0x16b2fa[_0x761a('0x3d')]=_[_0x761a('0x40')](_0x16b2fa[_0x761a('0x3d')],{'$or':_[_0x761a('0x2c')](_0x422341,function(_0x206c79){if(_0x206c79['type']!=='VIRTUAL'){var _0xb4815b={};_0xb4815b[_0x206c79[_0x761a('0x2a')]]={'$like':'%'+_0x1effff['query'][_0x761a('0x3f')]+'%'};return _0xb4815b;}})});}_0x16b2fa=_[_0x761a('0x40')]({},_0x16b2fa,_0x1effff[_0x761a('0x41')]);var _0x2e0005={'where':_0x16b2fa[_0x761a('0x3d')]};return db[_0x761a('0x2d')][_0x761a('0x1f')](_0x2e0005)[_0x761a('0x26')](function(_0x2d0228){_0x38826c[_0x761a('0x1f')]=_0x2d0228;if(_0x1effff['query'][_0x761a('0x42')]){_0x16b2fa[_0x761a('0x43')]=[{'all':!![]}];}return db['SmsTransferReport']['findAll'](_0x16b2fa);})['then'](function(_0x3ac8d2){_0x38826c[_0x761a('0x44')]=_0x3ac8d2;return _0x38826c;})['then'](respondWithFilteredResult(_0x887b1d,_0x16b2fa))[_0x761a('0x45')](handleError(_0x887b1d,null));};exports[_0x761a('0x46')]=function(_0x5c960d,_0x5d84f4){var _0x3dc68c={'raw':!![],'where':{'id':_0x5c960d['params']['id']}},_0x132b55={};_0x132b55['model']=_[_0x761a('0x47')](db[_0x761a('0x2d')][_0x761a('0x2e')]);_0x132b55[_0x761a('0x33')]=_[_0x761a('0x47')](_0x5c960d[_0x761a('0x33')]);_0x132b55['filters']=_['intersection'](_0x132b55[_0x761a('0x32')],_0x132b55[_0x761a('0x33')]);_0x3dc68c['attributes']=_[_0x761a('0x35')](_0x132b55[_0x761a('0x32')],qs[_0x761a('0x37')](_0x5c960d[_0x761a('0x33')]['fields']));_0x3dc68c['attributes']=_0x3dc68c[_0x761a('0x36')][_0x761a('0x38')]?_0x3dc68c['attributes']:_0x132b55['model'];if(_0x5c960d[_0x761a('0x33')][_0x761a('0x42')]){_0x3dc68c['include']=[{'all':!![]}];}_0x3dc68c=_[_0x761a('0x40')]({},_0x3dc68c,_0x5c960d['options']);return db[_0x761a('0x2d')]['find'](_0x3dc68c)[_0x761a('0x26')](handleEntityNotFound(_0x5d84f4,null))[_0x761a('0x26')](respondWithResult(_0x5d84f4,null))['catch'](handleError(_0x5d84f4,null));};exports[_0x761a('0x48')]=function(_0x54ba43,_0x3a118a){return db[_0x761a('0x2d')][_0x761a('0x48')](_0x54ba43[_0x761a('0x49')],{})['then'](respondWithResult(_0x3a118a,0xc9))['catch'](handleError(_0x3a118a,null));};exports['update']=function(_0x33fa6c,_0x53c1ce){if(_0x33fa6c[_0x761a('0x49')]['id']){delete _0x33fa6c[_0x761a('0x49')]['id'];}return db[_0x761a('0x2d')][_0x761a('0x4a')]({'where':{'id':_0x33fa6c[_0x761a('0x4b')]['id']}})['then'](handleEntityNotFound(_0x53c1ce,null))[_0x761a('0x26')](saveUpdates(_0x33fa6c[_0x761a('0x49')],null))[_0x761a('0x26')](respondWithResult(_0x53c1ce,null))[_0x761a('0x45')](handleError(_0x53c1ce,null));};exports[_0x761a('0x27')]=function(_0x224007,_0x1c05e5){return db[_0x761a('0x2d')][_0x761a('0x4a')]({'where':{'id':_0x224007[_0x761a('0x4b')]['id']}})[_0x761a('0x26')](handleEntityNotFound(_0x1c05e5,null))['then'](removeEntity(_0x1c05e5,null))['catch'](handleError(_0x1c05e5,null));};exports[_0x761a('0x4c')]=function(_0x219043,_0x3411ea){return db[_0x761a('0x2d')][_0x761a('0x4c')]()[_0x761a('0x26')](respondWithResult(_0x3411ea,null))[_0x761a('0x45')](handleError(_0x3411ea,null));};
\ No newline at end of file