Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / whatsappQueueReport / whatsappQueueReport.controller.js
index 695d5a8..95a6d5f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3f29=['json','offset','set','Content-Range','apply','reject','save','update','then','status','error','stack','name','send','map','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','fields','attributes','hasOwnProperty','limit','order','sort','where','pick','filter','merge','VIRTUAL','options','WhatsappQueueReport','count','include','findAll','catch','params','length','includeAll','find','create','body','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','ejs','lodash','squel','jsforce','desk.js','to-csv','papaparse','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end'];(function(_0x5cf506,_0x246a7b){var _0x49bd2d=function(_0x11f344){while(--_0x11f344){_0x5cf506['push'](_0x5cf506['shift']());}};_0x49bd2d(++_0x246a7b);}(_0x3f29,0xc5));var _0x93f2=function(_0x311c35,_0x534915){_0x311c35=_0x311c35-0x0;var _0x5cc50c=_0x3f29[_0x311c35];return _0x5cc50c;};'use strict';var pdf=require(_0x93f2('0x0'));var emlformat=require(_0x93f2('0x1'));var rimraf=require(_0x93f2('0x2'));var zipdir=require(_0x93f2('0x3'));var jsonpatch=require(_0x93f2('0x4'));var rp=require(_0x93f2('0x5'));var moment=require(_0x93f2('0x6'));var BPromise=require(_0x93f2('0x7'));var Mustache=require(_0x93f2('0x8'));var util=require(_0x93f2('0x9'));var path=require('path');var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x93f2('0xa'));var fs=require('fs');var _=require(_0x93f2('0xb'));var squel=require(_0x93f2('0xc'));var crypto=require('crypto');var jsforce=require(_0x93f2('0xd'));var deskjs=require(_0x93f2('0xe'));var toCsv=require(_0x93f2('0xf'));var querystring=require('querystring');var Papa=require(_0x93f2('0x10'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0x93f2('0x11'));var as=require(_0x93f2('0x12'));var hardwareService=require(_0x93f2('0x13'));var logger=require(_0x93f2('0x14'))(_0x93f2('0x15'));var utils=require(_0x93f2('0x16'));var config=require(_0x93f2('0x17'));var licenseUtil=require(_0x93f2('0x18'));var db=require(_0x93f2('0x19'))['db'];function respondWithStatusCode(_0x575b15,_0x412953){_0x412953=_0x412953||0xcc;return function(_0x2efc39){if(_0x2efc39){return _0x575b15[_0x93f2('0x1a')](_0x412953);}return _0x575b15['status'](_0x412953)[_0x93f2('0x1b')]();};}function respondWithResult(_0x2957d8,_0xfbf43d){_0xfbf43d=_0xfbf43d||0xc8;return function(_0x2bbc34){if(_0x2bbc34){return _0x2957d8['status'](_0xfbf43d)[_0x93f2('0x1c')](_0x2bbc34);}};}function respondWithFilteredResult(_0x352784,_0x55f53c){return function(_0x440c45){if(_0x440c45){var _0x4c200f=_0x440c45['count'],_0x591257=_0x55f53c['offset'],_0x189d57=_0x55f53c[_0x93f2('0x1d')]+_0x55f53c['limit'],_0x583f01;if(_0x189d57>=_0x4c200f){_0x189d57=_0x4c200f;_0x583f01=0xc8;}else{_0x583f01=0xce;}_0x352784['status'](_0x583f01);return _0x352784[_0x93f2('0x1e')](_0x93f2('0x1f'),_0x591257+'-'+_0x189d57+'/'+_0x4c200f)['json'](_0x440c45);}return null;};}function patchUpdates(_0x55bfa1){return function(_0x2a5a65){try{jsonpatch[_0x93f2('0x20')](_0x2a5a65,_0x55bfa1,!![]);}catch(_0x3362f9){return BPromise[_0x93f2('0x21')](_0x3362f9);}return _0x2a5a65[_0x93f2('0x22')]();};}function saveUpdates(_0x57aa1c,_0x3f969a){return function(_0x1882a7){if(_0x1882a7){return _0x1882a7[_0x93f2('0x23')](_0x57aa1c)[_0x93f2('0x24')](function(_0x346f23){return _0x346f23;});}return null;};}function removeEntity(_0x368021,_0x4d3315){return function(_0x299904){if(_0x299904){return _0x299904['destroy']()['then'](function(){_0x368021[_0x93f2('0x25')](0xcc)[_0x93f2('0x1b')]();});}};}function handleEntityNotFound(_0x282eeb,_0x5f3404){return function(_0x1bce34){if(!_0x1bce34){_0x282eeb[_0x93f2('0x1a')](0x194);}return _0x1bce34;};}function handleError(_0x447e88,_0x40eab6){_0x40eab6=_0x40eab6||0x1f4;return function(_0x6a9619){logger[_0x93f2('0x26')](_0x6a9619[_0x93f2('0x27')]);if(_0x6a9619[_0x93f2('0x28')]){delete _0x6a9619[_0x93f2('0x28')];}_0x447e88[_0x93f2('0x25')](_0x40eab6)[_0x93f2('0x29')](_0x6a9619);};}exports['index']=function(_0xae9c3c,_0x1cd0cd){var _0x43d82e={},_0x1dc0c0={},_0x17b0d9={'count':0x0,'rows':[]};var _0x517cd5=_[_0x93f2('0x2a')](db['WhatsappQueueReport'][_0x93f2('0x2b')],function(_0x4ddd2d){return{'name':_0x4ddd2d[_0x93f2('0x2c')],'type':_0x4ddd2d[_0x93f2('0x2d')][_0x93f2('0x2e')]};});_0x1dc0c0[_0x93f2('0x2f')]=_['map'](_0x517cd5,'name');_0x1dc0c0[_0x93f2('0x30')]=_[_0x93f2('0x31')](_0xae9c3c[_0x93f2('0x30')]);_0x1dc0c0[_0x93f2('0x32')]=_[_0x93f2('0x33')](_0x1dc0c0[_0x93f2('0x2f')],_0x1dc0c0['query']);_0x43d82e['attributes']=_[_0x93f2('0x33')](_0x1dc0c0['model'],qs[_0x93f2('0x34')](_0xae9c3c['query'][_0x93f2('0x34')]));_0x43d82e[_0x93f2('0x35')]=_0x43d82e[_0x93f2('0x35')]['length']?_0x43d82e[_0x93f2('0x35')]:_0x1dc0c0[_0x93f2('0x2f')];if(!_0xae9c3c[_0x93f2('0x30')][_0x93f2('0x36')]('nolimit')){_0x43d82e[_0x93f2('0x37')]=qs[_0x93f2('0x37')](_0xae9c3c['query'][_0x93f2('0x37')]);_0x43d82e[_0x93f2('0x1d')]=qs[_0x93f2('0x1d')](_0xae9c3c[_0x93f2('0x30')][_0x93f2('0x1d')]);}_0x43d82e[_0x93f2('0x38')]=qs[_0x93f2('0x39')](_0xae9c3c[_0x93f2('0x30')][_0x93f2('0x39')]);_0x43d82e[_0x93f2('0x3a')]=qs['filters'](_[_0x93f2('0x3b')](_0xae9c3c[_0x93f2('0x30')],_0x1dc0c0[_0x93f2('0x32')]),_0x517cd5);if(_0xae9c3c['query'][_0x93f2('0x3c')]){_0x43d82e[_0x93f2('0x3a')]=_[_0x93f2('0x3d')](_0x43d82e[_0x93f2('0x3a')],{'$or':_[_0x93f2('0x2a')](_0x517cd5,function(_0x3cc774){if(_0x3cc774[_0x93f2('0x2d')]!==_0x93f2('0x3e')){var _0x1baad8={};_0x1baad8[_0x3cc774[_0x93f2('0x28')]]={'$like':'%'+_0xae9c3c[_0x93f2('0x30')][_0x93f2('0x3c')]+'%'};return _0x1baad8;}})});}_0x43d82e=_['merge']({},_0x43d82e,_0xae9c3c[_0x93f2('0x3f')]);var _0x568e14={'where':_0x43d82e['where']};return db[_0x93f2('0x40')][_0x93f2('0x41')](_0x568e14)['then'](function(_0x2653de){_0x17b0d9[_0x93f2('0x41')]=_0x2653de;if(_0xae9c3c[_0x93f2('0x30')]['includeAll']){_0x43d82e[_0x93f2('0x42')]=[{'all':!![]}];}return db['WhatsappQueueReport'][_0x93f2('0x43')](_0x43d82e);})[_0x93f2('0x24')](function(_0x34e89c){_0x17b0d9['rows']=_0x34e89c;return _0x17b0d9;})[_0x93f2('0x24')](respondWithFilteredResult(_0x1cd0cd,_0x43d82e))[_0x93f2('0x44')](handleError(_0x1cd0cd,null));};exports['show']=function(_0x3f909d,_0x41dedc){var _0x35b8c6={'raw':!![],'where':{'id':_0x3f909d[_0x93f2('0x45')]['id']}},_0x1f3ed7={};_0x1f3ed7[_0x93f2('0x2f')]=_[_0x93f2('0x31')](db[_0x93f2('0x40')][_0x93f2('0x2b')]);_0x1f3ed7[_0x93f2('0x30')]=_[_0x93f2('0x31')](_0x3f909d['query']);_0x1f3ed7[_0x93f2('0x32')]=_[_0x93f2('0x33')](_0x1f3ed7['model'],_0x1f3ed7[_0x93f2('0x30')]);_0x35b8c6[_0x93f2('0x35')]=_[_0x93f2('0x33')](_0x1f3ed7['model'],qs[_0x93f2('0x34')](_0x3f909d[_0x93f2('0x30')][_0x93f2('0x34')]));_0x35b8c6[_0x93f2('0x35')]=_0x35b8c6[_0x93f2('0x35')][_0x93f2('0x46')]?_0x35b8c6['attributes']:_0x1f3ed7['model'];if(_0x3f909d['query'][_0x93f2('0x47')]){_0x35b8c6[_0x93f2('0x42')]=[{'all':!![]}];}_0x35b8c6=_[_0x93f2('0x3d')]({},_0x35b8c6,_0x3f909d[_0x93f2('0x3f')]);return db[_0x93f2('0x40')][_0x93f2('0x48')](_0x35b8c6)[_0x93f2('0x24')](handleEntityNotFound(_0x41dedc,null))[_0x93f2('0x24')](respondWithResult(_0x41dedc,null))[_0x93f2('0x44')](handleError(_0x41dedc,null));};exports[_0x93f2('0x49')]=function(_0x37472a,_0x10d49c){return db[_0x93f2('0x40')][_0x93f2('0x49')](_0x37472a[_0x93f2('0x4a')],{})['then'](respondWithResult(_0x10d49c,0xc9))[_0x93f2('0x44')](handleError(_0x10d49c,null));};exports[_0x93f2('0x23')]=function(_0x4432a9,_0x494873){if(_0x4432a9[_0x93f2('0x4a')]['id']){delete _0x4432a9[_0x93f2('0x4a')]['id'];}return db[_0x93f2('0x40')]['find']({'where':{'id':_0x4432a9[_0x93f2('0x45')]['id']}})['then'](handleEntityNotFound(_0x494873,null))[_0x93f2('0x24')](saveUpdates(_0x4432a9['body'],null))[_0x93f2('0x24')](respondWithResult(_0x494873,null))['catch'](handleError(_0x494873,null));};exports['destroy']=function(_0x1600c4,_0x3e7fd5){return db[_0x93f2('0x40')][_0x93f2('0x48')]({'where':{'id':_0x1600c4[_0x93f2('0x45')]['id']}})[_0x93f2('0x24')](handleEntityNotFound(_0x3e7fd5,null))[_0x93f2('0x24')](removeEntity(_0x3e7fd5,null))[_0x93f2('0x44')](handleError(_0x3e7fd5,null));};exports['describe']=function(_0x4413b7,_0x13b2db){return db['WhatsappQueueReport']['describe']()['then'](respondWithResult(_0x13b2db,null))[_0x93f2('0x44')](handleError(_0x13b2db,null));};
\ No newline at end of file
+var _0xb62e=['length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','then','includeAll','findAll','show','find','catch','create','body','update','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','path','sox','ejs','fs-extra','lodash','crypto','jsforce','desk.js','to-csv','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','end','status','json','offset','undefined','limit','count','set','Content-Range','reject','save','stack','name','send','index','map','WhatsappQueueReport','rawAttributes','type','key','model','query','keys','filters','attributes','fields'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xb62e,0x1de));var _0xeb62=function(_0x160c73,_0x2ee678){_0x160c73=_0x160c73-0x0;var _0xd9302=_0xb62e[_0x160c73];return _0xd9302;};'use strict';var emlformat=require(_0xeb62('0x0'));var rimraf=require(_0xeb62('0x1'));var zipdir=require(_0xeb62('0x2'));var jsonpatch=require(_0xeb62('0x3'));var rp=require('request-promise');var moment=require(_0xeb62('0x4'));var BPromise=require(_0xeb62('0x5'));var Mustache=require(_0xeb62('0x6'));var util=require(_0xeb62('0x7'));var path=require(_0xeb62('0x8'));var sox=require(_0xeb62('0x9'));var csv=require('to-csv');var ejs=require(_0xeb62('0xa'));var fs=require('fs');var fs_extra=require(_0xeb62('0xb'));var _=require(_0xeb62('0xc'));var squel=require('squel');var crypto=require(_0xeb62('0xd'));var jsforce=require(_0xeb62('0xe'));var deskjs=require(_0xeb62('0xf'));var toCsv=require(_0xeb62('0x10'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require(_0xeb62('0x11'));var authService=require(_0xeb62('0x12'));var qs=require(_0xeb62('0x13'));var as=require(_0xeb62('0x14'));var hardwareService=require(_0xeb62('0x15'));var logger=require(_0xeb62('0x16'))(_0xeb62('0x17'));var utils=require(_0xeb62('0x18'));var config=require(_0xeb62('0x19'));var licenseUtil=require(_0xeb62('0x1a'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x422daf,_0xcc11c4){_0xcc11c4=_0xcc11c4||0xcc;return function(_0x27671e){if(_0x27671e){return _0x422daf[_0xeb62('0x1b')](_0xcc11c4);}return _0x422daf['status'](_0xcc11c4)[_0xeb62('0x1c')]();};}function respondWithResult(_0x2fbad2,_0x23fb15){_0x23fb15=_0x23fb15||0xc8;return function(_0x4da178){if(_0x4da178){return _0x2fbad2[_0xeb62('0x1d')](_0x23fb15)[_0xeb62('0x1e')](_0x4da178);}};}function respondWithFilteredResult(_0x2fd4c7,_0x4ce9fa){return function(_0x1f6a1f){if(_0x1f6a1f){var _0x15b3e8=typeof _0x4ce9fa[_0xeb62('0x1f')]===_0xeb62('0x20')&&typeof _0x4ce9fa[_0xeb62('0x21')]===_0xeb62('0x20');var _0x1fb460=_0x1f6a1f[_0xeb62('0x22')];var _0x39b138=_0x15b3e8?0x0:_0x4ce9fa[_0xeb62('0x1f')];var _0x27efc8=_0x15b3e8?_0x1f6a1f[_0xeb62('0x22')]:_0x4ce9fa[_0xeb62('0x1f')]+_0x4ce9fa['limit'];var _0x38c5e4;if(_0x27efc8>=_0x1fb460){_0x27efc8=_0x1fb460;_0x38c5e4=0xc8;}else{_0x38c5e4=0xce;}_0x2fd4c7[_0xeb62('0x1d')](_0x38c5e4);return _0x2fd4c7[_0xeb62('0x23')](_0xeb62('0x24'),_0x39b138+'-'+_0x27efc8+'/'+_0x1fb460)[_0xeb62('0x1e')](_0x1f6a1f);}return null;};}function patchUpdates(_0x24cbf3){return function(_0x2ed96d){try{jsonpatch['apply'](_0x2ed96d,_0x24cbf3,!![]);}catch(_0x599d0b){return BPromise[_0xeb62('0x25')](_0x599d0b);}return _0x2ed96d[_0xeb62('0x26')]();};}function saveUpdates(_0x11ed9c,_0x13243f){return function(_0x122b15){if(_0x122b15){return _0x122b15['update'](_0x11ed9c)['then'](function(_0x4664ce){return _0x4664ce;});}return null;};}function removeEntity(_0x132861,_0x182781){return function(_0x395b70){if(_0x395b70){return _0x395b70['destroy']()['then'](function(){_0x132861[_0xeb62('0x1d')](0xcc)['end']();});}};}function handleEntityNotFound(_0x448327,_0x4b0f46){return function(_0xfe3e16){if(!_0xfe3e16){_0x448327['sendStatus'](0x194);}return _0xfe3e16;};}function handleError(_0x3ac28c,_0x6bfbbc){_0x6bfbbc=_0x6bfbbc||0x1f4;return function(_0x46d1bb){logger['error'](_0x46d1bb[_0xeb62('0x27')]);if(_0x46d1bb[_0xeb62('0x28')]){delete _0x46d1bb[_0xeb62('0x28')];}_0x3ac28c[_0xeb62('0x1d')](_0x6bfbbc)[_0xeb62('0x29')](_0x46d1bb);};}exports[_0xeb62('0x2a')]=function(_0x511202,_0x192517){var _0x1616ee={},_0x57169a={},_0x157474={'count':0x0,'rows':[]};var _0x2b51b2=_[_0xeb62('0x2b')](db[_0xeb62('0x2c')][_0xeb62('0x2d')],function(_0x5195bf){return{'name':_0x5195bf['fieldName'],'type':_0x5195bf[_0xeb62('0x2e')][_0xeb62('0x2f')]};});_0x57169a[_0xeb62('0x30')]=_[_0xeb62('0x2b')](_0x2b51b2,_0xeb62('0x28'));_0x57169a[_0xeb62('0x31')]=_[_0xeb62('0x32')](_0x511202['query']);_0x57169a[_0xeb62('0x33')]=_['intersection'](_0x57169a['model'],_0x57169a[_0xeb62('0x31')]);_0x1616ee[_0xeb62('0x34')]=_['intersection'](_0x57169a[_0xeb62('0x30')],qs['fields'](_0x511202[_0xeb62('0x31')][_0xeb62('0x35')]));_0x1616ee['attributes']=_0x1616ee[_0xeb62('0x34')][_0xeb62('0x36')]?_0x1616ee['attributes']:_0x57169a[_0xeb62('0x30')];if(!_0x511202[_0xeb62('0x31')][_0xeb62('0x37')](_0xeb62('0x38'))){_0x1616ee['limit']=qs[_0xeb62('0x21')](_0x511202[_0xeb62('0x31')]['limit']);_0x1616ee['offset']=qs[_0xeb62('0x1f')](_0x511202[_0xeb62('0x31')]['offset']);}_0x1616ee[_0xeb62('0x39')]=qs[_0xeb62('0x3a')](_0x511202[_0xeb62('0x31')][_0xeb62('0x3a')]);_0x1616ee[_0xeb62('0x3b')]=qs[_0xeb62('0x33')](_[_0xeb62('0x3c')](_0x511202['query'],_0x57169a['filters']),_0x2b51b2);if(_0x511202[_0xeb62('0x31')][_0xeb62('0x3d')]){_0x1616ee[_0xeb62('0x3b')]=_[_0xeb62('0x3e')](_0x1616ee['where'],{'$or':_[_0xeb62('0x2b')](_0x2b51b2,function(_0x510c7d){if(_0x510c7d[_0xeb62('0x2e')]!==_0xeb62('0x3f')){var _0x2dac2f={};_0x2dac2f[_0x510c7d[_0xeb62('0x28')]]={'$like':'%'+_0x511202[_0xeb62('0x31')][_0xeb62('0x3d')]+'%'};return _0x2dac2f;}})});}_0x1616ee=_[_0xeb62('0x3e')]({},_0x1616ee,_0x511202[_0xeb62('0x40')]);var _0x5e8ef8={'where':_0x1616ee[_0xeb62('0x3b')]};return db[_0xeb62('0x2c')][_0xeb62('0x22')](_0x5e8ef8)[_0xeb62('0x41')](function(_0x5dd0e3){_0x157474['count']=_0x5dd0e3;if(_0x511202[_0xeb62('0x31')][_0xeb62('0x42')]){_0x1616ee['include']=[{'all':!![]}];}return db[_0xeb62('0x2c')][_0xeb62('0x43')](_0x1616ee);})['then'](function(_0x25e9f0){_0x157474['rows']=_0x25e9f0;return _0x157474;})[_0xeb62('0x41')](respondWithFilteredResult(_0x192517,_0x1616ee))['catch'](handleError(_0x192517,null));};exports[_0xeb62('0x44')]=function(_0x5dde1d,_0x2bf77f){var _0x609b2d={'raw':!![],'where':{'id':_0x5dde1d['params']['id']}},_0x317f50={};_0x317f50['model']=_[_0xeb62('0x32')](db[_0xeb62('0x2c')][_0xeb62('0x2d')]);_0x317f50[_0xeb62('0x31')]=_[_0xeb62('0x32')](_0x5dde1d['query']);_0x317f50[_0xeb62('0x33')]=_['intersection'](_0x317f50[_0xeb62('0x30')],_0x317f50['query']);_0x609b2d[_0xeb62('0x34')]=_['intersection'](_0x317f50[_0xeb62('0x30')],qs['fields'](_0x5dde1d[_0xeb62('0x31')][_0xeb62('0x35')]));_0x609b2d[_0xeb62('0x34')]=_0x609b2d[_0xeb62('0x34')][_0xeb62('0x36')]?_0x609b2d[_0xeb62('0x34')]:_0x317f50['model'];if(_0x5dde1d[_0xeb62('0x31')][_0xeb62('0x42')]){_0x609b2d['include']=[{'all':!![]}];}_0x609b2d=_['merge']({},_0x609b2d,_0x5dde1d['options']);return db['WhatsappQueueReport'][_0xeb62('0x45')](_0x609b2d)[_0xeb62('0x41')](handleEntityNotFound(_0x2bf77f,null))['then'](respondWithResult(_0x2bf77f,null))[_0xeb62('0x46')](handleError(_0x2bf77f,null));};exports[_0xeb62('0x47')]=function(_0x412e93,_0x16e262){return db[_0xeb62('0x2c')]['create'](_0x412e93[_0xeb62('0x48')],{})['then'](respondWithResult(_0x16e262,0xc9))[_0xeb62('0x46')](handleError(_0x16e262,null));};exports[_0xeb62('0x49')]=function(_0x7fb53f,_0x18c40d){if(_0x7fb53f[_0xeb62('0x48')]['id']){delete _0x7fb53f[_0xeb62('0x48')]['id'];}return db[_0xeb62('0x2c')][_0xeb62('0x45')]({'where':{'id':_0x7fb53f[_0xeb62('0x4a')]['id']}})[_0xeb62('0x41')](handleEntityNotFound(_0x18c40d,null))[_0xeb62('0x41')](saveUpdates(_0x7fb53f[_0xeb62('0x48')],null))['then'](respondWithResult(_0x18c40d,null))[_0xeb62('0x46')](handleError(_0x18c40d,null));};exports['destroy']=function(_0x4edd8c,_0x2dcb2d){return db[_0xeb62('0x2c')]['find']({'where':{'id':_0x4edd8c[_0xeb62('0x4a')]['id']}})[_0xeb62('0x41')](handleEntityNotFound(_0x2dcb2d,null))['then'](removeEntity(_0x2dcb2d,null))[_0xeb62('0x46')](handleError(_0x2dcb2d,null));};exports[_0xeb62('0x4b')]=function(_0x20b73b,_0x60617){return db[_0xeb62('0x2c')][_0xeb62('0x4b')]()[_0xeb62('0x41')](respondWithResult(_0x60617,null))[_0xeb62('0x46')](handleError(_0x60617,null));};
\ No newline at end of file