Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / smsQueueReport / smsQueueReport.controller.js
index 7bdc6ec..4ce8f75 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6fce=['include','findAll','catch','show','params','includeAll','find','body','describe','eml-format','rimraf','zip-dir','request-promise','bluebird','mustache','sox','to-csv','fs-extra','lodash','squel','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','limit','count','set','Content-Range','apply','reject','save','update','then','destroy','error','name','send','index','map','rawAttributes','fieldName','type','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','filter','merge','options','SmsQueueReport'];(function(_0x13a102,_0x7f6c67){var _0x3a37d2=function(_0x418744){while(--_0x418744){_0x13a102['push'](_0x13a102['shift']());}};_0x3a37d2(++_0x7f6c67);}(_0x6fce,0x12d));var _0xe6fc=function(_0x68c979,_0x431cff){_0x68c979=_0x68c979-0x0;var _0x4f0001=_0x6fce[_0x68c979];return _0x4f0001;};'use strict';var emlformat=require(_0xe6fc('0x0'));var rimraf=require(_0xe6fc('0x1'));var zipdir=require(_0xe6fc('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0xe6fc('0x3'));var moment=require('moment');var BPromise=require(_0xe6fc('0x4'));var Mustache=require(_0xe6fc('0x5'));var util=require('util');var path=require('path');var sox=require(_0xe6fc('0x6'));var csv=require(_0xe6fc('0x7'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xe6fc('0x8'));var _=require(_0xe6fc('0x9'));var squel=require(_0xe6fc('0xa'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0xe6fc('0xb'));var toCsv=require(_0xe6fc('0x7'));var querystring=require('querystring');var Papa=require(_0xe6fc('0xc'));var Redis=require(_0xe6fc('0xd'));var authService=require(_0xe6fc('0xe'));var qs=require(_0xe6fc('0xf'));var as=require(_0xe6fc('0x10'));var hardwareService=require(_0xe6fc('0x11'));var logger=require(_0xe6fc('0x12'))(_0xe6fc('0x13'));var utils=require(_0xe6fc('0x14'));var config=require(_0xe6fc('0x15'));var licenseUtil=require(_0xe6fc('0x16'));var db=require(_0xe6fc('0x17'))['db'];function respondWithStatusCode(_0x5cfbcf,_0x2e714d){_0x2e714d=_0x2e714d||0xcc;return function(_0x545ebe){if(_0x545ebe){return _0x5cfbcf[_0xe6fc('0x18')](_0x2e714d);}return _0x5cfbcf[_0xe6fc('0x19')](_0x2e714d)[_0xe6fc('0x1a')]();};}function respondWithResult(_0x38ea70,_0x3162ec){_0x3162ec=_0x3162ec||0xc8;return function(_0x50375e){if(_0x50375e){return _0x38ea70[_0xe6fc('0x19')](_0x3162ec)[_0xe6fc('0x1b')](_0x50375e);}};}function respondWithFilteredResult(_0x5f5582,_0x8ff381){return function(_0x2b0b64){if(_0x2b0b64){var _0x1c0d4e=typeof _0x8ff381[_0xe6fc('0x1c')]==='undefined'&&typeof _0x8ff381[_0xe6fc('0x1d')]==='undefined';var _0x32e022=_0x2b0b64[_0xe6fc('0x1e')];var _0x60ec23=_0x1c0d4e?0x0:_0x8ff381[_0xe6fc('0x1c')];var _0x146e63=_0x1c0d4e?_0x2b0b64[_0xe6fc('0x1e')]:_0x8ff381['offset']+_0x8ff381['limit'];var _0x2ade9f;if(_0x146e63>=_0x32e022){_0x146e63=_0x32e022;_0x2ade9f=0xc8;}else{_0x2ade9f=0xce;}_0x5f5582['status'](_0x2ade9f);return _0x5f5582[_0xe6fc('0x1f')](_0xe6fc('0x20'),_0x60ec23+'-'+_0x146e63+'/'+_0x32e022)['json'](_0x2b0b64);}return null;};}function patchUpdates(_0x411a24){return function(_0xc85820){try{jsonpatch[_0xe6fc('0x21')](_0xc85820,_0x411a24,!![]);}catch(_0x1c7377){return BPromise[_0xe6fc('0x22')](_0x1c7377);}return _0xc85820[_0xe6fc('0x23')]();};}function saveUpdates(_0x15a8ba,_0x51749a){return function(_0x2920f4){if(_0x2920f4){return _0x2920f4[_0xe6fc('0x24')](_0x15a8ba)[_0xe6fc('0x25')](function(_0x5a9a41){return _0x5a9a41;});}return null;};}function removeEntity(_0x5a02a0,_0x37e5e5){return function(_0x582f8){if(_0x582f8){return _0x582f8[_0xe6fc('0x26')]()[_0xe6fc('0x25')](function(){_0x5a02a0[_0xe6fc('0x19')](0xcc)[_0xe6fc('0x1a')]();});}};}function handleEntityNotFound(_0x25113b,_0x4f4bae){return function(_0x7d8292){if(!_0x7d8292){_0x25113b[_0xe6fc('0x18')](0x194);}return _0x7d8292;};}function handleError(_0x484d67,_0x79f1cd){_0x79f1cd=_0x79f1cd||0x1f4;return function(_0x31ee99){logger[_0xe6fc('0x27')](_0x31ee99['stack']);if(_0x31ee99[_0xe6fc('0x28')]){delete _0x31ee99[_0xe6fc('0x28')];}_0x484d67[_0xe6fc('0x19')](_0x79f1cd)[_0xe6fc('0x29')](_0x31ee99);};}exports[_0xe6fc('0x2a')]=function(_0xfb8948,_0x5b7a31){var _0x144460={},_0x5567b4={},_0x2181ed={'count':0x0,'rows':[]};var _0x23d61d=_[_0xe6fc('0x2b')](db['SmsQueueReport'][_0xe6fc('0x2c')],function(_0xde81d5){return{'name':_0xde81d5[_0xe6fc('0x2d')],'type':_0xde81d5[_0xe6fc('0x2e')]['key']};});_0x5567b4[_0xe6fc('0x2f')]=_['map'](_0x23d61d,_0xe6fc('0x28'));_0x5567b4[_0xe6fc('0x30')]=_[_0xe6fc('0x31')](_0xfb8948[_0xe6fc('0x30')]);_0x5567b4[_0xe6fc('0x32')]=_[_0xe6fc('0x33')](_0x5567b4[_0xe6fc('0x2f')],_0x5567b4[_0xe6fc('0x30')]);_0x144460['attributes']=_[_0xe6fc('0x33')](_0x5567b4[_0xe6fc('0x2f')],qs[_0xe6fc('0x34')](_0xfb8948[_0xe6fc('0x30')][_0xe6fc('0x34')]));_0x144460[_0xe6fc('0x35')]=_0x144460[_0xe6fc('0x35')][_0xe6fc('0x36')]?_0x144460[_0xe6fc('0x35')]:_0x5567b4[_0xe6fc('0x2f')];if(!_0xfb8948[_0xe6fc('0x30')][_0xe6fc('0x37')](_0xe6fc('0x38'))){_0x144460['limit']=qs[_0xe6fc('0x1d')](_0xfb8948[_0xe6fc('0x30')][_0xe6fc('0x1d')]);_0x144460[_0xe6fc('0x1c')]=qs[_0xe6fc('0x1c')](_0xfb8948[_0xe6fc('0x30')][_0xe6fc('0x1c')]);}_0x144460[_0xe6fc('0x39')]=qs[_0xe6fc('0x3a')](_0xfb8948[_0xe6fc('0x30')]['sort']);_0x144460[_0xe6fc('0x3b')]=qs['filters'](_['pick'](_0xfb8948['query'],_0x5567b4[_0xe6fc('0x32')]),_0x23d61d);if(_0xfb8948[_0xe6fc('0x30')][_0xe6fc('0x3c')]){_0x144460[_0xe6fc('0x3b')]=_[_0xe6fc('0x3d')](_0x144460[_0xe6fc('0x3b')],{'$or':_['map'](_0x23d61d,function(_0x180c6e){if(_0x180c6e['type']!=='VIRTUAL'){var _0x2c2f84={};_0x2c2f84[_0x180c6e['name']]={'$like':'%'+_0xfb8948['query']['filter']+'%'};return _0x2c2f84;}})});}_0x144460=_[_0xe6fc('0x3d')]({},_0x144460,_0xfb8948[_0xe6fc('0x3e')]);var _0x4c5de7={'where':_0x144460[_0xe6fc('0x3b')]};return db[_0xe6fc('0x3f')]['count'](_0x4c5de7)['then'](function(_0x3955ba){_0x2181ed[_0xe6fc('0x1e')]=_0x3955ba;if(_0xfb8948['query']['includeAll']){_0x144460[_0xe6fc('0x40')]=[{'all':!![]}];}return db[_0xe6fc('0x3f')][_0xe6fc('0x41')](_0x144460);})[_0xe6fc('0x25')](function(_0x11502a){_0x2181ed['rows']=_0x11502a;return _0x2181ed;})['then'](respondWithFilteredResult(_0x5b7a31,_0x144460))[_0xe6fc('0x42')](handleError(_0x5b7a31,null));};exports[_0xe6fc('0x43')]=function(_0x4aa5e1,_0x42de4d){var _0x5b9bac={'raw':!![],'where':{'id':_0x4aa5e1[_0xe6fc('0x44')]['id']}},_0x22471d={};_0x22471d[_0xe6fc('0x2f')]=_['keys'](db[_0xe6fc('0x3f')][_0xe6fc('0x2c')]);_0x22471d[_0xe6fc('0x30')]=_[_0xe6fc('0x31')](_0x4aa5e1['query']);_0x22471d['filters']=_['intersection'](_0x22471d[_0xe6fc('0x2f')],_0x22471d[_0xe6fc('0x30')]);_0x5b9bac[_0xe6fc('0x35')]=_[_0xe6fc('0x33')](_0x22471d[_0xe6fc('0x2f')],qs[_0xe6fc('0x34')](_0x4aa5e1['query'][_0xe6fc('0x34')]));_0x5b9bac[_0xe6fc('0x35')]=_0x5b9bac[_0xe6fc('0x35')]['length']?_0x5b9bac[_0xe6fc('0x35')]:_0x22471d[_0xe6fc('0x2f')];if(_0x4aa5e1['query'][_0xe6fc('0x45')]){_0x5b9bac[_0xe6fc('0x40')]=[{'all':!![]}];}_0x5b9bac=_[_0xe6fc('0x3d')]({},_0x5b9bac,_0x4aa5e1[_0xe6fc('0x3e')]);return db[_0xe6fc('0x3f')][_0xe6fc('0x46')](_0x5b9bac)[_0xe6fc('0x25')](handleEntityNotFound(_0x42de4d,null))[_0xe6fc('0x25')](respondWithResult(_0x42de4d,null))[_0xe6fc('0x42')](handleError(_0x42de4d,null));};exports['create']=function(_0x22ab41,_0x1610ba){return db[_0xe6fc('0x3f')]['create'](_0x22ab41[_0xe6fc('0x47')],{})['then'](respondWithResult(_0x1610ba,0xc9))[_0xe6fc('0x42')](handleError(_0x1610ba,null));};exports['update']=function(_0xffe4f1,_0x7de27c){if(_0xffe4f1[_0xe6fc('0x47')]['id']){delete _0xffe4f1[_0xe6fc('0x47')]['id'];}return db[_0xe6fc('0x3f')]['find']({'where':{'id':_0xffe4f1[_0xe6fc('0x44')]['id']}})[_0xe6fc('0x25')](handleEntityNotFound(_0x7de27c,null))[_0xe6fc('0x25')](saveUpdates(_0xffe4f1[_0xe6fc('0x47')],null))['then'](respondWithResult(_0x7de27c,null))[_0xe6fc('0x42')](handleError(_0x7de27c,null));};exports[_0xe6fc('0x26')]=function(_0x11bd5d,_0x25cf67){return db[_0xe6fc('0x3f')][_0xe6fc('0x46')]({'where':{'id':_0x11bd5d[_0xe6fc('0x44')]['id']}})[_0xe6fc('0x25')](handleEntityNotFound(_0x25cf67,null))[_0xe6fc('0x25')](removeEntity(_0x25cf67,null))[_0xe6fc('0x42')](handleError(_0x25cf67,null));};exports['describe']=function(_0x5e490c,_0xf243a7){return db['SmsQueueReport'][_0xe6fc('0x48')]()[_0xe6fc('0x25')](respondWithResult(_0xf243a7,null))[_0xe6fc('0x42')](handleError(_0xf243a7,null));};
\ No newline at end of file
+var _0xa86f=['fields','length','attributes','hasOwnProperty','nolimit','order','sort','where','pick','merge','VIRTUAL','filter','options','include','findAll','rows','catch','show','params','intersection','includeAll','create','body','update','find','describe','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','sox','to-csv','fs-extra','lodash','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../mysqldb','sendStatus','status','end','json','undefined','count','offset','limit','Content-Range','apply','reject','save','then','error','stack','name','send','index','SmsQueueReport','rawAttributes','fieldName','type','key','model','map','query','keys','filters'];(function(_0x4e8b44,_0x474654){var _0x531bfc=function(_0x334bd9){while(--_0x334bd9){_0x4e8b44['push'](_0x4e8b44['shift']());}};_0x531bfc(++_0x474654);}(_0xa86f,0x146));var _0xfa86=function(_0x3da7ab,_0x2e00dc){_0x3da7ab=_0x3da7ab-0x0;var _0x4819ed=_0xa86f[_0x3da7ab];return _0x4819ed;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xfa86('0x0'));var zipdir=require(_0xfa86('0x1'));var jsonpatch=require(_0xfa86('0x2'));var rp=require(_0xfa86('0x3'));var moment=require('moment');var BPromise=require(_0xfa86('0x4'));var Mustache=require('mustache');var util=require('util');var path=require('path');var sox=require(_0xfa86('0x5'));var csv=require(_0xfa86('0x6'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xfa86('0x7'));var _=require(_0xfa86('0x8'));var squel=require('squel');var crypto=require(_0xfa86('0x9'));var jsforce=require(_0xfa86('0xa'));var deskjs=require(_0xfa86('0xb'));var toCsv=require(_0xfa86('0x6'));var querystring=require(_0xfa86('0xc'));var Papa=require(_0xfa86('0xd'));var Redis=require('ioredis');var authService=require(_0xfa86('0xe'));var qs=require(_0xfa86('0xf'));var as=require(_0xfa86('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xfa86('0x11'))(_0xfa86('0x12'));var utils=require(_0xfa86('0x13'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0xfa86('0x14'))['db'];function respondWithStatusCode(_0x502aa1,_0x244d0f){_0x244d0f=_0x244d0f||0xcc;return function(_0x8ba86f){if(_0x8ba86f){return _0x502aa1[_0xfa86('0x15')](_0x244d0f);}return _0x502aa1[_0xfa86('0x16')](_0x244d0f)[_0xfa86('0x17')]();};}function respondWithResult(_0x517c27,_0x4b300e){_0x4b300e=_0x4b300e||0xc8;return function(_0x3bdb1c){if(_0x3bdb1c){return _0x517c27['status'](_0x4b300e)[_0xfa86('0x18')](_0x3bdb1c);}};}function respondWithFilteredResult(_0x3031f9,_0x5a6234){return function(_0x5613a9){if(_0x5613a9){var _0x32cfe7=typeof _0x5a6234['offset']===_0xfa86('0x19')&&typeof _0x5a6234['limit']==='undefined';var _0xca7d05=_0x5613a9[_0xfa86('0x1a')];var _0x18de55=_0x32cfe7?0x0:_0x5a6234['offset'];var _0x47bddc=_0x32cfe7?_0x5613a9['count']:_0x5a6234[_0xfa86('0x1b')]+_0x5a6234[_0xfa86('0x1c')];var _0x211dfd;if(_0x47bddc>=_0xca7d05){_0x47bddc=_0xca7d05;_0x211dfd=0xc8;}else{_0x211dfd=0xce;}_0x3031f9[_0xfa86('0x16')](_0x211dfd);return _0x3031f9['set'](_0xfa86('0x1d'),_0x18de55+'-'+_0x47bddc+'/'+_0xca7d05)[_0xfa86('0x18')](_0x5613a9);}return null;};}function patchUpdates(_0x4f137e){return function(_0x56cebe){try{jsonpatch[_0xfa86('0x1e')](_0x56cebe,_0x4f137e,!![]);}catch(_0x947dd0){return BPromise[_0xfa86('0x1f')](_0x947dd0);}return _0x56cebe[_0xfa86('0x20')]();};}function saveUpdates(_0x4c2d16,_0x539b5f){return function(_0x5e802f){if(_0x5e802f){return _0x5e802f['update'](_0x4c2d16)[_0xfa86('0x21')](function(_0x39db6b){return _0x39db6b;});}return null;};}function removeEntity(_0x4eadd0,_0x3017af){return function(_0x4a8046){if(_0x4a8046){return _0x4a8046['destroy']()[_0xfa86('0x21')](function(){_0x4eadd0['status'](0xcc)[_0xfa86('0x17')]();});}};}function handleEntityNotFound(_0x14be22,_0xcbcaff){return function(_0x5b6616){if(!_0x5b6616){_0x14be22[_0xfa86('0x15')](0x194);}return _0x5b6616;};}function handleError(_0x3f1e71,_0xd8f34f){_0xd8f34f=_0xd8f34f||0x1f4;return function(_0x2df4ae){logger[_0xfa86('0x22')](_0x2df4ae[_0xfa86('0x23')]);if(_0x2df4ae[_0xfa86('0x24')]){delete _0x2df4ae[_0xfa86('0x24')];}_0x3f1e71[_0xfa86('0x16')](_0xd8f34f)[_0xfa86('0x25')](_0x2df4ae);};}exports[_0xfa86('0x26')]=function(_0x523988,_0x179a80){var _0x55818b={},_0x329c0e={},_0x469eef={'count':0x0,'rows':[]};var _0x35d3fa=_['map'](db[_0xfa86('0x27')][_0xfa86('0x28')],function(_0x500f55){return{'name':_0x500f55[_0xfa86('0x29')],'type':_0x500f55[_0xfa86('0x2a')][_0xfa86('0x2b')]};});_0x329c0e[_0xfa86('0x2c')]=_[_0xfa86('0x2d')](_0x35d3fa,_0xfa86('0x24'));_0x329c0e[_0xfa86('0x2e')]=_[_0xfa86('0x2f')](_0x523988['query']);_0x329c0e[_0xfa86('0x30')]=_['intersection'](_0x329c0e[_0xfa86('0x2c')],_0x329c0e[_0xfa86('0x2e')]);_0x55818b['attributes']=_['intersection'](_0x329c0e['model'],qs[_0xfa86('0x31')](_0x523988[_0xfa86('0x2e')][_0xfa86('0x31')]));_0x55818b['attributes']=_0x55818b['attributes'][_0xfa86('0x32')]?_0x55818b[_0xfa86('0x33')]:_0x329c0e[_0xfa86('0x2c')];if(!_0x523988[_0xfa86('0x2e')][_0xfa86('0x34')](_0xfa86('0x35'))){_0x55818b[_0xfa86('0x1c')]=qs[_0xfa86('0x1c')](_0x523988[_0xfa86('0x2e')]['limit']);_0x55818b[_0xfa86('0x1b')]=qs['offset'](_0x523988['query'][_0xfa86('0x1b')]);}_0x55818b[_0xfa86('0x36')]=qs[_0xfa86('0x37')](_0x523988[_0xfa86('0x2e')][_0xfa86('0x37')]);_0x55818b[_0xfa86('0x38')]=qs[_0xfa86('0x30')](_[_0xfa86('0x39')](_0x523988[_0xfa86('0x2e')],_0x329c0e[_0xfa86('0x30')]),_0x35d3fa);if(_0x523988[_0xfa86('0x2e')]['filter']){_0x55818b['where']=_[_0xfa86('0x3a')](_0x55818b[_0xfa86('0x38')],{'$or':_['map'](_0x35d3fa,function(_0x59a28){if(_0x59a28[_0xfa86('0x2a')]!==_0xfa86('0x3b')){var _0x395f72={};_0x395f72[_0x59a28['name']]={'$like':'%'+_0x523988[_0xfa86('0x2e')][_0xfa86('0x3c')]+'%'};return _0x395f72;}})});}_0x55818b=_[_0xfa86('0x3a')]({},_0x55818b,_0x523988[_0xfa86('0x3d')]);var _0x297473={'where':_0x55818b[_0xfa86('0x38')]};return db[_0xfa86('0x27')][_0xfa86('0x1a')](_0x297473)['then'](function(_0x2cb538){_0x469eef[_0xfa86('0x1a')]=_0x2cb538;if(_0x523988[_0xfa86('0x2e')]['includeAll']){_0x55818b[_0xfa86('0x3e')]=[{'all':!![]}];}return db[_0xfa86('0x27')][_0xfa86('0x3f')](_0x55818b);})['then'](function(_0x2c281e){_0x469eef[_0xfa86('0x40')]=_0x2c281e;return _0x469eef;})['then'](respondWithFilteredResult(_0x179a80,_0x55818b))[_0xfa86('0x41')](handleError(_0x179a80,null));};exports[_0xfa86('0x42')]=function(_0x3d9bbe,_0x25b8e2){var _0x24b435={'raw':!![],'where':{'id':_0x3d9bbe[_0xfa86('0x43')]['id']}},_0x1ed920={};_0x1ed920[_0xfa86('0x2c')]=_[_0xfa86('0x2f')](db[_0xfa86('0x27')][_0xfa86('0x28')]);_0x1ed920[_0xfa86('0x2e')]=_[_0xfa86('0x2f')](_0x3d9bbe[_0xfa86('0x2e')]);_0x1ed920['filters']=_[_0xfa86('0x44')](_0x1ed920[_0xfa86('0x2c')],_0x1ed920[_0xfa86('0x2e')]);_0x24b435[_0xfa86('0x33')]=_[_0xfa86('0x44')](_0x1ed920['model'],qs[_0xfa86('0x31')](_0x3d9bbe[_0xfa86('0x2e')][_0xfa86('0x31')]));_0x24b435['attributes']=_0x24b435[_0xfa86('0x33')]['length']?_0x24b435[_0xfa86('0x33')]:_0x1ed920['model'];if(_0x3d9bbe[_0xfa86('0x2e')][_0xfa86('0x45')]){_0x24b435[_0xfa86('0x3e')]=[{'all':!![]}];}_0x24b435=_['merge']({},_0x24b435,_0x3d9bbe[_0xfa86('0x3d')]);return db[_0xfa86('0x27')]['find'](_0x24b435)[_0xfa86('0x21')](handleEntityNotFound(_0x25b8e2,null))['then'](respondWithResult(_0x25b8e2,null))[_0xfa86('0x41')](handleError(_0x25b8e2,null));};exports[_0xfa86('0x46')]=function(_0x443850,_0x17116c){return db[_0xfa86('0x27')][_0xfa86('0x46')](_0x443850[_0xfa86('0x47')],{})[_0xfa86('0x21')](respondWithResult(_0x17116c,0xc9))[_0xfa86('0x41')](handleError(_0x17116c,null));};exports[_0xfa86('0x48')]=function(_0x41e8b5,_0x2d9f27){if(_0x41e8b5[_0xfa86('0x47')]['id']){delete _0x41e8b5['body']['id'];}return db[_0xfa86('0x27')]['find']({'where':{'id':_0x41e8b5['params']['id']}})['then'](handleEntityNotFound(_0x2d9f27,null))[_0xfa86('0x21')](saveUpdates(_0x41e8b5[_0xfa86('0x47')],null))[_0xfa86('0x21')](respondWithResult(_0x2d9f27,null))['catch'](handleError(_0x2d9f27,null));};exports['destroy']=function(_0x2ce700,_0x2d5614){return db[_0xfa86('0x27')][_0xfa86('0x49')]({'where':{'id':_0x2ce700[_0xfa86('0x43')]['id']}})[_0xfa86('0x21')](handleEntityNotFound(_0x2d5614,null))['then'](removeEntity(_0x2d5614,null))[_0xfa86('0x41')](handleError(_0x2d5614,null));};exports[_0xfa86('0x4a')]=function(_0x8be4f9,_0x38d97a){return db['SmsQueueReport'][_0xfa86('0x4a')]()[_0xfa86('0x21')](respondWithResult(_0x38d97a,null))[_0xfa86('0x41')](handleError(_0x38d97a,null));};
\ No newline at end of file