Built motion from commit (unavailable).|2.5.9
[motion2.git] / server / api / whatsappQueueReport / whatsappQueueReport.controller.js
index 213f3fa..bc6ad99 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xca7f=['papaparse','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','limit','set','apply','save','destroy','error','stack','send','index','map','rawAttributes','fieldName','type','key','model','name','query','filters','attributes','intersection','fields','length','hasOwnProperty','order','sort','where','pick','filter','merge','options','count','includeAll','include','WhatsappQueueReport','then','catch','show','params','keys','find','create','body','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','desk.js'];(function(_0x3bd982,_0x111b09){var _0x2f15ca=function(_0x434fb6){while(--_0x434fb6){_0x3bd982['push'](_0x3bd982['shift']());}};_0x2f15ca(++_0x111b09);}(_0xca7f,0x1ee));var _0xfca7=function(_0xba1760,_0x191969){_0xba1760=_0xba1760-0x0;var _0x1f3143=_0xca7f[_0xba1760];return _0x1f3143;};'use strict';var pdf=require(_0xfca7('0x0'));var emlformat=require(_0xfca7('0x1'));var rimraf=require(_0xfca7('0x2'));var zipdir=require(_0xfca7('0x3'));var jsonpatch=require(_0xfca7('0x4'));var rp=require(_0xfca7('0x5'));var moment=require(_0xfca7('0x6'));var BPromise=require('bluebird');var Mustache=require(_0xfca7('0x7'));var util=require(_0xfca7('0x8'));var path=require(_0xfca7('0x9'));var sox=require(_0xfca7('0xa'));var csv=require(_0xfca7('0xb'));var ejs=require(_0xfca7('0xc'));var fs=require('fs');var _=require(_0xfca7('0xd'));var squel=require(_0xfca7('0xe'));var crypto=require(_0xfca7('0xf'));var jsforce=require('jsforce');var deskjs=require(_0xfca7('0x10'));var toCsv=require(_0xfca7('0xb'));var querystring=require('querystring');var Papa=require(_0xfca7('0x11'));var Redis=require('ioredis');var authService=require(_0xfca7('0x12'));var qs=require(_0xfca7('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xfca7('0x14'));var logger=require('../../config/logger')('api');var utils=require(_0xfca7('0x15'));var config=require(_0xfca7('0x16'));var licenseUtil=require(_0xfca7('0x17'));var db=require(_0xfca7('0x18'))['db'];function respondWithStatusCode(_0xda18cb,_0x5e744d){_0x5e744d=_0x5e744d||0xcc;return function(_0x313ec8){if(_0x313ec8){return _0xda18cb[_0xfca7('0x19')](_0x5e744d);}return _0xda18cb[_0xfca7('0x1a')](_0x5e744d)[_0xfca7('0x1b')]();};}function respondWithResult(_0x26dd6a,_0x1b8540){_0x1b8540=_0x1b8540||0xc8;return function(_0x5f3f00){if(_0x5f3f00){return _0x26dd6a[_0xfca7('0x1a')](_0x1b8540)[_0xfca7('0x1c')](_0x5f3f00);}};}function respondWithFilteredResult(_0x3c5804,_0x4e906c){return function(_0x52670c){if(_0x52670c){var _0x156654=_0x52670c['count'],_0x428e87=_0x4e906c[_0xfca7('0x1d')],_0x16f029=_0x4e906c[_0xfca7('0x1d')]+_0x4e906c[_0xfca7('0x1e')],_0x3eebd2;if(_0x16f029>=_0x156654){_0x16f029=_0x156654;_0x3eebd2=0xc8;}else{_0x3eebd2=0xce;}_0x3c5804[_0xfca7('0x1a')](_0x3eebd2);return _0x3c5804[_0xfca7('0x1f')]('Content-Range',_0x428e87+'-'+_0x16f029+'/'+_0x156654)[_0xfca7('0x1c')](_0x52670c);}return null;};}function patchUpdates(_0xd6db76){return function(_0x3496da){try{jsonpatch[_0xfca7('0x20')](_0x3496da,_0xd6db76,!![]);}catch(_0x2f6a80){return BPromise['reject'](_0x2f6a80);}return _0x3496da[_0xfca7('0x21')]();};}function saveUpdates(_0x445310,_0x2de766){return function(_0x23cba6){if(_0x23cba6){return _0x23cba6['update'](_0x445310)['then'](function(_0x43be02){return _0x43be02;});}return null;};}function removeEntity(_0x4ef418,_0x22dbdb){return function(_0x3c1231){if(_0x3c1231){return _0x3c1231[_0xfca7('0x22')]()['then'](function(){_0x4ef418['status'](0xcc)[_0xfca7('0x1b')]();});}};}function handleEntityNotFound(_0x5562b3,_0x400937){return function(_0x4b41d8){if(!_0x4b41d8){_0x5562b3[_0xfca7('0x19')](0x194);}return _0x4b41d8;};}function handleError(_0x52b84b,_0x535e1c){_0x535e1c=_0x535e1c||0x1f4;return function(_0x10a8b1){logger[_0xfca7('0x23')](_0x10a8b1[_0xfca7('0x24')]);if(_0x10a8b1['name']){delete _0x10a8b1['name'];}_0x52b84b[_0xfca7('0x1a')](_0x535e1c)[_0xfca7('0x25')](_0x10a8b1);};}exports[_0xfca7('0x26')]=function(_0x5defad,_0x15e249){var _0xe87be0={},_0x1b643f={},_0x18e63e={'count':0x0,'rows':[]};var _0x20f592=_[_0xfca7('0x27')](db['WhatsappQueueReport'][_0xfca7('0x28')],function(_0x1e8fee){return{'name':_0x1e8fee[_0xfca7('0x29')],'type':_0x1e8fee[_0xfca7('0x2a')][_0xfca7('0x2b')]};});_0x1b643f[_0xfca7('0x2c')]=_[_0xfca7('0x27')](_0x20f592,_0xfca7('0x2d'));_0x1b643f[_0xfca7('0x2e')]=_['keys'](_0x5defad['query']);_0x1b643f[_0xfca7('0x2f')]=_['intersection'](_0x1b643f[_0xfca7('0x2c')],_0x1b643f[_0xfca7('0x2e')]);_0xe87be0[_0xfca7('0x30')]=_[_0xfca7('0x31')](_0x1b643f['model'],qs[_0xfca7('0x32')](_0x5defad[_0xfca7('0x2e')][_0xfca7('0x32')]));_0xe87be0[_0xfca7('0x30')]=_0xe87be0[_0xfca7('0x30')][_0xfca7('0x33')]?_0xe87be0['attributes']:_0x1b643f['model'];if(!_0x5defad[_0xfca7('0x2e')][_0xfca7('0x34')]('nolimit')){_0xe87be0['limit']=qs[_0xfca7('0x1e')](_0x5defad['query'][_0xfca7('0x1e')]);_0xe87be0[_0xfca7('0x1d')]=qs[_0xfca7('0x1d')](_0x5defad['query'][_0xfca7('0x1d')]);}_0xe87be0[_0xfca7('0x35')]=qs[_0xfca7('0x36')](_0x5defad[_0xfca7('0x2e')][_0xfca7('0x36')]);_0xe87be0[_0xfca7('0x37')]=qs[_0xfca7('0x2f')](_[_0xfca7('0x38')](_0x5defad['query'],_0x1b643f[_0xfca7('0x2f')]),_0x20f592);if(_0x5defad[_0xfca7('0x2e')][_0xfca7('0x39')]){_0xe87be0['where']=_[_0xfca7('0x3a')](_0xe87be0[_0xfca7('0x37')],{'$or':_[_0xfca7('0x27')](_0x20f592,function(_0x377246){if(_0x377246[_0xfca7('0x2a')]!=='VIRTUAL'){var _0x34609b={};_0x34609b[_0x377246[_0xfca7('0x2d')]]={'$like':'%'+_0x5defad[_0xfca7('0x2e')]['filter']+'%'};return _0x34609b;}})});}_0xe87be0=_[_0xfca7('0x3a')]({},_0xe87be0,_0x5defad[_0xfca7('0x3b')]);var _0x19f11a={'where':_0xe87be0[_0xfca7('0x37')]};return db['WhatsappQueueReport'][_0xfca7('0x3c')](_0x19f11a)['then'](function(_0xbfbb7c){_0x18e63e[_0xfca7('0x3c')]=_0xbfbb7c;if(_0x5defad[_0xfca7('0x2e')][_0xfca7('0x3d')]){_0xe87be0[_0xfca7('0x3e')]=[{'all':!![]}];}return db[_0xfca7('0x3f')]['findAll'](_0xe87be0);})[_0xfca7('0x40')](function(_0x1f7e08){_0x18e63e['rows']=_0x1f7e08;return _0x18e63e;})[_0xfca7('0x40')](respondWithFilteredResult(_0x15e249,_0xe87be0))[_0xfca7('0x41')](handleError(_0x15e249,null));};exports[_0xfca7('0x42')]=function(_0x4fc11b,_0x56da4b){var _0x3f0a40={'raw':!![],'where':{'id':_0x4fc11b[_0xfca7('0x43')]['id']}},_0x3d5331={};_0x3d5331[_0xfca7('0x2c')]=_[_0xfca7('0x44')](db[_0xfca7('0x3f')]['rawAttributes']);_0x3d5331[_0xfca7('0x2e')]=_['keys'](_0x4fc11b['query']);_0x3d5331['filters']=_[_0xfca7('0x31')](_0x3d5331[_0xfca7('0x2c')],_0x3d5331[_0xfca7('0x2e')]);_0x3f0a40[_0xfca7('0x30')]=_['intersection'](_0x3d5331[_0xfca7('0x2c')],qs[_0xfca7('0x32')](_0x4fc11b[_0xfca7('0x2e')][_0xfca7('0x32')]));_0x3f0a40[_0xfca7('0x30')]=_0x3f0a40[_0xfca7('0x30')][_0xfca7('0x33')]?_0x3f0a40['attributes']:_0x3d5331[_0xfca7('0x2c')];if(_0x4fc11b[_0xfca7('0x2e')][_0xfca7('0x3d')]){_0x3f0a40[_0xfca7('0x3e')]=[{'all':!![]}];}_0x3f0a40=_[_0xfca7('0x3a')]({},_0x3f0a40,_0x4fc11b['options']);return db[_0xfca7('0x3f')][_0xfca7('0x45')](_0x3f0a40)[_0xfca7('0x40')](handleEntityNotFound(_0x56da4b,null))[_0xfca7('0x40')](respondWithResult(_0x56da4b,null))[_0xfca7('0x41')](handleError(_0x56da4b,null));};exports[_0xfca7('0x46')]=function(_0x2d4118,_0x35abc4){return db[_0xfca7('0x3f')][_0xfca7('0x46')](_0x2d4118['body'],{})[_0xfca7('0x40')](respondWithResult(_0x35abc4,0xc9))[_0xfca7('0x41')](handleError(_0x35abc4,null));};exports['update']=function(_0x47da78,_0x230392){if(_0x47da78['body']['id']){delete _0x47da78[_0xfca7('0x47')]['id'];}return db[_0xfca7('0x3f')]['find']({'where':{'id':_0x47da78[_0xfca7('0x43')]['id']}})[_0xfca7('0x40')](handleEntityNotFound(_0x230392,null))[_0xfca7('0x40')](saveUpdates(_0x47da78[_0xfca7('0x47')],null))['then'](respondWithResult(_0x230392,null))['catch'](handleError(_0x230392,null));};exports[_0xfca7('0x22')]=function(_0x9cec05,_0x98c88){return db['WhatsappQueueReport'][_0xfca7('0x45')]({'where':{'id':_0x9cec05[_0xfca7('0x43')]['id']}})[_0xfca7('0x40')](handleEntityNotFound(_0x98c88,null))[_0xfca7('0x40')](removeEntity(_0x98c88,null))[_0xfca7('0x41')](handleError(_0x98c88,null));};exports[_0xfca7('0x48')]=function(_0x2f8c41,_0x282f54){return db[_0xfca7('0x3f')][_0xfca7('0x48')]()[_0xfca7('0x40')](respondWithResult(_0x282f54,null))[_0xfca7('0x41')](handleError(_0x282f54,null));};
\ No newline at end of file
+var _0x8e0d=['../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','json','count','offset','limit','set','Content-Range','reject','save','then','sendStatus','stack','name','map','WhatsappQueueReport','fieldName','type','key','model','query','keys','filters','intersection','fields','attributes','length','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','findAll','rows','catch','show','params','include','find','create','body','update','destroy','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service'];(function(_0x2d6685,_0x49028b){var _0x1b5359=function(_0x22908c){while(--_0x22908c){_0x2d6685['push'](_0x2d6685['shift']());}};_0x1b5359(++_0x49028b);}(_0x8e0d,0x1ae));var _0xd8e0=function(_0x5a6961,_0xd41ca6){_0x5a6961=_0x5a6961-0x0;var _0x4af0a6=_0x8e0d[_0x5a6961];return _0x4af0a6;};'use strict';var pdf=require(_0xd8e0('0x0'));var emlformat=require(_0xd8e0('0x1'));var rimraf=require(_0xd8e0('0x2'));var zipdir=require(_0xd8e0('0x3'));var jsonpatch=require(_0xd8e0('0x4'));var rp=require(_0xd8e0('0x5'));var moment=require(_0xd8e0('0x6'));var BPromise=require(_0xd8e0('0x7'));var Mustache=require(_0xd8e0('0x8'));var util=require(_0xd8e0('0x9'));var path=require(_0xd8e0('0xa'));var sox=require(_0xd8e0('0xb'));var csv=require(_0xd8e0('0xc'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require(_0xd8e0('0xd'));var crypto=require(_0xd8e0('0xe'));var jsforce=require('jsforce');var deskjs=require(_0xd8e0('0xf'));var toCsv=require('to-csv');var querystring=require(_0xd8e0('0x10'));var Papa=require(_0xd8e0('0x11'));var Redis=require(_0xd8e0('0x12'));var authService=require(_0xd8e0('0x13'));var qs=require('../../components/parsers/qs');var as=require(_0xd8e0('0x14'));var hardwareService=require(_0xd8e0('0x15'));var logger=require(_0xd8e0('0x16'))('api');var utils=require(_0xd8e0('0x17'));var config=require(_0xd8e0('0x18'));var licenseUtil=require(_0xd8e0('0x19'));var db=require(_0xd8e0('0x1a'))['db'];function respondWithStatusCode(_0x3f222a,_0xa87633){_0xa87633=_0xa87633||0xcc;return function(_0x242575){if(_0x242575){return _0x3f222a['sendStatus'](_0xa87633);}return _0x3f222a[_0xd8e0('0x1b')](_0xa87633)[_0xd8e0('0x1c')]();};}function respondWithResult(_0x3a1e2c,_0x53e932){_0x53e932=_0x53e932||0xc8;return function(_0x433546){if(_0x433546){return _0x3a1e2c[_0xd8e0('0x1b')](_0x53e932)[_0xd8e0('0x1d')](_0x433546);}};}function respondWithFilteredResult(_0x36525a,_0x51be1c){return function(_0x5ac365){if(_0x5ac365){var _0x130395=_0x5ac365[_0xd8e0('0x1e')],_0x54fc6e=_0x51be1c[_0xd8e0('0x1f')],_0x3e9436=_0x51be1c[_0xd8e0('0x1f')]+_0x51be1c[_0xd8e0('0x20')],_0xdb11d2;if(_0x3e9436>=_0x130395){_0x3e9436=_0x130395;_0xdb11d2=0xc8;}else{_0xdb11d2=0xce;}_0x36525a[_0xd8e0('0x1b')](_0xdb11d2);return _0x36525a[_0xd8e0('0x21')](_0xd8e0('0x22'),_0x54fc6e+'-'+_0x3e9436+'/'+_0x130395)[_0xd8e0('0x1d')](_0x5ac365);}return null;};}function patchUpdates(_0x58b9fa){return function(_0x160d17){try{jsonpatch['apply'](_0x160d17,_0x58b9fa,!![]);}catch(_0x862f7a){return BPromise[_0xd8e0('0x23')](_0x862f7a);}return _0x160d17[_0xd8e0('0x24')]();};}function saveUpdates(_0x30dbe1,_0x4daa54){return function(_0x1f4469){if(_0x1f4469){return _0x1f4469['update'](_0x30dbe1)[_0xd8e0('0x25')](function(_0x52f32a){return _0x52f32a;});}return null;};}function removeEntity(_0x35ec1e,_0x1d804e){return function(_0x51b7b2){if(_0x51b7b2){return _0x51b7b2['destroy']()['then'](function(){_0x35ec1e['status'](0xcc)[_0xd8e0('0x1c')]();});}};}function handleEntityNotFound(_0x25c192,_0xe70dd7){return function(_0x7a92d4){if(!_0x7a92d4){_0x25c192[_0xd8e0('0x26')](0x194);}return _0x7a92d4;};}function handleError(_0x11da9e,_0x24fc83){_0x24fc83=_0x24fc83||0x1f4;return function(_0x3e3c97){logger['error'](_0x3e3c97[_0xd8e0('0x27')]);if(_0x3e3c97['name']){delete _0x3e3c97[_0xd8e0('0x28')];}_0x11da9e[_0xd8e0('0x1b')](_0x24fc83)['send'](_0x3e3c97);};}exports['index']=function(_0x519a7c,_0x504b4c){var _0x4b37a1={},_0x291d2b={},_0x385b16={'count':0x0,'rows':[]};var _0x5d1a37=_[_0xd8e0('0x29')](db[_0xd8e0('0x2a')]['rawAttributes'],function(_0x4b2c8e){return{'name':_0x4b2c8e[_0xd8e0('0x2b')],'type':_0x4b2c8e[_0xd8e0('0x2c')][_0xd8e0('0x2d')]};});_0x291d2b[_0xd8e0('0x2e')]=_['map'](_0x5d1a37,_0xd8e0('0x28'));_0x291d2b[_0xd8e0('0x2f')]=_[_0xd8e0('0x30')](_0x519a7c[_0xd8e0('0x2f')]);_0x291d2b[_0xd8e0('0x31')]=_[_0xd8e0('0x32')](_0x291d2b['model'],_0x291d2b[_0xd8e0('0x2f')]);_0x4b37a1['attributes']=_[_0xd8e0('0x32')](_0x291d2b[_0xd8e0('0x2e')],qs['fields'](_0x519a7c[_0xd8e0('0x2f')][_0xd8e0('0x33')]));_0x4b37a1[_0xd8e0('0x34')]=_0x4b37a1[_0xd8e0('0x34')][_0xd8e0('0x35')]?_0x4b37a1['attributes']:_0x291d2b[_0xd8e0('0x2e')];if(!_0x519a7c[_0xd8e0('0x2f')]['hasOwnProperty']('nolimit')){_0x4b37a1[_0xd8e0('0x20')]=qs[_0xd8e0('0x20')](_0x519a7c[_0xd8e0('0x2f')]['limit']);_0x4b37a1['offset']=qs['offset'](_0x519a7c[_0xd8e0('0x2f')][_0xd8e0('0x1f')]);}_0x4b37a1[_0xd8e0('0x36')]=qs[_0xd8e0('0x37')](_0x519a7c[_0xd8e0('0x2f')]['sort']);_0x4b37a1[_0xd8e0('0x38')]=qs[_0xd8e0('0x31')](_[_0xd8e0('0x39')](_0x519a7c[_0xd8e0('0x2f')],_0x291d2b[_0xd8e0('0x31')]),_0x5d1a37);if(_0x519a7c[_0xd8e0('0x2f')][_0xd8e0('0x3a')]){_0x4b37a1[_0xd8e0('0x38')]=_[_0xd8e0('0x3b')](_0x4b37a1[_0xd8e0('0x38')],{'$or':_[_0xd8e0('0x29')](_0x5d1a37,function(_0x215ff3){if(_0x215ff3[_0xd8e0('0x2c')]!==_0xd8e0('0x3c')){var _0x40c30f={};_0x40c30f[_0x215ff3[_0xd8e0('0x28')]]={'$like':'%'+_0x519a7c['query'][_0xd8e0('0x3a')]+'%'};return _0x40c30f;}})});}_0x4b37a1=_['merge']({},_0x4b37a1,_0x519a7c[_0xd8e0('0x3d')]);var _0x43ae5b={'where':_0x4b37a1[_0xd8e0('0x38')]};return db['WhatsappQueueReport']['count'](_0x43ae5b)[_0xd8e0('0x25')](function(_0x485b0b){_0x385b16[_0xd8e0('0x1e')]=_0x485b0b;if(_0x519a7c[_0xd8e0('0x2f')][_0xd8e0('0x3e')]){_0x4b37a1['include']=[{'all':!![]}];}return db['WhatsappQueueReport'][_0xd8e0('0x3f')](_0x4b37a1);})[_0xd8e0('0x25')](function(_0xedbc9c){_0x385b16[_0xd8e0('0x40')]=_0xedbc9c;return _0x385b16;})[_0xd8e0('0x25')](respondWithFilteredResult(_0x504b4c,_0x4b37a1))[_0xd8e0('0x41')](handleError(_0x504b4c,null));};exports[_0xd8e0('0x42')]=function(_0x1c2f4e,_0x375dcc){var _0x2c59e2={'raw':!![],'where':{'id':_0x1c2f4e[_0xd8e0('0x43')]['id']}},_0x1fb4dc={};_0x1fb4dc[_0xd8e0('0x2e')]=_[_0xd8e0('0x30')](db[_0xd8e0('0x2a')]['rawAttributes']);_0x1fb4dc[_0xd8e0('0x2f')]=_['keys'](_0x1c2f4e[_0xd8e0('0x2f')]);_0x1fb4dc[_0xd8e0('0x31')]=_[_0xd8e0('0x32')](_0x1fb4dc['model'],_0x1fb4dc['query']);_0x2c59e2['attributes']=_[_0xd8e0('0x32')](_0x1fb4dc[_0xd8e0('0x2e')],qs[_0xd8e0('0x33')](_0x1c2f4e[_0xd8e0('0x2f')][_0xd8e0('0x33')]));_0x2c59e2[_0xd8e0('0x34')]=_0x2c59e2['attributes'][_0xd8e0('0x35')]?_0x2c59e2[_0xd8e0('0x34')]:_0x1fb4dc[_0xd8e0('0x2e')];if(_0x1c2f4e[_0xd8e0('0x2f')][_0xd8e0('0x3e')]){_0x2c59e2[_0xd8e0('0x44')]=[{'all':!![]}];}_0x2c59e2=_['merge']({},_0x2c59e2,_0x1c2f4e['options']);return db[_0xd8e0('0x2a')][_0xd8e0('0x45')](_0x2c59e2)[_0xd8e0('0x25')](handleEntityNotFound(_0x375dcc,null))[_0xd8e0('0x25')](respondWithResult(_0x375dcc,null))[_0xd8e0('0x41')](handleError(_0x375dcc,null));};exports[_0xd8e0('0x46')]=function(_0x4c37bd,_0x273359){return db[_0xd8e0('0x2a')][_0xd8e0('0x46')](_0x4c37bd[_0xd8e0('0x47')],{})[_0xd8e0('0x25')](respondWithResult(_0x273359,0xc9))['catch'](handleError(_0x273359,null));};exports[_0xd8e0('0x48')]=function(_0x873c86,_0x4f65e3){if(_0x873c86[_0xd8e0('0x47')]['id']){delete _0x873c86['body']['id'];}return db[_0xd8e0('0x2a')][_0xd8e0('0x45')]({'where':{'id':_0x873c86['params']['id']}})['then'](handleEntityNotFound(_0x4f65e3,null))['then'](saveUpdates(_0x873c86['body'],null))[_0xd8e0('0x25')](respondWithResult(_0x4f65e3,null))[_0xd8e0('0x41')](handleError(_0x4f65e3,null));};exports[_0xd8e0('0x49')]=function(_0x2cc270,_0x445dc3){return db[_0xd8e0('0x2a')][_0xd8e0('0x45')]({'where':{'id':_0x2cc270[_0xd8e0('0x43')]['id']}})['then'](handleEntityNotFound(_0x445dc3,null))[_0xd8e0('0x25')](removeEntity(_0x445dc3,null))['catch'](handleError(_0x445dc3,null));};exports[_0xd8e0('0x4a')]=function(_0x19dd78,_0x3c4391){return db['WhatsappQueueReport'][_0xd8e0('0x4a')]()[_0xd8e0('0x25')](respondWithResult(_0x3c4391,null))[_0xd8e0('0x41')](handleError(_0x3c4391,null));};
\ No newline at end of file