Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / smsQueueReport / smsQueueReport.controller.js
index 169648c..4ce8f75 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf176=['sort','where','pick','filter','merge','VIRTUAL','options','SmsQueueReport','includeAll','include','rows','catch','show','params','find','create','body','update','describe','eml-format','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','squel','jsforce','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../mysqldb','status','json','offset','undefined','limit','count','set','Content-Range','apply','save','then','destroy','end','sendStatus','error','stack','name','send','index','map','rawAttributes','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','order'];(function(_0x819464,_0x46fc91){var _0x49dcc0=function(_0x36b2b2){while(--_0x36b2b2){_0x819464['push'](_0x819464['shift']());}};_0x49dcc0(++_0x46fc91);}(_0xf176,0x185));var _0x6f17=function(_0x424b2a,_0xf4f64b){_0x424b2a=_0x424b2a-0x0;var _0x8d54b7=_0xf176[_0x424b2a];return _0x8d54b7;};'use strict';var emlformat=require(_0x6f17('0x0'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0x6f17('0x1'));var rp=require(_0x6f17('0x2'));var moment=require(_0x6f17('0x3'));var BPromise=require(_0x6f17('0x4'));var Mustache=require(_0x6f17('0x5'));var util=require(_0x6f17('0x6'));var path=require(_0x6f17('0x7'));var sox=require(_0x6f17('0x8'));var csv=require(_0x6f17('0x9'));var ejs=require(_0x6f17('0xa'));var fs=require('fs');var fs_extra=require(_0x6f17('0xb'));var _=require('lodash');var squel=require(_0x6f17('0xc'));var crypto=require('crypto');var jsforce=require(_0x6f17('0xd'));var deskjs=require('desk.js');var toCsv=require(_0x6f17('0x9'));var querystring=require('querystring');var Papa=require(_0x6f17('0xe'));var Redis=require(_0x6f17('0xf'));var authService=require('../../components/auth/service');var qs=require(_0x6f17('0x10'));var as=require(_0x6f17('0x11'));var hardwareService=require(_0x6f17('0x12'));var logger=require(_0x6f17('0x13'))('api');var utils=require(_0x6f17('0x14'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0x6f17('0x15'))['db'];function respondWithStatusCode(_0x12c231,_0x33d664){_0x33d664=_0x33d664||0xcc;return function(_0x364c5b){if(_0x364c5b){return _0x12c231['sendStatus'](_0x33d664);}return _0x12c231[_0x6f17('0x16')](_0x33d664)['end']();};}function respondWithResult(_0xde491e,_0x4f8099){_0x4f8099=_0x4f8099||0xc8;return function(_0x50aa12){if(_0x50aa12){return _0xde491e[_0x6f17('0x16')](_0x4f8099)[_0x6f17('0x17')](_0x50aa12);}};}function respondWithFilteredResult(_0xa40e2a,_0x2378b6){return function(_0x22728f){if(_0x22728f){var _0x46f538=typeof _0x2378b6[_0x6f17('0x18')]===_0x6f17('0x19')&&typeof _0x2378b6[_0x6f17('0x1a')]===_0x6f17('0x19');var _0x450b1e=_0x22728f['count'];var _0x36e932=_0x46f538?0x0:_0x2378b6[_0x6f17('0x18')];var _0x411fea=_0x46f538?_0x22728f[_0x6f17('0x1b')]:_0x2378b6[_0x6f17('0x18')]+_0x2378b6[_0x6f17('0x1a')];var _0x2fd768;if(_0x411fea>=_0x450b1e){_0x411fea=_0x450b1e;_0x2fd768=0xc8;}else{_0x2fd768=0xce;}_0xa40e2a['status'](_0x2fd768);return _0xa40e2a[_0x6f17('0x1c')](_0x6f17('0x1d'),_0x36e932+'-'+_0x411fea+'/'+_0x450b1e)[_0x6f17('0x17')](_0x22728f);}return null;};}function patchUpdates(_0x33f852){return function(_0x1172b8){try{jsonpatch[_0x6f17('0x1e')](_0x1172b8,_0x33f852,!![]);}catch(_0x103a4a){return BPromise['reject'](_0x103a4a);}return _0x1172b8[_0x6f17('0x1f')]();};}function saveUpdates(_0x4da213,_0x3e3c06){return function(_0x2744a7){if(_0x2744a7){return _0x2744a7['update'](_0x4da213)[_0x6f17('0x20')](function(_0x3ce420){return _0x3ce420;});}return null;};}function removeEntity(_0x30cacb,_0x4e3ca7){return function(_0x56f2ac){if(_0x56f2ac){return _0x56f2ac[_0x6f17('0x21')]()['then'](function(){_0x30cacb[_0x6f17('0x16')](0xcc)[_0x6f17('0x22')]();});}};}function handleEntityNotFound(_0x345a1e,_0x4fc84c){return function(_0x41aae3){if(!_0x41aae3){_0x345a1e[_0x6f17('0x23')](0x194);}return _0x41aae3;};}function handleError(_0x3fb19c,_0x3d3167){_0x3d3167=_0x3d3167||0x1f4;return function(_0x7e6607){logger[_0x6f17('0x24')](_0x7e6607[_0x6f17('0x25')]);if(_0x7e6607['name']){delete _0x7e6607[_0x6f17('0x26')];}_0x3fb19c[_0x6f17('0x16')](_0x3d3167)[_0x6f17('0x27')](_0x7e6607);};}exports[_0x6f17('0x28')]=function(_0x5e6777,_0x575012){var _0x24c7df={},_0x21ec9b={},_0x3c80fb={'count':0x0,'rows':[]};var _0x4e2ac6=_[_0x6f17('0x29')](db['SmsQueueReport'][_0x6f17('0x2a')],function(_0x3255f8){return{'name':_0x3255f8['fieldName'],'type':_0x3255f8[_0x6f17('0x2b')][_0x6f17('0x2c')]};});_0x21ec9b[_0x6f17('0x2d')]=_['map'](_0x4e2ac6,_0x6f17('0x26'));_0x21ec9b[_0x6f17('0x2e')]=_[_0x6f17('0x2f')](_0x5e6777['query']);_0x21ec9b[_0x6f17('0x30')]=_[_0x6f17('0x31')](_0x21ec9b[_0x6f17('0x2d')],_0x21ec9b['query']);_0x24c7df[_0x6f17('0x32')]=_[_0x6f17('0x31')](_0x21ec9b[_0x6f17('0x2d')],qs['fields'](_0x5e6777['query'][_0x6f17('0x33')]));_0x24c7df[_0x6f17('0x32')]=_0x24c7df[_0x6f17('0x32')][_0x6f17('0x34')]?_0x24c7df['attributes']:_0x21ec9b[_0x6f17('0x2d')];if(!_0x5e6777[_0x6f17('0x2e')][_0x6f17('0x35')]('nolimit')){_0x24c7df[_0x6f17('0x1a')]=qs[_0x6f17('0x1a')](_0x5e6777['query']['limit']);_0x24c7df[_0x6f17('0x18')]=qs[_0x6f17('0x18')](_0x5e6777[_0x6f17('0x2e')][_0x6f17('0x18')]);}_0x24c7df[_0x6f17('0x36')]=qs[_0x6f17('0x37')](_0x5e6777[_0x6f17('0x2e')][_0x6f17('0x37')]);_0x24c7df[_0x6f17('0x38')]=qs[_0x6f17('0x30')](_[_0x6f17('0x39')](_0x5e6777['query'],_0x21ec9b[_0x6f17('0x30')]),_0x4e2ac6);if(_0x5e6777['query'][_0x6f17('0x3a')]){_0x24c7df[_0x6f17('0x38')]=_[_0x6f17('0x3b')](_0x24c7df[_0x6f17('0x38')],{'$or':_['map'](_0x4e2ac6,function(_0x48fd87){if(_0x48fd87[_0x6f17('0x2b')]!==_0x6f17('0x3c')){var _0x489647={};_0x489647[_0x48fd87[_0x6f17('0x26')]]={'$like':'%'+_0x5e6777[_0x6f17('0x2e')][_0x6f17('0x3a')]+'%'};return _0x489647;}})});}_0x24c7df=_[_0x6f17('0x3b')]({},_0x24c7df,_0x5e6777[_0x6f17('0x3d')]);var _0x59df16={'where':_0x24c7df[_0x6f17('0x38')]};return db[_0x6f17('0x3e')][_0x6f17('0x1b')](_0x59df16)[_0x6f17('0x20')](function(_0x264a06){_0x3c80fb[_0x6f17('0x1b')]=_0x264a06;if(_0x5e6777[_0x6f17('0x2e')][_0x6f17('0x3f')]){_0x24c7df[_0x6f17('0x40')]=[{'all':!![]}];}return db[_0x6f17('0x3e')]['findAll'](_0x24c7df);})[_0x6f17('0x20')](function(_0x18d786){_0x3c80fb[_0x6f17('0x41')]=_0x18d786;return _0x3c80fb;})[_0x6f17('0x20')](respondWithFilteredResult(_0x575012,_0x24c7df))[_0x6f17('0x42')](handleError(_0x575012,null));};exports[_0x6f17('0x43')]=function(_0x4188fa,_0x43f7bf){var _0x2ad444={'raw':!![],'where':{'id':_0x4188fa[_0x6f17('0x44')]['id']}},_0x5773e9={};_0x5773e9['model']=_[_0x6f17('0x2f')](db[_0x6f17('0x3e')]['rawAttributes']);_0x5773e9[_0x6f17('0x2e')]=_[_0x6f17('0x2f')](_0x4188fa['query']);_0x5773e9[_0x6f17('0x30')]=_['intersection'](_0x5773e9[_0x6f17('0x2d')],_0x5773e9[_0x6f17('0x2e')]);_0x2ad444[_0x6f17('0x32')]=_['intersection'](_0x5773e9[_0x6f17('0x2d')],qs[_0x6f17('0x33')](_0x4188fa[_0x6f17('0x2e')]['fields']));_0x2ad444[_0x6f17('0x32')]=_0x2ad444[_0x6f17('0x32')][_0x6f17('0x34')]?_0x2ad444[_0x6f17('0x32')]:_0x5773e9['model'];if(_0x4188fa[_0x6f17('0x2e')][_0x6f17('0x3f')]){_0x2ad444[_0x6f17('0x40')]=[{'all':!![]}];}_0x2ad444=_[_0x6f17('0x3b')]({},_0x2ad444,_0x4188fa[_0x6f17('0x3d')]);return db['SmsQueueReport'][_0x6f17('0x45')](_0x2ad444)['then'](handleEntityNotFound(_0x43f7bf,null))[_0x6f17('0x20')](respondWithResult(_0x43f7bf,null))[_0x6f17('0x42')](handleError(_0x43f7bf,null));};exports[_0x6f17('0x46')]=function(_0x4f9f6f,_0x372854){return db[_0x6f17('0x3e')][_0x6f17('0x46')](_0x4f9f6f[_0x6f17('0x47')],{})[_0x6f17('0x20')](respondWithResult(_0x372854,0xc9))['catch'](handleError(_0x372854,null));};exports[_0x6f17('0x48')]=function(_0x255f78,_0x552633){if(_0x255f78[_0x6f17('0x47')]['id']){delete _0x255f78[_0x6f17('0x47')]['id'];}return db['SmsQueueReport']['find']({'where':{'id':_0x255f78[_0x6f17('0x44')]['id']}})[_0x6f17('0x20')](handleEntityNotFound(_0x552633,null))['then'](saveUpdates(_0x255f78['body'],null))[_0x6f17('0x20')](respondWithResult(_0x552633,null))[_0x6f17('0x42')](handleError(_0x552633,null));};exports[_0x6f17('0x21')]=function(_0x506584,_0x74a5e8){return db['SmsQueueReport'][_0x6f17('0x45')]({'where':{'id':_0x506584[_0x6f17('0x44')]['id']}})[_0x6f17('0x20')](handleEntityNotFound(_0x74a5e8,null))[_0x6f17('0x20')](removeEntity(_0x74a5e8,null))[_0x6f17('0x42')](handleError(_0x74a5e8,null));};exports['describe']=function(_0x277a33,_0x2fc9b3){return db[_0x6f17('0x3e')][_0x6f17('0x49')]()[_0x6f17('0x20')](respondWithResult(_0x2fc9b3,null))[_0x6f17('0x42')](handleError(_0x2fc9b3,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