Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / smsQueueReport / smsQueueReport.controller.js
index 43eb6f6..15931f1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd8f8=['sox','to-csv','ejs','lodash','desk.js','querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../mysqldb','sendStatus','end','status','json','count','offset','limit','set','Content-Range','apply','reject','save','update','then','error','stack','send','index','map','SmsQueueReport','rawAttributes','type','query','filters','intersection','model','fields','attributes','hasOwnProperty','nolimit','order','sort','where','pick','filter','VIRTUAL','name','merge','options','includeAll','include','findAll','rows','params','keys','length','find','catch','create','body','destroy','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','mustache','path'];(function(_0x20edb6,_0x35568e){var _0x352849=function(_0x3923df){while(--_0x3923df){_0x20edb6['push'](_0x20edb6['shift']());}};_0x352849(++_0x35568e);}(_0xd8f8,0xd3));var _0x8d8f=function(_0x1cc8fe,_0x105328){_0x1cc8fe=_0x1cc8fe-0x0;var _0x230054=_0xd8f8[_0x1cc8fe];return _0x230054;};'use strict';var pdf=require(_0x8d8f('0x0'));var emlformat=require(_0x8d8f('0x1'));var rimraf=require(_0x8d8f('0x2'));var zipdir=require(_0x8d8f('0x3'));var jsonpatch=require(_0x8d8f('0x4'));var rp=require(_0x8d8f('0x5'));var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0x8d8f('0x6'));var util=require('util');var path=require(_0x8d8f('0x7'));var sox=require(_0x8d8f('0x8'));var csv=require(_0x8d8f('0x9'));var ejs=require(_0x8d8f('0xa'));var fs=require('fs');var _=require(_0x8d8f('0xb'));var squel=require('squel');var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x8d8f('0xc'));var toCsv=require(_0x8d8f('0x9'));var querystring=require(_0x8d8f('0xd'));var Papa=require(_0x8d8f('0xe'));var Redis=require(_0x8d8f('0xf'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0x8d8f('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x8d8f('0x11'))(_0x8d8f('0x12'));var utils=require(_0x8d8f('0x13'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0x8d8f('0x14'))['db'];function respondWithStatusCode(_0x2fa27c,_0x1bf787){_0x1bf787=_0x1bf787||0xcc;return function(_0x45bca9){if(_0x45bca9){return _0x2fa27c[_0x8d8f('0x15')](_0x1bf787);}return _0x2fa27c['status'](_0x1bf787)[_0x8d8f('0x16')]();};}function respondWithResult(_0x59a33a,_0x4e860b){_0x4e860b=_0x4e860b||0xc8;return function(_0xa04412){if(_0xa04412){return _0x59a33a[_0x8d8f('0x17')](_0x4e860b)[_0x8d8f('0x18')](_0xa04412);}};}function respondWithFilteredResult(_0x5dfe58,_0x54b5c4){return function(_0x24b54d){if(_0x24b54d){var _0x1603b6=_0x24b54d[_0x8d8f('0x19')],_0x2624c6=_0x54b5c4[_0x8d8f('0x1a')],_0x2fbf42=_0x54b5c4[_0x8d8f('0x1a')]+_0x54b5c4[_0x8d8f('0x1b')],_0x2b74c9;if(_0x2fbf42>=_0x1603b6){_0x2fbf42=_0x1603b6;_0x2b74c9=0xc8;}else{_0x2b74c9=0xce;}_0x5dfe58[_0x8d8f('0x17')](_0x2b74c9);return _0x5dfe58[_0x8d8f('0x1c')](_0x8d8f('0x1d'),_0x2624c6+'-'+_0x2fbf42+'/'+_0x1603b6)[_0x8d8f('0x18')](_0x24b54d);}return null;};}function patchUpdates(_0x113221){return function(_0x18dd4a){try{jsonpatch[_0x8d8f('0x1e')](_0x18dd4a,_0x113221,!![]);}catch(_0x1d0655){return BPromise[_0x8d8f('0x1f')](_0x1d0655);}return _0x18dd4a[_0x8d8f('0x20')]();};}function saveUpdates(_0x217e8e,_0x3c5987){return function(_0xb36128){if(_0xb36128){return _0xb36128[_0x8d8f('0x21')](_0x217e8e)[_0x8d8f('0x22')](function(_0x1dce06){return _0x1dce06;});}return null;};}function removeEntity(_0x82f43c,_0x11fc92){return function(_0x1178d0){if(_0x1178d0){return _0x1178d0['destroy']()[_0x8d8f('0x22')](function(){_0x82f43c['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0xc1459f,_0xf4d5fc){return function(_0x4bdabf){if(!_0x4bdabf){_0xc1459f[_0x8d8f('0x15')](0x194);}return _0x4bdabf;};}function handleError(_0x5ae489,_0x4fc4d5){_0x4fc4d5=_0x4fc4d5||0x1f4;return function(_0x3ca438){logger[_0x8d8f('0x23')](_0x3ca438[_0x8d8f('0x24')]);if(_0x3ca438['name']){delete _0x3ca438['name'];}_0x5ae489['status'](_0x4fc4d5)[_0x8d8f('0x25')](_0x3ca438);};}exports[_0x8d8f('0x26')]=function(_0x3a8605,_0x4e94c6){var _0x55e20b={},_0x529dcd={},_0x5bfe26={'count':0x0,'rows':[]};var _0xf822a2=_[_0x8d8f('0x27')](db[_0x8d8f('0x28')][_0x8d8f('0x29')],function(_0x22e9bc){return{'name':_0x22e9bc['fieldName'],'type':_0x22e9bc[_0x8d8f('0x2a')]['key']};});_0x529dcd['model']=_['map'](_0xf822a2,'name');_0x529dcd[_0x8d8f('0x2b')]=_['keys'](_0x3a8605['query']);_0x529dcd[_0x8d8f('0x2c')]=_[_0x8d8f('0x2d')](_0x529dcd['model'],_0x529dcd[_0x8d8f('0x2b')]);_0x55e20b['attributes']=_[_0x8d8f('0x2d')](_0x529dcd[_0x8d8f('0x2e')],qs[_0x8d8f('0x2f')](_0x3a8605[_0x8d8f('0x2b')]['fields']));_0x55e20b[_0x8d8f('0x30')]=_0x55e20b[_0x8d8f('0x30')]['length']?_0x55e20b[_0x8d8f('0x30')]:_0x529dcd[_0x8d8f('0x2e')];if(!_0x3a8605[_0x8d8f('0x2b')][_0x8d8f('0x31')](_0x8d8f('0x32'))){_0x55e20b['limit']=qs['limit'](_0x3a8605[_0x8d8f('0x2b')][_0x8d8f('0x1b')]);_0x55e20b[_0x8d8f('0x1a')]=qs['offset'](_0x3a8605[_0x8d8f('0x2b')][_0x8d8f('0x1a')]);}_0x55e20b[_0x8d8f('0x33')]=qs[_0x8d8f('0x34')](_0x3a8605['query'][_0x8d8f('0x34')]);_0x55e20b[_0x8d8f('0x35')]=qs['filters'](_[_0x8d8f('0x36')](_0x3a8605[_0x8d8f('0x2b')],_0x529dcd[_0x8d8f('0x2c')]),_0xf822a2);if(_0x3a8605[_0x8d8f('0x2b')][_0x8d8f('0x37')]){_0x55e20b[_0x8d8f('0x35')]=_['merge'](_0x55e20b['where'],{'$or':_['map'](_0xf822a2,function(_0x55d61b){if(_0x55d61b[_0x8d8f('0x2a')]!==_0x8d8f('0x38')){var _0x1bc1db={};_0x1bc1db[_0x55d61b[_0x8d8f('0x39')]]={'$like':'%'+_0x3a8605[_0x8d8f('0x2b')][_0x8d8f('0x37')]+'%'};return _0x1bc1db;}})});}_0x55e20b=_[_0x8d8f('0x3a')]({},_0x55e20b,_0x3a8605[_0x8d8f('0x3b')]);var _0x912dae={'where':_0x55e20b[_0x8d8f('0x35')]};return db['SmsQueueReport']['count'](_0x912dae)[_0x8d8f('0x22')](function(_0x4e8ec1){_0x5bfe26[_0x8d8f('0x19')]=_0x4e8ec1;if(_0x3a8605[_0x8d8f('0x2b')][_0x8d8f('0x3c')]){_0x55e20b[_0x8d8f('0x3d')]=[{'all':!![]}];}return db[_0x8d8f('0x28')][_0x8d8f('0x3e')](_0x55e20b);})[_0x8d8f('0x22')](function(_0x55eba1){_0x5bfe26[_0x8d8f('0x3f')]=_0x55eba1;return _0x5bfe26;})[_0x8d8f('0x22')](respondWithFilteredResult(_0x4e94c6,_0x55e20b))['catch'](handleError(_0x4e94c6,null));};exports['show']=function(_0x58183f,_0x500514){var _0x3470f8={'raw':!![],'where':{'id':_0x58183f[_0x8d8f('0x40')]['id']}},_0x22a9ea={};_0x22a9ea[_0x8d8f('0x2e')]=_[_0x8d8f('0x41')](db[_0x8d8f('0x28')]['rawAttributes']);_0x22a9ea[_0x8d8f('0x2b')]=_[_0x8d8f('0x41')](_0x58183f['query']);_0x22a9ea[_0x8d8f('0x2c')]=_['intersection'](_0x22a9ea[_0x8d8f('0x2e')],_0x22a9ea[_0x8d8f('0x2b')]);_0x3470f8['attributes']=_['intersection'](_0x22a9ea[_0x8d8f('0x2e')],qs['fields'](_0x58183f['query'][_0x8d8f('0x2f')]));_0x3470f8[_0x8d8f('0x30')]=_0x3470f8['attributes'][_0x8d8f('0x42')]?_0x3470f8['attributes']:_0x22a9ea[_0x8d8f('0x2e')];if(_0x58183f[_0x8d8f('0x2b')]['includeAll']){_0x3470f8[_0x8d8f('0x3d')]=[{'all':!![]}];}_0x3470f8=_['merge']({},_0x3470f8,_0x58183f[_0x8d8f('0x3b')]);return db[_0x8d8f('0x28')][_0x8d8f('0x43')](_0x3470f8)[_0x8d8f('0x22')](handleEntityNotFound(_0x500514,null))[_0x8d8f('0x22')](respondWithResult(_0x500514,null))[_0x8d8f('0x44')](handleError(_0x500514,null));};exports[_0x8d8f('0x45')]=function(_0x41aaf6,_0x56f2e1){return db[_0x8d8f('0x28')]['create'](_0x41aaf6[_0x8d8f('0x46')],{})['then'](respondWithResult(_0x56f2e1,0xc9))[_0x8d8f('0x44')](handleError(_0x56f2e1,null));};exports[_0x8d8f('0x21')]=function(_0x239f35,_0x3f2660){if(_0x239f35['body']['id']){delete _0x239f35[_0x8d8f('0x46')]['id'];}return db['SmsQueueReport'][_0x8d8f('0x43')]({'where':{'id':_0x239f35[_0x8d8f('0x40')]['id']}})['then'](handleEntityNotFound(_0x3f2660,null))[_0x8d8f('0x22')](saveUpdates(_0x239f35['body'],null))[_0x8d8f('0x22')](respondWithResult(_0x3f2660,null))[_0x8d8f('0x44')](handleError(_0x3f2660,null));};exports[_0x8d8f('0x47')]=function(_0x1cd3e1,_0x5c5bc7){return db[_0x8d8f('0x28')]['find']({'where':{'id':_0x1cd3e1['params']['id']}})[_0x8d8f('0x22')](handleEntityNotFound(_0x5c5bc7,null))['then'](removeEntity(_0x5c5bc7,null))['catch'](handleError(_0x5c5bc7,null));};exports[_0x8d8f('0x48')]=function(_0x5f4459,_0x3dfe6f){return db[_0x8d8f('0x28')][_0x8d8f('0x48')]()['then'](respondWithResult(_0x3dfe6f,null))[_0x8d8f('0x44')](handleError(_0x3dfe6f,null));};
\ No newline at end of file
+var _0xeed0=['request-promise','moment','bluebird','mustache','util','path','sox','to-csv','squel','crypto','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','sendStatus','status','end','json','offset','undefined','limit','count','set','apply','reject','update','then','destroy','error','name','send','index','map','SmsQueueReport','rawAttributes','fieldName','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','order','sort','where','pick','filter','merge','type','VIRTUAL','includeAll','include','rows','catch','show','params','options','find','create','body','describe','eml-format','rimraf','zip-dir','fast-json-patch'];(function(_0x17c829,_0x10960a){var _0x55dc40=function(_0x3c0987){while(--_0x3c0987){_0x17c829['push'](_0x17c829['shift']());}};_0x55dc40(++_0x10960a);}(_0xeed0,0x182));var _0x0eed=function(_0x5c972f,_0x2806e1){_0x5c972f=_0x5c972f-0x0;var _0x41bc72=_0xeed0[_0x5c972f];return _0x41bc72;};'use strict';var emlformat=require(_0x0eed('0x0'));var rimraf=require(_0x0eed('0x1'));var zipdir=require(_0x0eed('0x2'));var jsonpatch=require(_0x0eed('0x3'));var rp=require(_0x0eed('0x4'));var moment=require(_0x0eed('0x5'));var BPromise=require(_0x0eed('0x6'));var Mustache=require(_0x0eed('0x7'));var util=require(_0x0eed('0x8'));var path=require(_0x0eed('0x9'));var sox=require(_0x0eed('0xa'));var csv=require(_0x0eed('0xb'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x0eed('0xc'));var crypto=require(_0x0eed('0xd'));var jsforce=require(_0x0eed('0xe'));var deskjs=require(_0x0eed('0xf'));var toCsv=require('to-csv');var querystring=require(_0x0eed('0x10'));var Papa=require(_0x0eed('0x11'));var Redis=require(_0x0eed('0x12'));var authService=require('../../components/auth/service');var qs=require(_0x0eed('0x13'));var as=require(_0x0eed('0x14'));var hardwareService=require(_0x0eed('0x15'));var logger=require(_0x0eed('0x16'))(_0x0eed('0x17'));var utils=require(_0x0eed('0x18'));var config=require(_0x0eed('0x19'));var licenseUtil=require(_0x0eed('0x1a'));var db=require(_0x0eed('0x1b'))['db'];function respondWithStatusCode(_0x180857,_0x3a9663){_0x3a9663=_0x3a9663||0xcc;return function(_0x2ea523){if(_0x2ea523){return _0x180857[_0x0eed('0x1c')](_0x3a9663);}return _0x180857[_0x0eed('0x1d')](_0x3a9663)[_0x0eed('0x1e')]();};}function respondWithResult(_0x122c35,_0x309c7c){_0x309c7c=_0x309c7c||0xc8;return function(_0x4e5cb9){if(_0x4e5cb9){return _0x122c35['status'](_0x309c7c)[_0x0eed('0x1f')](_0x4e5cb9);}};}function respondWithFilteredResult(_0x5038ce,_0x4e3fd0){return function(_0x5448cb){if(_0x5448cb){var _0x50a68f=typeof _0x4e3fd0[_0x0eed('0x20')]===_0x0eed('0x21')&&typeof _0x4e3fd0[_0x0eed('0x22')]===_0x0eed('0x21');var _0x21d725=_0x5448cb[_0x0eed('0x23')];var _0x14f48f=_0x50a68f?0x0:_0x4e3fd0[_0x0eed('0x20')];var _0x8986cf=_0x50a68f?_0x5448cb[_0x0eed('0x23')]:_0x4e3fd0[_0x0eed('0x20')]+_0x4e3fd0['limit'];var _0x559bb2;if(_0x8986cf>=_0x21d725){_0x8986cf=_0x21d725;_0x559bb2=0xc8;}else{_0x559bb2=0xce;}_0x5038ce['status'](_0x559bb2);return _0x5038ce[_0x0eed('0x24')]('Content-Range',_0x14f48f+'-'+_0x8986cf+'/'+_0x21d725)[_0x0eed('0x1f')](_0x5448cb);}return null;};}function patchUpdates(_0x59dde4){return function(_0x525f47){try{jsonpatch[_0x0eed('0x25')](_0x525f47,_0x59dde4,!![]);}catch(_0x205f81){return BPromise[_0x0eed('0x26')](_0x205f81);}return _0x525f47['save']();};}function saveUpdates(_0x379774,_0x1aae0c){return function(_0x5aeb95){if(_0x5aeb95){return _0x5aeb95[_0x0eed('0x27')](_0x379774)[_0x0eed('0x28')](function(_0x3a0ea0){return _0x3a0ea0;});}return null;};}function removeEntity(_0x53fe46,_0x1017e8){return function(_0x1ba5b1){if(_0x1ba5b1){return _0x1ba5b1[_0x0eed('0x29')]()['then'](function(){_0x53fe46[_0x0eed('0x1d')](0xcc)[_0x0eed('0x1e')]();});}};}function handleEntityNotFound(_0x423482,_0x5a40d7){return function(_0x3fd6cb){if(!_0x3fd6cb){_0x423482[_0x0eed('0x1c')](0x194);}return _0x3fd6cb;};}function handleError(_0x3da90b,_0x32029e){_0x32029e=_0x32029e||0x1f4;return function(_0x2bb0c0){logger[_0x0eed('0x2a')](_0x2bb0c0['stack']);if(_0x2bb0c0['name']){delete _0x2bb0c0[_0x0eed('0x2b')];}_0x3da90b[_0x0eed('0x1d')](_0x32029e)[_0x0eed('0x2c')](_0x2bb0c0);};}exports[_0x0eed('0x2d')]=function(_0x43f8cb,_0x5b3531){var _0x1ad404={},_0x2405ed={},_0x1bebf6={'count':0x0,'rows':[]};var _0x13fa24=_[_0x0eed('0x2e')](db[_0x0eed('0x2f')][_0x0eed('0x30')],function(_0x5f1822){return{'name':_0x5f1822[_0x0eed('0x31')],'type':_0x5f1822['type']['key']};});_0x2405ed[_0x0eed('0x32')]=_[_0x0eed('0x2e')](_0x13fa24,'name');_0x2405ed[_0x0eed('0x33')]=_[_0x0eed('0x34')](_0x43f8cb[_0x0eed('0x33')]);_0x2405ed[_0x0eed('0x35')]=_[_0x0eed('0x36')](_0x2405ed['model'],_0x2405ed[_0x0eed('0x33')]);_0x1ad404[_0x0eed('0x37')]=_[_0x0eed('0x36')](_0x2405ed[_0x0eed('0x32')],qs[_0x0eed('0x38')](_0x43f8cb[_0x0eed('0x33')][_0x0eed('0x38')]));_0x1ad404['attributes']=_0x1ad404[_0x0eed('0x37')][_0x0eed('0x39')]?_0x1ad404[_0x0eed('0x37')]:_0x2405ed[_0x0eed('0x32')];if(!_0x43f8cb[_0x0eed('0x33')][_0x0eed('0x3a')]('nolimit')){_0x1ad404[_0x0eed('0x22')]=qs[_0x0eed('0x22')](_0x43f8cb[_0x0eed('0x33')][_0x0eed('0x22')]);_0x1ad404[_0x0eed('0x20')]=qs[_0x0eed('0x20')](_0x43f8cb[_0x0eed('0x33')]['offset']);}_0x1ad404[_0x0eed('0x3b')]=qs[_0x0eed('0x3c')](_0x43f8cb[_0x0eed('0x33')][_0x0eed('0x3c')]);_0x1ad404[_0x0eed('0x3d')]=qs[_0x0eed('0x35')](_[_0x0eed('0x3e')](_0x43f8cb[_0x0eed('0x33')],_0x2405ed[_0x0eed('0x35')]),_0x13fa24);if(_0x43f8cb[_0x0eed('0x33')][_0x0eed('0x3f')]){_0x1ad404[_0x0eed('0x3d')]=_[_0x0eed('0x40')](_0x1ad404[_0x0eed('0x3d')],{'$or':_[_0x0eed('0x2e')](_0x13fa24,function(_0x23040e){if(_0x23040e[_0x0eed('0x41')]!==_0x0eed('0x42')){var _0x1ebaf0={};_0x1ebaf0[_0x23040e[_0x0eed('0x2b')]]={'$like':'%'+_0x43f8cb[_0x0eed('0x33')][_0x0eed('0x3f')]+'%'};return _0x1ebaf0;}})});}_0x1ad404=_[_0x0eed('0x40')]({},_0x1ad404,_0x43f8cb['options']);var _0x284d7d={'where':_0x1ad404[_0x0eed('0x3d')]};return db[_0x0eed('0x2f')][_0x0eed('0x23')](_0x284d7d)[_0x0eed('0x28')](function(_0x56bf07){_0x1bebf6[_0x0eed('0x23')]=_0x56bf07;if(_0x43f8cb[_0x0eed('0x33')][_0x0eed('0x43')]){_0x1ad404[_0x0eed('0x44')]=[{'all':!![]}];}return db[_0x0eed('0x2f')]['findAll'](_0x1ad404);})['then'](function(_0x434b8c){_0x1bebf6[_0x0eed('0x45')]=_0x434b8c;return _0x1bebf6;})['then'](respondWithFilteredResult(_0x5b3531,_0x1ad404))[_0x0eed('0x46')](handleError(_0x5b3531,null));};exports[_0x0eed('0x47')]=function(_0xe44d87,_0x156003){var _0x2b7276={'raw':!![],'where':{'id':_0xe44d87[_0x0eed('0x48')]['id']}},_0x4f575c={};_0x4f575c[_0x0eed('0x32')]=_['keys'](db[_0x0eed('0x2f')][_0x0eed('0x30')]);_0x4f575c[_0x0eed('0x33')]=_['keys'](_0xe44d87['query']);_0x4f575c['filters']=_[_0x0eed('0x36')](_0x4f575c['model'],_0x4f575c['query']);_0x2b7276['attributes']=_[_0x0eed('0x36')](_0x4f575c[_0x0eed('0x32')],qs[_0x0eed('0x38')](_0xe44d87[_0x0eed('0x33')][_0x0eed('0x38')]));_0x2b7276[_0x0eed('0x37')]=_0x2b7276[_0x0eed('0x37')][_0x0eed('0x39')]?_0x2b7276[_0x0eed('0x37')]:_0x4f575c[_0x0eed('0x32')];if(_0xe44d87[_0x0eed('0x33')]['includeAll']){_0x2b7276[_0x0eed('0x44')]=[{'all':!![]}];}_0x2b7276=_[_0x0eed('0x40')]({},_0x2b7276,_0xe44d87[_0x0eed('0x49')]);return db[_0x0eed('0x2f')][_0x0eed('0x4a')](_0x2b7276)[_0x0eed('0x28')](handleEntityNotFound(_0x156003,null))[_0x0eed('0x28')](respondWithResult(_0x156003,null))[_0x0eed('0x46')](handleError(_0x156003,null));};exports[_0x0eed('0x4b')]=function(_0x1c2c4b,_0xd0260b){return db['SmsQueueReport'][_0x0eed('0x4b')](_0x1c2c4b[_0x0eed('0x4c')],{})[_0x0eed('0x28')](respondWithResult(_0xd0260b,0xc9))[_0x0eed('0x46')](handleError(_0xd0260b,null));};exports[_0x0eed('0x27')]=function(_0x3a8fda,_0x33d71f){if(_0x3a8fda[_0x0eed('0x4c')]['id']){delete _0x3a8fda[_0x0eed('0x4c')]['id'];}return db[_0x0eed('0x2f')]['find']({'where':{'id':_0x3a8fda['params']['id']}})[_0x0eed('0x28')](handleEntityNotFound(_0x33d71f,null))['then'](saveUpdates(_0x3a8fda[_0x0eed('0x4c')],null))['then'](respondWithResult(_0x33d71f,null))[_0x0eed('0x46')](handleError(_0x33d71f,null));};exports[_0x0eed('0x29')]=function(_0x3a5618,_0x338b30){return db['SmsQueueReport'][_0x0eed('0x4a')]({'where':{'id':_0x3a5618[_0x0eed('0x48')]['id']}})[_0x0eed('0x28')](handleEntityNotFound(_0x338b30,null))[_0x0eed('0x28')](removeEntity(_0x338b30,null))[_0x0eed('0x46')](handleError(_0x338b30,null));};exports[_0x0eed('0x4d')]=function(_0x51bdca,_0x32b544){return db['SmsQueueReport'][_0x0eed('0x4d')]()[_0x0eed('0x28')](respondWithResult(_0x32b544,null))[_0x0eed('0x46')](handleError(_0x32b544,null));};
\ No newline at end of file