Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / whatsappQueueReport / whatsappQueueReport.controller.js
index 439fe6b..b15d8a4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf213=['sendStatus','stack','name','send','index','map','WhatsappQueueReport','rawAttributes','fieldName','type','key','model','query','filters','intersection','fields','attributes','length','hasOwnProperty','order','sort','where','pick','filter','merge','VIRTUAL','includeAll','include','findAll','rows','show','params','keys','options','find','create','body','catch','describe','rimraf','fast-json-patch','request-promise','bluebird','mustache','util','path','to-csv','ejs','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','json','count','offset','limit','set','Content-Range','apply','reject','save','update','then','destroy'];(function(_0x5b8387,_0x228509){var _0x7c7f6f=function(_0x38b889){while(--_0x38b889){_0x5b8387['push'](_0x5b8387['shift']());}};_0x7c7f6f(++_0x228509);}(_0xf213,0x15b));var _0x3f21=function(_0x5607d3,_0x5a05b3){_0x5607d3=_0x5607d3-0x0;var _0x3197fa=_0xf213[_0x5607d3];return _0x3197fa;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0x3f21('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0x3f21('0x1'));var rp=require(_0x3f21('0x2'));var moment=require('moment');var BPromise=require(_0x3f21('0x3'));var Mustache=require(_0x3f21('0x4'));var util=require(_0x3f21('0x5'));var path=require(_0x3f21('0x6'));var sox=require('sox');var csv=require(_0x3f21('0x7'));var ejs=require(_0x3f21('0x8'));var fs=require('fs');var _=require('lodash');var squel=require(_0x3f21('0x9'));var crypto=require('crypto');var jsforce=require(_0x3f21('0xa'));var deskjs=require(_0x3f21('0xb'));var toCsv=require(_0x3f21('0x7'));var querystring=require(_0x3f21('0xc'));var Papa=require(_0x3f21('0xd'));var Redis=require(_0x3f21('0xe'));var authService=require('../../components/auth/service');var qs=require(_0x3f21('0xf'));var as=require(_0x3f21('0x10'));var hardwareService=require(_0x3f21('0x11'));var logger=require(_0x3f21('0x12'))(_0x3f21('0x13'));var utils=require(_0x3f21('0x14'));var config=require(_0x3f21('0x15'));var licenseUtil=require(_0x3f21('0x16'));var db=require(_0x3f21('0x17'))['db'];function respondWithStatusCode(_0x5f42ef,_0xd8b337){_0xd8b337=_0xd8b337||0xcc;return function(_0x2af3a6){if(_0x2af3a6){return _0x5f42ef['sendStatus'](_0xd8b337);}return _0x5f42ef[_0x3f21('0x18')](_0xd8b337)[_0x3f21('0x19')]();};}function respondWithResult(_0x3a42a7,_0x30959e){_0x30959e=_0x30959e||0xc8;return function(_0x336574){if(_0x336574){return _0x3a42a7[_0x3f21('0x18')](_0x30959e)[_0x3f21('0x1a')](_0x336574);}};}function respondWithFilteredResult(_0x1187b4,_0xe6893d){return function(_0x198f75){if(_0x198f75){var _0x624a37=_0x198f75[_0x3f21('0x1b')],_0x1a80d6=_0xe6893d['offset'],_0x4bf094=_0xe6893d[_0x3f21('0x1c')]+_0xe6893d[_0x3f21('0x1d')],_0x480d4c;if(_0x4bf094>=_0x624a37){_0x4bf094=_0x624a37;_0x480d4c=0xc8;}else{_0x480d4c=0xce;}_0x1187b4[_0x3f21('0x18')](_0x480d4c);return _0x1187b4[_0x3f21('0x1e')](_0x3f21('0x1f'),_0x1a80d6+'-'+_0x4bf094+'/'+_0x624a37)[_0x3f21('0x1a')](_0x198f75);}return null;};}function patchUpdates(_0x2851d1){return function(_0x4a2930){try{jsonpatch[_0x3f21('0x20')](_0x4a2930,_0x2851d1,!![]);}catch(_0x2f66b1){return BPromise[_0x3f21('0x21')](_0x2f66b1);}return _0x4a2930[_0x3f21('0x22')]();};}function saveUpdates(_0x1d58d6,_0x48b667){return function(_0x55b210){if(_0x55b210){return _0x55b210[_0x3f21('0x23')](_0x1d58d6)[_0x3f21('0x24')](function(_0x3f3718){return _0x3f3718;});}return null;};}function removeEntity(_0x8a8385,_0x29d544){return function(_0x1d1079){if(_0x1d1079){return _0x1d1079[_0x3f21('0x25')]()[_0x3f21('0x24')](function(){_0x8a8385[_0x3f21('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x354905,_0x32c492){return function(_0x4fe676){if(!_0x4fe676){_0x354905[_0x3f21('0x26')](0x194);}return _0x4fe676;};}function handleError(_0x1af78c,_0x58ea39){_0x58ea39=_0x58ea39||0x1f4;return function(_0x6a0946){logger['error'](_0x6a0946[_0x3f21('0x27')]);if(_0x6a0946[_0x3f21('0x28')]){delete _0x6a0946['name'];}_0x1af78c[_0x3f21('0x18')](_0x58ea39)[_0x3f21('0x29')](_0x6a0946);};}exports[_0x3f21('0x2a')]=function(_0x10be1c,_0x583a97){var _0x5a6ebf={},_0x2e6111={},_0x51eec8={'count':0x0,'rows':[]};var _0x1d1769=_[_0x3f21('0x2b')](db[_0x3f21('0x2c')][_0x3f21('0x2d')],function(_0x3f7fb6){return{'name':_0x3f7fb6[_0x3f21('0x2e')],'type':_0x3f7fb6[_0x3f21('0x2f')][_0x3f21('0x30')]};});_0x2e6111[_0x3f21('0x31')]=_[_0x3f21('0x2b')](_0x1d1769,_0x3f21('0x28'));_0x2e6111[_0x3f21('0x32')]=_['keys'](_0x10be1c[_0x3f21('0x32')]);_0x2e6111[_0x3f21('0x33')]=_[_0x3f21('0x34')](_0x2e6111[_0x3f21('0x31')],_0x2e6111[_0x3f21('0x32')]);_0x5a6ebf['attributes']=_[_0x3f21('0x34')](_0x2e6111[_0x3f21('0x31')],qs['fields'](_0x10be1c['query'][_0x3f21('0x35')]));_0x5a6ebf['attributes']=_0x5a6ebf[_0x3f21('0x36')][_0x3f21('0x37')]?_0x5a6ebf[_0x3f21('0x36')]:_0x2e6111[_0x3f21('0x31')];if(!_0x10be1c[_0x3f21('0x32')][_0x3f21('0x38')]('nolimit')){_0x5a6ebf[_0x3f21('0x1d')]=qs[_0x3f21('0x1d')](_0x10be1c['query'][_0x3f21('0x1d')]);_0x5a6ebf[_0x3f21('0x1c')]=qs[_0x3f21('0x1c')](_0x10be1c['query'][_0x3f21('0x1c')]);}_0x5a6ebf[_0x3f21('0x39')]=qs[_0x3f21('0x3a')](_0x10be1c[_0x3f21('0x32')][_0x3f21('0x3a')]);_0x5a6ebf[_0x3f21('0x3b')]=qs['filters'](_[_0x3f21('0x3c')](_0x10be1c[_0x3f21('0x32')],_0x2e6111['filters']),_0x1d1769);if(_0x10be1c[_0x3f21('0x32')][_0x3f21('0x3d')]){_0x5a6ebf['where']=_[_0x3f21('0x3e')](_0x5a6ebf[_0x3f21('0x3b')],{'$or':_[_0x3f21('0x2b')](_0x1d1769,function(_0x3fe463){if(_0x3fe463[_0x3f21('0x2f')]!==_0x3f21('0x3f')){var _0x5a1c4f={};_0x5a1c4f[_0x3fe463[_0x3f21('0x28')]]={'$like':'%'+_0x10be1c['query'][_0x3f21('0x3d')]+'%'};return _0x5a1c4f;}})});}_0x5a6ebf=_[_0x3f21('0x3e')]({},_0x5a6ebf,_0x10be1c['options']);var _0x2f863b={'where':_0x5a6ebf[_0x3f21('0x3b')]};return db[_0x3f21('0x2c')]['count'](_0x2f863b)['then'](function(_0x44f3a8){_0x51eec8[_0x3f21('0x1b')]=_0x44f3a8;if(_0x10be1c[_0x3f21('0x32')][_0x3f21('0x40')]){_0x5a6ebf[_0x3f21('0x41')]=[{'all':!![]}];}return db[_0x3f21('0x2c')][_0x3f21('0x42')](_0x5a6ebf);})[_0x3f21('0x24')](function(_0x31bfde){_0x51eec8[_0x3f21('0x43')]=_0x31bfde;return _0x51eec8;})['then'](respondWithFilteredResult(_0x583a97,_0x5a6ebf))['catch'](handleError(_0x583a97,null));};exports[_0x3f21('0x44')]=function(_0x2781f7,_0x397602){var _0x41c7b9={'raw':!![],'where':{'id':_0x2781f7[_0x3f21('0x45')]['id']}},_0xcc5af={};_0xcc5af[_0x3f21('0x31')]=_[_0x3f21('0x46')](db[_0x3f21('0x2c')][_0x3f21('0x2d')]);_0xcc5af[_0x3f21('0x32')]=_[_0x3f21('0x46')](_0x2781f7[_0x3f21('0x32')]);_0xcc5af['filters']=_['intersection'](_0xcc5af[_0x3f21('0x31')],_0xcc5af['query']);_0x41c7b9['attributes']=_[_0x3f21('0x34')](_0xcc5af[_0x3f21('0x31')],qs[_0x3f21('0x35')](_0x2781f7[_0x3f21('0x32')][_0x3f21('0x35')]));_0x41c7b9['attributes']=_0x41c7b9['attributes'][_0x3f21('0x37')]?_0x41c7b9['attributes']:_0xcc5af['model'];if(_0x2781f7[_0x3f21('0x32')][_0x3f21('0x40')]){_0x41c7b9[_0x3f21('0x41')]=[{'all':!![]}];}_0x41c7b9=_[_0x3f21('0x3e')]({},_0x41c7b9,_0x2781f7[_0x3f21('0x47')]);return db[_0x3f21('0x2c')][_0x3f21('0x48')](_0x41c7b9)['then'](handleEntityNotFound(_0x397602,null))['then'](respondWithResult(_0x397602,null))['catch'](handleError(_0x397602,null));};exports[_0x3f21('0x49')]=function(_0x5d58d8,_0x2071d8){return db[_0x3f21('0x2c')][_0x3f21('0x49')](_0x5d58d8[_0x3f21('0x4a')],{})[_0x3f21('0x24')](respondWithResult(_0x2071d8,0xc9))[_0x3f21('0x4b')](handleError(_0x2071d8,null));};exports[_0x3f21('0x23')]=function(_0x3cad6a,_0x4e50b9){if(_0x3cad6a[_0x3f21('0x4a')]['id']){delete _0x3cad6a[_0x3f21('0x4a')]['id'];}return db['WhatsappQueueReport'][_0x3f21('0x48')]({'where':{'id':_0x3cad6a[_0x3f21('0x45')]['id']}})[_0x3f21('0x24')](handleEntityNotFound(_0x4e50b9,null))[_0x3f21('0x24')](saveUpdates(_0x3cad6a['body'],null))[_0x3f21('0x24')](respondWithResult(_0x4e50b9,null))[_0x3f21('0x4b')](handleError(_0x4e50b9,null));};exports['destroy']=function(_0x1c1fab,_0xa84744){return db['WhatsappQueueReport'][_0x3f21('0x48')]({'where':{'id':_0x1c1fab[_0x3f21('0x45')]['id']}})['then'](handleEntityNotFound(_0xa84744,null))[_0x3f21('0x24')](removeEntity(_0xa84744,null))['catch'](handleError(_0xa84744,null));};exports[_0x3f21('0x4c')]=function(_0x59f796,_0x31e694){return db[_0x3f21('0x2c')][_0x3f21('0x4c')]()['then'](respondWithResult(_0x31e694,null))[_0x3f21('0x4b')](handleError(_0x31e694,null));};
\ No newline at end of file
+var _0xf0f2=['sendStatus','status','end','json','count','offset','set','Content-Range','apply','reject','update','then','destroy','error','stack','name','send','index','map','rawAttributes','key','model','query','filters','intersection','fields','attributes','length','nolimit','limit','order','sort','where','pick','filter','type','VIRTUAL','merge','options','WhatsappQueueReport','includeAll','include','rows','catch','show','params','keys','create','body','find','describe','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','sox','to-csv','ejs','lodash','squel','crypto','jsforce','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb'];(function(_0x23edcf,_0x714da5){var _0x2f2cd7=function(_0x574a42){while(--_0x574a42){_0x23edcf['push'](_0x23edcf['shift']());}};_0x2f2cd7(++_0x714da5);}(_0xf0f2,0xc9));var _0x2f0f=function(_0x59c05e,_0x5e7c42){_0x59c05e=_0x59c05e-0x0;var _0x5366a2=_0xf0f2[_0x59c05e];return _0x5366a2;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0x2f0f('0x0'));var zipdir=require(_0x2f0f('0x1'));var jsonpatch=require(_0x2f0f('0x2'));var rp=require(_0x2f0f('0x3'));var moment=require('moment');var BPromise=require(_0x2f0f('0x4'));var Mustache=require(_0x2f0f('0x5'));var util=require('util');var path=require('path');var sox=require(_0x2f0f('0x6'));var csv=require(_0x2f0f('0x7'));var ejs=require(_0x2f0f('0x8'));var fs=require('fs');var _=require(_0x2f0f('0x9'));var squel=require(_0x2f0f('0xa'));var crypto=require(_0x2f0f('0xb'));var jsforce=require(_0x2f0f('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x2f0f('0x7'));var querystring=require(_0x2f0f('0xd'));var Papa=require('papaparse');var Redis=require(_0x2f0f('0xe'));var authService=require(_0x2f0f('0xf'));var qs=require(_0x2f0f('0x10'));var as=require(_0x2f0f('0x11'));var hardwareService=require(_0x2f0f('0x12'));var logger=require(_0x2f0f('0x13'))(_0x2f0f('0x14'));var utils=require('../../config/utils');var config=require(_0x2f0f('0x15'));var licenseUtil=require(_0x2f0f('0x16'));var db=require(_0x2f0f('0x17'))['db'];function respondWithStatusCode(_0x19975b,_0x2aaa0d){_0x2aaa0d=_0x2aaa0d||0xcc;return function(_0x43650d){if(_0x43650d){return _0x19975b[_0x2f0f('0x18')](_0x2aaa0d);}return _0x19975b[_0x2f0f('0x19')](_0x2aaa0d)[_0x2f0f('0x1a')]();};}function respondWithResult(_0x2225e6,_0x141fc7){_0x141fc7=_0x141fc7||0xc8;return function(_0x58f5d5){if(_0x58f5d5){return _0x2225e6[_0x2f0f('0x19')](_0x141fc7)[_0x2f0f('0x1b')](_0x58f5d5);}};}function respondWithFilteredResult(_0x422c65,_0x28ee4b){return function(_0xcff54a){if(_0xcff54a){var _0x1dd29a=_0xcff54a[_0x2f0f('0x1c')],_0x19bd25=_0x28ee4b[_0x2f0f('0x1d')],_0x1350a7=_0x28ee4b[_0x2f0f('0x1d')]+_0x28ee4b['limit'],_0x453731;if(_0x1350a7>=_0x1dd29a){_0x1350a7=_0x1dd29a;_0x453731=0xc8;}else{_0x453731=0xce;}_0x422c65['status'](_0x453731);return _0x422c65[_0x2f0f('0x1e')](_0x2f0f('0x1f'),_0x19bd25+'-'+_0x1350a7+'/'+_0x1dd29a)[_0x2f0f('0x1b')](_0xcff54a);}return null;};}function patchUpdates(_0x17067c){return function(_0x4c6c54){try{jsonpatch[_0x2f0f('0x20')](_0x4c6c54,_0x17067c,!![]);}catch(_0x53da0a){return BPromise[_0x2f0f('0x21')](_0x53da0a);}return _0x4c6c54['save']();};}function saveUpdates(_0x650cee,_0x4b516d){return function(_0x2d6e53){if(_0x2d6e53){return _0x2d6e53[_0x2f0f('0x22')](_0x650cee)[_0x2f0f('0x23')](function(_0x2e4b12){return _0x2e4b12;});}return null;};}function removeEntity(_0x77113a,_0xf3fed4){return function(_0x402aa2){if(_0x402aa2){return _0x402aa2[_0x2f0f('0x24')]()[_0x2f0f('0x23')](function(){_0x77113a[_0x2f0f('0x19')](0xcc)[_0x2f0f('0x1a')]();});}};}function handleEntityNotFound(_0x2642fc,_0x497df5){return function(_0x3b213b){if(!_0x3b213b){_0x2642fc[_0x2f0f('0x18')](0x194);}return _0x3b213b;};}function handleError(_0x24e6cc,_0xce95a8){_0xce95a8=_0xce95a8||0x1f4;return function(_0x27e112){logger[_0x2f0f('0x25')](_0x27e112[_0x2f0f('0x26')]);if(_0x27e112[_0x2f0f('0x27')]){delete _0x27e112[_0x2f0f('0x27')];}_0x24e6cc[_0x2f0f('0x19')](_0xce95a8)[_0x2f0f('0x28')](_0x27e112);};}exports[_0x2f0f('0x29')]=function(_0x3a8a5f,_0x4e1642){var _0x358ec3={},_0x34c5e0={},_0x58dcb6={'count':0x0,'rows':[]};var _0x224bde=_[_0x2f0f('0x2a')](db['WhatsappQueueReport'][_0x2f0f('0x2b')],function(_0x3b48a7){return{'name':_0x3b48a7['fieldName'],'type':_0x3b48a7['type'][_0x2f0f('0x2c')]};});_0x34c5e0[_0x2f0f('0x2d')]=_['map'](_0x224bde,_0x2f0f('0x27'));_0x34c5e0[_0x2f0f('0x2e')]=_['keys'](_0x3a8a5f['query']);_0x34c5e0[_0x2f0f('0x2f')]=_['intersection'](_0x34c5e0[_0x2f0f('0x2d')],_0x34c5e0[_0x2f0f('0x2e')]);_0x358ec3['attributes']=_[_0x2f0f('0x30')](_0x34c5e0['model'],qs[_0x2f0f('0x31')](_0x3a8a5f['query'][_0x2f0f('0x31')]));_0x358ec3[_0x2f0f('0x32')]=_0x358ec3[_0x2f0f('0x32')][_0x2f0f('0x33')]?_0x358ec3[_0x2f0f('0x32')]:_0x34c5e0[_0x2f0f('0x2d')];if(!_0x3a8a5f[_0x2f0f('0x2e')]['hasOwnProperty'](_0x2f0f('0x34'))){_0x358ec3[_0x2f0f('0x35')]=qs[_0x2f0f('0x35')](_0x3a8a5f[_0x2f0f('0x2e')][_0x2f0f('0x35')]);_0x358ec3[_0x2f0f('0x1d')]=qs[_0x2f0f('0x1d')](_0x3a8a5f[_0x2f0f('0x2e')]['offset']);}_0x358ec3[_0x2f0f('0x36')]=qs[_0x2f0f('0x37')](_0x3a8a5f[_0x2f0f('0x2e')][_0x2f0f('0x37')]);_0x358ec3[_0x2f0f('0x38')]=qs[_0x2f0f('0x2f')](_[_0x2f0f('0x39')](_0x3a8a5f['query'],_0x34c5e0[_0x2f0f('0x2f')]),_0x224bde);if(_0x3a8a5f[_0x2f0f('0x2e')][_0x2f0f('0x3a')]){_0x358ec3[_0x2f0f('0x38')]=_['merge'](_0x358ec3[_0x2f0f('0x38')],{'$or':_[_0x2f0f('0x2a')](_0x224bde,function(_0x40e4bb){if(_0x40e4bb[_0x2f0f('0x3b')]!==_0x2f0f('0x3c')){var _0x37a4fd={};_0x37a4fd[_0x40e4bb['name']]={'$like':'%'+_0x3a8a5f[_0x2f0f('0x2e')][_0x2f0f('0x3a')]+'%'};return _0x37a4fd;}})});}_0x358ec3=_[_0x2f0f('0x3d')]({},_0x358ec3,_0x3a8a5f[_0x2f0f('0x3e')]);var _0x305946={'where':_0x358ec3[_0x2f0f('0x38')]};return db[_0x2f0f('0x3f')]['count'](_0x305946)[_0x2f0f('0x23')](function(_0x3af4a6){_0x58dcb6[_0x2f0f('0x1c')]=_0x3af4a6;if(_0x3a8a5f[_0x2f0f('0x2e')][_0x2f0f('0x40')]){_0x358ec3[_0x2f0f('0x41')]=[{'all':!![]}];}return db['WhatsappQueueReport']['findAll'](_0x358ec3);})[_0x2f0f('0x23')](function(_0x119af8){_0x58dcb6[_0x2f0f('0x42')]=_0x119af8;return _0x58dcb6;})['then'](respondWithFilteredResult(_0x4e1642,_0x358ec3))[_0x2f0f('0x43')](handleError(_0x4e1642,null));};exports[_0x2f0f('0x44')]=function(_0x386468,_0x229008){var _0x3f5156={'raw':!![],'where':{'id':_0x386468[_0x2f0f('0x45')]['id']}},_0x8db16a={};_0x8db16a[_0x2f0f('0x2d')]=_[_0x2f0f('0x46')](db[_0x2f0f('0x3f')]['rawAttributes']);_0x8db16a[_0x2f0f('0x2e')]=_[_0x2f0f('0x46')](_0x386468[_0x2f0f('0x2e')]);_0x8db16a['filters']=_[_0x2f0f('0x30')](_0x8db16a[_0x2f0f('0x2d')],_0x8db16a['query']);_0x3f5156['attributes']=_['intersection'](_0x8db16a[_0x2f0f('0x2d')],qs[_0x2f0f('0x31')](_0x386468[_0x2f0f('0x2e')]['fields']));_0x3f5156[_0x2f0f('0x32')]=_0x3f5156[_0x2f0f('0x32')][_0x2f0f('0x33')]?_0x3f5156['attributes']:_0x8db16a[_0x2f0f('0x2d')];if(_0x386468['query'][_0x2f0f('0x40')]){_0x3f5156[_0x2f0f('0x41')]=[{'all':!![]}];}_0x3f5156=_[_0x2f0f('0x3d')]({},_0x3f5156,_0x386468[_0x2f0f('0x3e')]);return db[_0x2f0f('0x3f')]['find'](_0x3f5156)[_0x2f0f('0x23')](handleEntityNotFound(_0x229008,null))[_0x2f0f('0x23')](respondWithResult(_0x229008,null))[_0x2f0f('0x43')](handleError(_0x229008,null));};exports['create']=function(_0x96fdc6,_0xec6eb4){return db[_0x2f0f('0x3f')][_0x2f0f('0x47')](_0x96fdc6['body'],{})['then'](respondWithResult(_0xec6eb4,0xc9))[_0x2f0f('0x43')](handleError(_0xec6eb4,null));};exports[_0x2f0f('0x22')]=function(_0x3955d1,_0x4a08a4){if(_0x3955d1[_0x2f0f('0x48')]['id']){delete _0x3955d1[_0x2f0f('0x48')]['id'];}return db[_0x2f0f('0x3f')][_0x2f0f('0x49')]({'where':{'id':_0x3955d1[_0x2f0f('0x45')]['id']}})[_0x2f0f('0x23')](handleEntityNotFound(_0x4a08a4,null))['then'](saveUpdates(_0x3955d1[_0x2f0f('0x48')],null))[_0x2f0f('0x23')](respondWithResult(_0x4a08a4,null))[_0x2f0f('0x43')](handleError(_0x4a08a4,null));};exports[_0x2f0f('0x24')]=function(_0x441c43,_0x339372){return db[_0x2f0f('0x3f')][_0x2f0f('0x49')]({'where':{'id':_0x441c43[_0x2f0f('0x45')]['id']}})[_0x2f0f('0x23')](handleEntityNotFound(_0x339372,null))[_0x2f0f('0x23')](removeEntity(_0x339372,null))[_0x2f0f('0x43')](handleError(_0x339372,null));};exports[_0x2f0f('0x4a')]=function(_0x551eb9,_0x3d504c){return db['WhatsappQueueReport'][_0x2f0f('0x4a')]()['then'](respondWithResult(_0x3d504c,null))[_0x2f0f('0x43')](handleError(_0x3d504c,null));};
\ No newline at end of file