Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.controller.js
index fe4878f..4a0421c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x112f=['request-promise','moment','bluebird','mustache','path','to-csv','ejs','fs-extra','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','undefined','limit','set','Content-Range','apply','save','update','then','destroy','end','stack','send','map','WhatsappTransferReport','fieldName','type','model','name','query','filters','intersection','attributes','fields','nolimit','order','sort','where','pick','filter','merge','options','count','include','rows','catch','show','params','rawAttributes','keys','includeAll','find','create','body','describe','eml-format','zip-dir'];(function(_0x4667f4,_0x2eec03){var _0x4a5141=function(_0x391924){while(--_0x391924){_0x4667f4['push'](_0x4667f4['shift']());}};_0x4a5141(++_0x2eec03);}(_0x112f,0x11e));var _0xf112=function(_0x5ca876,_0x373d34){_0x5ca876=_0x5ca876-0x0;var _0x758bb9=_0x112f[_0x5ca876];return _0x758bb9;};'use strict';var emlformat=require(_0xf112('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xf112('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0xf112('0x2'));var moment=require(_0xf112('0x3'));var BPromise=require(_0xf112('0x4'));var Mustache=require(_0xf112('0x5'));var util=require('util');var path=require(_0xf112('0x6'));var sox=require('sox');var csv=require(_0xf112('0x7'));var ejs=require(_0xf112('0x8'));var fs=require('fs');var fs_extra=require(_0xf112('0x9'));var _=require(_0xf112('0xa'));var squel=require(_0xf112('0xb'));var crypto=require(_0xf112('0xc'));var jsforce=require('jsforce');var deskjs=require(_0xf112('0xd'));var toCsv=require('to-csv');var querystring=require(_0xf112('0xe'));var Papa=require(_0xf112('0xf'));var Redis=require(_0xf112('0x10'));var authService=require(_0xf112('0x11'));var qs=require(_0xf112('0x12'));var as=require(_0xf112('0x13'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')('api');var utils=require(_0xf112('0x14'));var config=require(_0xf112('0x15'));var licenseUtil=require(_0xf112('0x16'));var db=require(_0xf112('0x17'))['db'];function respondWithStatusCode(_0x350f60,_0x330f6c){_0x330f6c=_0x330f6c||0xcc;return function(_0x401344){if(_0x401344){return _0x350f60[_0xf112('0x18')](_0x330f6c);}return _0x350f60[_0xf112('0x19')](_0x330f6c)['end']();};}function respondWithResult(_0x1381f4,_0x5c32f2){_0x5c32f2=_0x5c32f2||0xc8;return function(_0x568a07){if(_0x568a07){return _0x1381f4['status'](_0x5c32f2)[_0xf112('0x1a')](_0x568a07);}};}function respondWithFilteredResult(_0x5111e9,_0xb7fc78){return function(_0x1dabb1){if(_0x1dabb1){var _0x3e5780=typeof _0xb7fc78[_0xf112('0x1b')]===_0xf112('0x1c')&&typeof _0xb7fc78['limit']===_0xf112('0x1c');var _0xae0e54=_0x1dabb1['count'];var _0x16d575=_0x3e5780?0x0:_0xb7fc78[_0xf112('0x1b')];var _0x23872c=_0x3e5780?_0x1dabb1['count']:_0xb7fc78[_0xf112('0x1b')]+_0xb7fc78[_0xf112('0x1d')];var _0x46a02c;if(_0x23872c>=_0xae0e54){_0x23872c=_0xae0e54;_0x46a02c=0xc8;}else{_0x46a02c=0xce;}_0x5111e9[_0xf112('0x19')](_0x46a02c);return _0x5111e9[_0xf112('0x1e')](_0xf112('0x1f'),_0x16d575+'-'+_0x23872c+'/'+_0xae0e54)[_0xf112('0x1a')](_0x1dabb1);}return null;};}function patchUpdates(_0x13cc44){return function(_0x2d3a1b){try{jsonpatch[_0xf112('0x20')](_0x2d3a1b,_0x13cc44,!![]);}catch(_0x240bd4){return BPromise['reject'](_0x240bd4);}return _0x2d3a1b[_0xf112('0x21')]();};}function saveUpdates(_0x5e9599,_0xaed84c){return function(_0x8e7b25){if(_0x8e7b25){return _0x8e7b25[_0xf112('0x22')](_0x5e9599)[_0xf112('0x23')](function(_0x390f4d){return _0x390f4d;});}return null;};}function removeEntity(_0x29b6fb,_0x3f9604){return function(_0x1163b6){if(_0x1163b6){return _0x1163b6[_0xf112('0x24')]()[_0xf112('0x23')](function(){_0x29b6fb[_0xf112('0x19')](0xcc)[_0xf112('0x25')]();});}};}function handleEntityNotFound(_0x48a5c9,_0x5d9769){return function(_0x3c7a94){if(!_0x3c7a94){_0x48a5c9[_0xf112('0x18')](0x194);}return _0x3c7a94;};}function handleError(_0x4a2cc1,_0x44e546){_0x44e546=_0x44e546||0x1f4;return function(_0x16a491){logger['error'](_0x16a491[_0xf112('0x26')]);if(_0x16a491['name']){delete _0x16a491['name'];}_0x4a2cc1[_0xf112('0x19')](_0x44e546)[_0xf112('0x27')](_0x16a491);};}exports['index']=function(_0x50ca78,_0x167c07){var _0x2d8156={},_0x85dc43={},_0x17f157={'count':0x0,'rows':[]};var _0xd6484b=_[_0xf112('0x28')](db[_0xf112('0x29')]['rawAttributes'],function(_0x55db9d){return{'name':_0x55db9d[_0xf112('0x2a')],'type':_0x55db9d[_0xf112('0x2b')]['key']};});_0x85dc43[_0xf112('0x2c')]=_['map'](_0xd6484b,_0xf112('0x2d'));_0x85dc43[_0xf112('0x2e')]=_['keys'](_0x50ca78[_0xf112('0x2e')]);_0x85dc43[_0xf112('0x2f')]=_[_0xf112('0x30')](_0x85dc43['model'],_0x85dc43[_0xf112('0x2e')]);_0x2d8156[_0xf112('0x31')]=_[_0xf112('0x30')](_0x85dc43['model'],qs[_0xf112('0x32')](_0x50ca78['query'][_0xf112('0x32')]));_0x2d8156[_0xf112('0x31')]=_0x2d8156[_0xf112('0x31')]['length']?_0x2d8156[_0xf112('0x31')]:_0x85dc43[_0xf112('0x2c')];if(!_0x50ca78['query']['hasOwnProperty'](_0xf112('0x33'))){_0x2d8156[_0xf112('0x1d')]=qs[_0xf112('0x1d')](_0x50ca78[_0xf112('0x2e')][_0xf112('0x1d')]);_0x2d8156[_0xf112('0x1b')]=qs[_0xf112('0x1b')](_0x50ca78[_0xf112('0x2e')][_0xf112('0x1b')]);}_0x2d8156[_0xf112('0x34')]=qs[_0xf112('0x35')](_0x50ca78[_0xf112('0x2e')]['sort']);_0x2d8156[_0xf112('0x36')]=qs[_0xf112('0x2f')](_[_0xf112('0x37')](_0x50ca78[_0xf112('0x2e')],_0x85dc43['filters']),_0xd6484b);if(_0x50ca78[_0xf112('0x2e')][_0xf112('0x38')]){_0x2d8156[_0xf112('0x36')]=_[_0xf112('0x39')](_0x2d8156[_0xf112('0x36')],{'$or':_['map'](_0xd6484b,function(_0x1904c1){if(_0x1904c1['type']!=='VIRTUAL'){var _0x16c7d9={};_0x16c7d9[_0x1904c1[_0xf112('0x2d')]]={'$like':'%'+_0x50ca78[_0xf112('0x2e')][_0xf112('0x38')]+'%'};return _0x16c7d9;}})});}_0x2d8156=_['merge']({},_0x2d8156,_0x50ca78[_0xf112('0x3a')]);var _0x519ff7={'where':_0x2d8156[_0xf112('0x36')]};return db[_0xf112('0x29')]['count'](_0x519ff7)[_0xf112('0x23')](function(_0x31bf17){_0x17f157[_0xf112('0x3b')]=_0x31bf17;if(_0x50ca78[_0xf112('0x2e')]['includeAll']){_0x2d8156[_0xf112('0x3c')]=[{'all':!![]}];}return db[_0xf112('0x29')]['findAll'](_0x2d8156);})[_0xf112('0x23')](function(_0x685a5a){_0x17f157[_0xf112('0x3d')]=_0x685a5a;return _0x17f157;})['then'](respondWithFilteredResult(_0x167c07,_0x2d8156))[_0xf112('0x3e')](handleError(_0x167c07,null));};exports[_0xf112('0x3f')]=function(_0x1ebeef,_0x1858c6){var _0x147e05={'raw':!![],'where':{'id':_0x1ebeef[_0xf112('0x40')]['id']}},_0x1c0f45={};_0x1c0f45[_0xf112('0x2c')]=_['keys'](db[_0xf112('0x29')][_0xf112('0x41')]);_0x1c0f45['query']=_[_0xf112('0x42')](_0x1ebeef[_0xf112('0x2e')]);_0x1c0f45['filters']=_[_0xf112('0x30')](_0x1c0f45[_0xf112('0x2c')],_0x1c0f45['query']);_0x147e05[_0xf112('0x31')]=_[_0xf112('0x30')](_0x1c0f45[_0xf112('0x2c')],qs[_0xf112('0x32')](_0x1ebeef[_0xf112('0x2e')][_0xf112('0x32')]));_0x147e05[_0xf112('0x31')]=_0x147e05[_0xf112('0x31')]['length']?_0x147e05['attributes']:_0x1c0f45[_0xf112('0x2c')];if(_0x1ebeef[_0xf112('0x2e')][_0xf112('0x43')]){_0x147e05[_0xf112('0x3c')]=[{'all':!![]}];}_0x147e05=_[_0xf112('0x39')]({},_0x147e05,_0x1ebeef[_0xf112('0x3a')]);return db[_0xf112('0x29')][_0xf112('0x44')](_0x147e05)[_0xf112('0x23')](handleEntityNotFound(_0x1858c6,null))[_0xf112('0x23')](respondWithResult(_0x1858c6,null))[_0xf112('0x3e')](handleError(_0x1858c6,null));};exports[_0xf112('0x45')]=function(_0x31cab8,_0x1b496e){return db[_0xf112('0x29')][_0xf112('0x45')](_0x31cab8[_0xf112('0x46')],{})['then'](respondWithResult(_0x1b496e,0xc9))[_0xf112('0x3e')](handleError(_0x1b496e,null));};exports[_0xf112('0x22')]=function(_0x34c66d,_0x51a6c4){if(_0x34c66d[_0xf112('0x46')]['id']){delete _0x34c66d[_0xf112('0x46')]['id'];}return db['WhatsappTransferReport']['find']({'where':{'id':_0x34c66d['params']['id']}})['then'](handleEntityNotFound(_0x51a6c4,null))['then'](saveUpdates(_0x34c66d[_0xf112('0x46')],null))[_0xf112('0x23')](respondWithResult(_0x51a6c4,null))[_0xf112('0x3e')](handleError(_0x51a6c4,null));};exports[_0xf112('0x24')]=function(_0x5de006,_0x3faa34){return db[_0xf112('0x29')]['find']({'where':{'id':_0x5de006[_0xf112('0x40')]['id']}})[_0xf112('0x23')](handleEntityNotFound(_0x3faa34,null))['then'](removeEntity(_0x3faa34,null))[_0xf112('0x3e')](handleError(_0x3faa34,null));};exports['describe']=function(_0x3683bd,_0x4f9d58){return db['WhatsappTransferReport'][_0xf112('0x47')]()[_0xf112('0x23')](respondWithResult(_0x4f9d58,null))[_0xf112('0x3e')](handleError(_0x4f9d58,null));};
\ No newline at end of file
+var _0x58bb=['sox','ejs','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','offset','undefined','limit','count','status','set','Content-Range','json','apply','reject','update','then','destroy','end','error','stack','name','send','index','map','rawAttributes','fieldName','type','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','order','sort','where','pick','filter','merge','VIRTUAL','options','WhatsappTransferReport','include','rows','show','params','includeAll','find','catch','create','body','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util'];(function(_0x26ba21,_0x541f11){var _0x350878=function(_0x345d45){while(--_0x345d45){_0x26ba21['push'](_0x26ba21['shift']());}};_0x350878(++_0x541f11);}(_0x58bb,0x1d8));var _0xb58b=function(_0x571006,_0x5771b0){_0x571006=_0x571006-0x0;var _0x1bb781=_0x58bb[_0x571006];return _0x1bb781;};'use strict';var emlformat=require(_0xb58b('0x0'));var rimraf=require(_0xb58b('0x1'));var zipdir=require(_0xb58b('0x2'));var jsonpatch=require(_0xb58b('0x3'));var rp=require(_0xb58b('0x4'));var moment=require(_0xb58b('0x5'));var BPromise=require('bluebird');var Mustache=require(_0xb58b('0x6'));var util=require(_0xb58b('0x7'));var path=require('path');var sox=require(_0xb58b('0x8'));var csv=require('to-csv');var ejs=require(_0xb58b('0x9'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xb58b('0xa'));var squel=require(_0xb58b('0xb'));var crypto=require(_0xb58b('0xc'));var jsforce=require(_0xb58b('0xd'));var deskjs=require(_0xb58b('0xe'));var toCsv=require(_0xb58b('0xf'));var querystring=require(_0xb58b('0x10'));var Papa=require(_0xb58b('0x11'));var Redis=require('ioredis');var authService=require(_0xb58b('0x12'));var qs=require(_0xb58b('0x13'));var as=require(_0xb58b('0x14'));var hardwareService=require(_0xb58b('0x15'));var logger=require(_0xb58b('0x16'))(_0xb58b('0x17'));var utils=require(_0xb58b('0x18'));var config=require(_0xb58b('0x19'));var licenseUtil=require(_0xb58b('0x1a'));var db=require(_0xb58b('0x1b'))['db'];function respondWithStatusCode(_0x4f4aa1,_0x2b949e){_0x2b949e=_0x2b949e||0xcc;return function(_0x57af4e){if(_0x57af4e){return _0x4f4aa1[_0xb58b('0x1c')](_0x2b949e);}return _0x4f4aa1['status'](_0x2b949e)['end']();};}function respondWithResult(_0x267125,_0xc308a3){_0xc308a3=_0xc308a3||0xc8;return function(_0x3dfc4b){if(_0x3dfc4b){return _0x267125['status'](_0xc308a3)['json'](_0x3dfc4b);}};}function respondWithFilteredResult(_0x557a23,_0x52dd4d){return function(_0x46bde3){if(_0x46bde3){var _0x315871=typeof _0x52dd4d[_0xb58b('0x1d')]===_0xb58b('0x1e')&&typeof _0x52dd4d[_0xb58b('0x1f')]===_0xb58b('0x1e');var _0x305d9b=_0x46bde3[_0xb58b('0x20')];var _0x1385c5=_0x315871?0x0:_0x52dd4d['offset'];var _0x470324=_0x315871?_0x46bde3[_0xb58b('0x20')]:_0x52dd4d[_0xb58b('0x1d')]+_0x52dd4d[_0xb58b('0x1f')];var _0xd9e5fb;if(_0x470324>=_0x305d9b){_0x470324=_0x305d9b;_0xd9e5fb=0xc8;}else{_0xd9e5fb=0xce;}_0x557a23[_0xb58b('0x21')](_0xd9e5fb);return _0x557a23[_0xb58b('0x22')](_0xb58b('0x23'),_0x1385c5+'-'+_0x470324+'/'+_0x305d9b)[_0xb58b('0x24')](_0x46bde3);}return null;};}function patchUpdates(_0xd18aa7){return function(_0x1d48d9){try{jsonpatch[_0xb58b('0x25')](_0x1d48d9,_0xd18aa7,!![]);}catch(_0xc58ecc){return BPromise[_0xb58b('0x26')](_0xc58ecc);}return _0x1d48d9['save']();};}function saveUpdates(_0x1a874f,_0x2024bb){return function(_0x363647){if(_0x363647){return _0x363647[_0xb58b('0x27')](_0x1a874f)[_0xb58b('0x28')](function(_0x3b3cdd){return _0x3b3cdd;});}return null;};}function removeEntity(_0x2ef3a8,_0x4ca4fe){return function(_0x7f9ad3){if(_0x7f9ad3){return _0x7f9ad3[_0xb58b('0x29')]()['then'](function(){_0x2ef3a8['status'](0xcc)[_0xb58b('0x2a')]();});}};}function handleEntityNotFound(_0x329c6d,_0x231c77){return function(_0x17f0e9){if(!_0x17f0e9){_0x329c6d[_0xb58b('0x1c')](0x194);}return _0x17f0e9;};}function handleError(_0x4ca36a,_0x494f44){_0x494f44=_0x494f44||0x1f4;return function(_0x23f329){logger[_0xb58b('0x2b')](_0x23f329[_0xb58b('0x2c')]);if(_0x23f329[_0xb58b('0x2d')]){delete _0x23f329[_0xb58b('0x2d')];}_0x4ca36a[_0xb58b('0x21')](_0x494f44)[_0xb58b('0x2e')](_0x23f329);};}exports[_0xb58b('0x2f')]=function(_0x707d13,_0x23cbe8){var _0x457fcd={},_0x381376={},_0x2ce469={'count':0x0,'rows':[]};var _0x45288c=_[_0xb58b('0x30')](db['WhatsappTransferReport'][_0xb58b('0x31')],function(_0x359ed2){return{'name':_0x359ed2[_0xb58b('0x32')],'type':_0x359ed2[_0xb58b('0x33')]['key']};});_0x381376[_0xb58b('0x34')]=_[_0xb58b('0x30')](_0x45288c,'name');_0x381376[_0xb58b('0x35')]=_[_0xb58b('0x36')](_0x707d13[_0xb58b('0x35')]);_0x381376[_0xb58b('0x37')]=_[_0xb58b('0x38')](_0x381376[_0xb58b('0x34')],_0x381376[_0xb58b('0x35')]);_0x457fcd['attributes']=_[_0xb58b('0x38')](_0x381376[_0xb58b('0x34')],qs['fields'](_0x707d13[_0xb58b('0x35')][_0xb58b('0x39')]));_0x457fcd[_0xb58b('0x3a')]=_0x457fcd['attributes'][_0xb58b('0x3b')]?_0x457fcd[_0xb58b('0x3a')]:_0x381376['model'];if(!_0x707d13['query'][_0xb58b('0x3c')]('nolimit')){_0x457fcd[_0xb58b('0x1f')]=qs[_0xb58b('0x1f')](_0x707d13['query']['limit']);_0x457fcd[_0xb58b('0x1d')]=qs[_0xb58b('0x1d')](_0x707d13[_0xb58b('0x35')][_0xb58b('0x1d')]);}_0x457fcd[_0xb58b('0x3d')]=qs['sort'](_0x707d13[_0xb58b('0x35')][_0xb58b('0x3e')]);_0x457fcd[_0xb58b('0x3f')]=qs['filters'](_[_0xb58b('0x40')](_0x707d13['query'],_0x381376[_0xb58b('0x37')]),_0x45288c);if(_0x707d13['query'][_0xb58b('0x41')]){_0x457fcd['where']=_[_0xb58b('0x42')](_0x457fcd[_0xb58b('0x3f')],{'$or':_['map'](_0x45288c,function(_0x35fd4e){if(_0x35fd4e[_0xb58b('0x33')]!==_0xb58b('0x43')){var _0x1f462e={};_0x1f462e[_0x35fd4e[_0xb58b('0x2d')]]={'$like':'%'+_0x707d13[_0xb58b('0x35')][_0xb58b('0x41')]+'%'};return _0x1f462e;}})});}_0x457fcd=_[_0xb58b('0x42')]({},_0x457fcd,_0x707d13[_0xb58b('0x44')]);var _0x418ba3={'where':_0x457fcd[_0xb58b('0x3f')]};return db[_0xb58b('0x45')]['count'](_0x418ba3)[_0xb58b('0x28')](function(_0xfbab27){_0x2ce469['count']=_0xfbab27;if(_0x707d13[_0xb58b('0x35')]['includeAll']){_0x457fcd[_0xb58b('0x46')]=[{'all':!![]}];}return db['WhatsappTransferReport']['findAll'](_0x457fcd);})['then'](function(_0x3d9223){_0x2ce469[_0xb58b('0x47')]=_0x3d9223;return _0x2ce469;})['then'](respondWithFilteredResult(_0x23cbe8,_0x457fcd))['catch'](handleError(_0x23cbe8,null));};exports[_0xb58b('0x48')]=function(_0x37d0b6,_0x26be3f){var _0x332be7={'raw':!![],'where':{'id':_0x37d0b6[_0xb58b('0x49')]['id']}},_0x5dd6e2={};_0x5dd6e2[_0xb58b('0x34')]=_['keys'](db['WhatsappTransferReport'][_0xb58b('0x31')]);_0x5dd6e2['query']=_['keys'](_0x37d0b6[_0xb58b('0x35')]);_0x5dd6e2[_0xb58b('0x37')]=_[_0xb58b('0x38')](_0x5dd6e2['model'],_0x5dd6e2[_0xb58b('0x35')]);_0x332be7[_0xb58b('0x3a')]=_[_0xb58b('0x38')](_0x5dd6e2[_0xb58b('0x34')],qs[_0xb58b('0x39')](_0x37d0b6[_0xb58b('0x35')][_0xb58b('0x39')]));_0x332be7[_0xb58b('0x3a')]=_0x332be7[_0xb58b('0x3a')][_0xb58b('0x3b')]?_0x332be7[_0xb58b('0x3a')]:_0x5dd6e2[_0xb58b('0x34')];if(_0x37d0b6[_0xb58b('0x35')][_0xb58b('0x4a')]){_0x332be7[_0xb58b('0x46')]=[{'all':!![]}];}_0x332be7=_[_0xb58b('0x42')]({},_0x332be7,_0x37d0b6['options']);return db[_0xb58b('0x45')][_0xb58b('0x4b')](_0x332be7)[_0xb58b('0x28')](handleEntityNotFound(_0x26be3f,null))[_0xb58b('0x28')](respondWithResult(_0x26be3f,null))[_0xb58b('0x4c')](handleError(_0x26be3f,null));};exports[_0xb58b('0x4d')]=function(_0xb59b55,_0x43d8fd){return db['WhatsappTransferReport']['create'](_0xb59b55[_0xb58b('0x4e')],{})[_0xb58b('0x28')](respondWithResult(_0x43d8fd,0xc9))[_0xb58b('0x4c')](handleError(_0x43d8fd,null));};exports[_0xb58b('0x27')]=function(_0x5f3d00,_0x4a67fd){if(_0x5f3d00[_0xb58b('0x4e')]['id']){delete _0x5f3d00[_0xb58b('0x4e')]['id'];}return db[_0xb58b('0x45')][_0xb58b('0x4b')]({'where':{'id':_0x5f3d00['params']['id']}})[_0xb58b('0x28')](handleEntityNotFound(_0x4a67fd,null))[_0xb58b('0x28')](saveUpdates(_0x5f3d00[_0xb58b('0x4e')],null))[_0xb58b('0x28')](respondWithResult(_0x4a67fd,null))['catch'](handleError(_0x4a67fd,null));};exports[_0xb58b('0x29')]=function(_0x4dc758,_0x3d0b9f){return db['WhatsappTransferReport'][_0xb58b('0x4b')]({'where':{'id':_0x4dc758[_0xb58b('0x49')]['id']}})[_0xb58b('0x28')](handleEntityNotFound(_0x3d0b9f,null))[_0xb58b('0x28')](removeEntity(_0x3d0b9f,null))[_0xb58b('0x4c')](handleError(_0x3d0b9f,null));};exports[_0xb58b('0x4f')]=function(_0x51471e,_0xcc9e12){return db[_0xb58b('0x45')][_0xb58b('0x4f')]()[_0xb58b('0x28')](respondWithResult(_0xcc9e12,null))[_0xb58b('0x4c')](handleError(_0xcc9e12,null));};
\ No newline at end of file