Built motion from commit 5b761a7b.|2.5.36
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index edd3b4e..a0b52a0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7ff5=['VIRTUAL','filter','options','SmsTransferReport','includeAll','include','findAll','rows','show','model','keys','find','create','catch','body','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','to-csv','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','offset','undefined','limit','count','json','reject','save','update','then','error','name','index','rawAttributes','fieldName','type','key','map','query','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','merge'];(function(_0x5a630b,_0x771188){var _0x81b304=function(_0x4f1eab){while(--_0x4f1eab){_0x5a630b['push'](_0x5a630b['shift']());}};_0x81b304(++_0x771188);}(_0x7ff5,0x183));var _0x57ff=function(_0x3e4bc7,_0x354107){_0x3e4bc7=_0x3e4bc7-0x0;var _0x3313c1=_0x7ff5[_0x3e4bc7];return _0x3313c1;};'use strict';var emlformat=require(_0x57ff('0x0'));var rimraf=require(_0x57ff('0x1'));var zipdir=require(_0x57ff('0x2'));var jsonpatch=require(_0x57ff('0x3'));var rp=require(_0x57ff('0x4'));var moment=require(_0x57ff('0x5'));var BPromise=require(_0x57ff('0x6'));var Mustache=require(_0x57ff('0x7'));var util=require('util');var path=require(_0x57ff('0x8'));var sox=require('sox');var csv=require(_0x57ff('0x9'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x57ff('0xa'));var squel=require(_0x57ff('0xb'));var crypto=require(_0x57ff('0xc'));var jsforce=require(_0x57ff('0xd'));var deskjs=require('desk.js');var toCsv=require(_0x57ff('0x9'));var querystring=require(_0x57ff('0xe'));var Papa=require(_0x57ff('0xf'));var Redis=require(_0x57ff('0x10'));var authService=require('../../components/auth/service');var qs=require(_0x57ff('0x11'));var as=require(_0x57ff('0x12'));var hardwareService=require(_0x57ff('0x13'));var logger=require(_0x57ff('0x14'))(_0x57ff('0x15'));var utils=require('../../config/utils');var config=require(_0x57ff('0x16'));var licenseUtil=require(_0x57ff('0x17'));var db=require(_0x57ff('0x18'))['db'];function respondWithStatusCode(_0x4794ee,_0x1e552f){_0x1e552f=_0x1e552f||0xcc;return function(_0x36f938){if(_0x36f938){return _0x4794ee[_0x57ff('0x19')](_0x1e552f);}return _0x4794ee[_0x57ff('0x1a')](_0x1e552f)[_0x57ff('0x1b')]();};}function respondWithResult(_0x2ce8c1,_0x3c526a){_0x3c526a=_0x3c526a||0xc8;return function(_0x3536ba){if(_0x3536ba){return _0x2ce8c1[_0x57ff('0x1a')](_0x3c526a)['json'](_0x3536ba);}};}function respondWithFilteredResult(_0x18e8fc,_0x20ff4a){return function(_0x397bf7){if(_0x397bf7){var _0x13c46e=typeof _0x20ff4a[_0x57ff('0x1c')]===_0x57ff('0x1d')&&typeof _0x20ff4a[_0x57ff('0x1e')]===_0x57ff('0x1d');var _0x49b823=_0x397bf7[_0x57ff('0x1f')];var _0xd14782=_0x13c46e?0x0:_0x20ff4a[_0x57ff('0x1c')];var _0x2e67be=_0x13c46e?_0x397bf7[_0x57ff('0x1f')]:_0x20ff4a['offset']+_0x20ff4a[_0x57ff('0x1e')];var _0x587543;if(_0x2e67be>=_0x49b823){_0x2e67be=_0x49b823;_0x587543=0xc8;}else{_0x587543=0xce;}_0x18e8fc[_0x57ff('0x1a')](_0x587543);return _0x18e8fc['set']('Content-Range',_0xd14782+'-'+_0x2e67be+'/'+_0x49b823)[_0x57ff('0x20')](_0x397bf7);}return null;};}function patchUpdates(_0x5316dc){return function(_0x1ea4f0){try{jsonpatch['apply'](_0x1ea4f0,_0x5316dc,!![]);}catch(_0x3bef43){return BPromise[_0x57ff('0x21')](_0x3bef43);}return _0x1ea4f0[_0x57ff('0x22')]();};}function saveUpdates(_0x3e2575,_0x33b58e){return function(_0x567da5){if(_0x567da5){return _0x567da5[_0x57ff('0x23')](_0x3e2575)[_0x57ff('0x24')](function(_0x137048){return _0x137048;});}return null;};}function removeEntity(_0x40d083,_0x250db9){return function(_0x57a845){if(_0x57a845){return _0x57a845['destroy']()[_0x57ff('0x24')](function(){_0x40d083['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x20876a,_0x24700d){return function(_0x921f64){if(!_0x921f64){_0x20876a[_0x57ff('0x19')](0x194);}return _0x921f64;};}function handleError(_0x22419f,_0x38529d){_0x38529d=_0x38529d||0x1f4;return function(_0x35b9d9){logger[_0x57ff('0x25')](_0x35b9d9['stack']);if(_0x35b9d9['name']){delete _0x35b9d9[_0x57ff('0x26')];}_0x22419f[_0x57ff('0x1a')](_0x38529d)['send'](_0x35b9d9);};}exports[_0x57ff('0x27')]=function(_0x68eb26,_0x4b9108){var _0x53f684={},_0x2c0dcf={},_0x6e0202={'count':0x0,'rows':[]};var _0x5f274d=_['map'](db['SmsTransferReport'][_0x57ff('0x28')],function(_0x4b50cd){return{'name':_0x4b50cd[_0x57ff('0x29')],'type':_0x4b50cd[_0x57ff('0x2a')][_0x57ff('0x2b')]};});_0x2c0dcf['model']=_[_0x57ff('0x2c')](_0x5f274d,_0x57ff('0x26'));_0x2c0dcf[_0x57ff('0x2d')]=_['keys'](_0x68eb26[_0x57ff('0x2d')]);_0x2c0dcf[_0x57ff('0x2e')]=_[_0x57ff('0x2f')](_0x2c0dcf['model'],_0x2c0dcf[_0x57ff('0x2d')]);_0x53f684['attributes']=_[_0x57ff('0x2f')](_0x2c0dcf['model'],qs['fields'](_0x68eb26['query'][_0x57ff('0x30')]));_0x53f684[_0x57ff('0x31')]=_0x53f684['attributes'][_0x57ff('0x32')]?_0x53f684['attributes']:_0x2c0dcf['model'];if(!_0x68eb26[_0x57ff('0x2d')][_0x57ff('0x33')](_0x57ff('0x34'))){_0x53f684[_0x57ff('0x1e')]=qs[_0x57ff('0x1e')](_0x68eb26[_0x57ff('0x2d')][_0x57ff('0x1e')]);_0x53f684[_0x57ff('0x1c')]=qs[_0x57ff('0x1c')](_0x68eb26[_0x57ff('0x2d')][_0x57ff('0x1c')]);}_0x53f684[_0x57ff('0x35')]=qs[_0x57ff('0x36')](_0x68eb26[_0x57ff('0x2d')]['sort']);_0x53f684[_0x57ff('0x37')]=qs[_0x57ff('0x2e')](_['pick'](_0x68eb26[_0x57ff('0x2d')],_0x2c0dcf['filters']),_0x5f274d);if(_0x68eb26['query']['filter']){_0x53f684[_0x57ff('0x37')]=_[_0x57ff('0x38')](_0x53f684['where'],{'$or':_['map'](_0x5f274d,function(_0x1330cf){if(_0x1330cf['type']!==_0x57ff('0x39')){var _0xb05b4b={};_0xb05b4b[_0x1330cf[_0x57ff('0x26')]]={'$like':'%'+_0x68eb26['query'][_0x57ff('0x3a')]+'%'};return _0xb05b4b;}})});}_0x53f684=_[_0x57ff('0x38')]({},_0x53f684,_0x68eb26[_0x57ff('0x3b')]);var _0x532f48={'where':_0x53f684[_0x57ff('0x37')]};return db[_0x57ff('0x3c')][_0x57ff('0x1f')](_0x532f48)[_0x57ff('0x24')](function(_0x57f061){_0x6e0202['count']=_0x57f061;if(_0x68eb26[_0x57ff('0x2d')][_0x57ff('0x3d')]){_0x53f684[_0x57ff('0x3e')]=[{'all':!![]}];}return db[_0x57ff('0x3c')][_0x57ff('0x3f')](_0x53f684);})[_0x57ff('0x24')](function(_0x588e1f){_0x6e0202[_0x57ff('0x40')]=_0x588e1f;return _0x6e0202;})[_0x57ff('0x24')](respondWithFilteredResult(_0x4b9108,_0x53f684))['catch'](handleError(_0x4b9108,null));};exports[_0x57ff('0x41')]=function(_0x257f1b,_0x475f18){var _0x3501b5={'raw':!![],'where':{'id':_0x257f1b['params']['id']}},_0x52b21e={};_0x52b21e[_0x57ff('0x42')]=_[_0x57ff('0x43')](db[_0x57ff('0x3c')][_0x57ff('0x28')]);_0x52b21e[_0x57ff('0x2d')]=_[_0x57ff('0x43')](_0x257f1b[_0x57ff('0x2d')]);_0x52b21e[_0x57ff('0x2e')]=_[_0x57ff('0x2f')](_0x52b21e['model'],_0x52b21e[_0x57ff('0x2d')]);_0x3501b5[_0x57ff('0x31')]=_[_0x57ff('0x2f')](_0x52b21e[_0x57ff('0x42')],qs[_0x57ff('0x30')](_0x257f1b[_0x57ff('0x2d')][_0x57ff('0x30')]));_0x3501b5[_0x57ff('0x31')]=_0x3501b5[_0x57ff('0x31')][_0x57ff('0x32')]?_0x3501b5[_0x57ff('0x31')]:_0x52b21e[_0x57ff('0x42')];if(_0x257f1b[_0x57ff('0x2d')][_0x57ff('0x3d')]){_0x3501b5['include']=[{'all':!![]}];}_0x3501b5=_[_0x57ff('0x38')]({},_0x3501b5,_0x257f1b[_0x57ff('0x3b')]);return db['SmsTransferReport'][_0x57ff('0x44')](_0x3501b5)[_0x57ff('0x24')](handleEntityNotFound(_0x475f18,null))[_0x57ff('0x24')](respondWithResult(_0x475f18,null))['catch'](handleError(_0x475f18,null));};exports[_0x57ff('0x45')]=function(_0x48e609,_0x1d3401){return db['SmsTransferReport']['create'](_0x48e609['body'],{})[_0x57ff('0x24')](respondWithResult(_0x1d3401,0xc9))[_0x57ff('0x46')](handleError(_0x1d3401,null));};exports[_0x57ff('0x23')]=function(_0x241e6e,_0x1dbe65){if(_0x241e6e[_0x57ff('0x47')]['id']){delete _0x241e6e['body']['id'];}return db[_0x57ff('0x3c')]['find']({'where':{'id':_0x241e6e[_0x57ff('0x48')]['id']}})[_0x57ff('0x24')](handleEntityNotFound(_0x1dbe65,null))[_0x57ff('0x24')](saveUpdates(_0x241e6e['body'],null))[_0x57ff('0x24')](respondWithResult(_0x1dbe65,null))[_0x57ff('0x46')](handleError(_0x1dbe65,null));};exports['destroy']=function(_0x4e5a0c,_0x5ece6c){return db[_0x57ff('0x3c')][_0x57ff('0x44')]({'where':{'id':_0x4e5a0c[_0x57ff('0x48')]['id']}})[_0x57ff('0x24')](handleEntityNotFound(_0x5ece6c,null))[_0x57ff('0x24')](removeEntity(_0x5ece6c,null))[_0x57ff('0x46')](handleError(_0x5ece6c,null));};exports[_0x57ff('0x49')]=function(_0x2d1f90,_0x25385f){return db['SmsTransferReport'][_0x57ff('0x49')]()[_0x57ff('0x24')](respondWithResult(_0x25385f,null))['catch'](handleError(_0x25385f,null));};
\ No newline at end of file
+var _0x53d2=['querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','offset','undefined','count','set','Content-Range','json','apply','reject','save','then','destroy','end','error','stack','name','send','index','map','SmsTransferReport','rawAttributes','fieldName','type','key','model','query','filters','attributes','intersection','fields','length','hasOwnProperty','limit','order','sort','pick','filter','where','merge','options','includeAll','include','findAll','catch','keys','create','body','find','params','describe','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','crypto','jsforce','desk.js'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x53d2,0x128));var _0x253d=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x53d2[_0x3dd15e];return _0x231fd0;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x253d('0x0'));var zipdir=require(_0x253d('0x1'));var jsonpatch=require(_0x253d('0x2'));var rp=require(_0x253d('0x3'));var moment=require(_0x253d('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x253d('0x5'));var util=require(_0x253d('0x6'));var path=require(_0x253d('0x7'));var sox=require(_0x253d('0x8'));var csv=require(_0x253d('0x9'));var ejs=require(_0x253d('0xa'));var fs=require('fs');var fs_extra=require(_0x253d('0xb'));var _=require(_0x253d('0xc'));var squel=require('squel');var crypto=require(_0x253d('0xd'));var jsforce=require(_0x253d('0xe'));var deskjs=require(_0x253d('0xf'));var toCsv=require('to-csv');var querystring=require(_0x253d('0x10'));var Papa=require(_0x253d('0x11'));var Redis=require(_0x253d('0x12'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0x253d('0x13'));var hardwareService=require(_0x253d('0x14'));var logger=require(_0x253d('0x15'))(_0x253d('0x16'));var utils=require(_0x253d('0x17'));var config=require(_0x253d('0x18'));var licenseUtil=require(_0x253d('0x19'));var db=require(_0x253d('0x1a'))['db'];function respondWithStatusCode(_0x1b759c,_0x28c6e6){_0x28c6e6=_0x28c6e6||0xcc;return function(_0x3fd62a){if(_0x3fd62a){return _0x1b759c[_0x253d('0x1b')](_0x28c6e6);}return _0x1b759c[_0x253d('0x1c')](_0x28c6e6)['end']();};}function respondWithResult(_0x5461e8,_0x32b908){_0x32b908=_0x32b908||0xc8;return function(_0x5bef8c){if(_0x5bef8c){return _0x5461e8[_0x253d('0x1c')](_0x32b908)['json'](_0x5bef8c);}};}function respondWithFilteredResult(_0x1f7c26,_0xeb5cd9){return function(_0x372065){if(_0x372065){var _0x457d70=typeof _0xeb5cd9[_0x253d('0x1d')]===_0x253d('0x1e')&&typeof _0xeb5cd9['limit']===_0x253d('0x1e');var _0x569f48=_0x372065[_0x253d('0x1f')];var _0x40232b=_0x457d70?0x0:_0xeb5cd9[_0x253d('0x1d')];var _0x43b930=_0x457d70?_0x372065[_0x253d('0x1f')]:_0xeb5cd9[_0x253d('0x1d')]+_0xeb5cd9['limit'];var _0x230260;if(_0x43b930>=_0x569f48){_0x43b930=_0x569f48;_0x230260=0xc8;}else{_0x230260=0xce;}_0x1f7c26['status'](_0x230260);return _0x1f7c26[_0x253d('0x20')](_0x253d('0x21'),_0x40232b+'-'+_0x43b930+'/'+_0x569f48)[_0x253d('0x22')](_0x372065);}return null;};}function patchUpdates(_0x316fb0){return function(_0x497ff0){try{jsonpatch[_0x253d('0x23')](_0x497ff0,_0x316fb0,!![]);}catch(_0x4db382){return BPromise[_0x253d('0x24')](_0x4db382);}return _0x497ff0[_0x253d('0x25')]();};}function saveUpdates(_0xfc6fb,_0xcba316){return function(_0x5e2c62){if(_0x5e2c62){return _0x5e2c62['update'](_0xfc6fb)[_0x253d('0x26')](function(_0x4fcb8a){return _0x4fcb8a;});}return null;};}function removeEntity(_0x65a767,_0x4913e1){return function(_0x979b90){if(_0x979b90){return _0x979b90[_0x253d('0x27')]()[_0x253d('0x26')](function(){_0x65a767[_0x253d('0x1c')](0xcc)[_0x253d('0x28')]();});}};}function handleEntityNotFound(_0x329f7e,_0x14a185){return function(_0x2e05b4){if(!_0x2e05b4){_0x329f7e[_0x253d('0x1b')](0x194);}return _0x2e05b4;};}function handleError(_0x3b7e00,_0x1e75b7){_0x1e75b7=_0x1e75b7||0x1f4;return function(_0x148b71){logger[_0x253d('0x29')](_0x148b71[_0x253d('0x2a')]);if(_0x148b71[_0x253d('0x2b')]){delete _0x148b71['name'];}_0x3b7e00[_0x253d('0x1c')](_0x1e75b7)[_0x253d('0x2c')](_0x148b71);};}exports[_0x253d('0x2d')]=function(_0x22534a,_0x4e261f){var _0x16bfc7={},_0x50ef44={},_0x5a5ffb={'count':0x0,'rows':[]};var _0x4ffe4a=_[_0x253d('0x2e')](db[_0x253d('0x2f')][_0x253d('0x30')],function(_0x46e38b){return{'name':_0x46e38b[_0x253d('0x31')],'type':_0x46e38b[_0x253d('0x32')][_0x253d('0x33')]};});_0x50ef44[_0x253d('0x34')]=_[_0x253d('0x2e')](_0x4ffe4a,_0x253d('0x2b'));_0x50ef44[_0x253d('0x35')]=_['keys'](_0x22534a[_0x253d('0x35')]);_0x50ef44[_0x253d('0x36')]=_['intersection'](_0x50ef44[_0x253d('0x34')],_0x50ef44[_0x253d('0x35')]);_0x16bfc7[_0x253d('0x37')]=_[_0x253d('0x38')](_0x50ef44[_0x253d('0x34')],qs[_0x253d('0x39')](_0x22534a[_0x253d('0x35')]['fields']));_0x16bfc7[_0x253d('0x37')]=_0x16bfc7[_0x253d('0x37')][_0x253d('0x3a')]?_0x16bfc7[_0x253d('0x37')]:_0x50ef44[_0x253d('0x34')];if(!_0x22534a['query'][_0x253d('0x3b')]('nolimit')){_0x16bfc7[_0x253d('0x3c')]=qs[_0x253d('0x3c')](_0x22534a[_0x253d('0x35')][_0x253d('0x3c')]);_0x16bfc7['offset']=qs[_0x253d('0x1d')](_0x22534a[_0x253d('0x35')][_0x253d('0x1d')]);}_0x16bfc7[_0x253d('0x3d')]=qs[_0x253d('0x3e')](_0x22534a[_0x253d('0x35')][_0x253d('0x3e')]);_0x16bfc7['where']=qs[_0x253d('0x36')](_[_0x253d('0x3f')](_0x22534a[_0x253d('0x35')],_0x50ef44[_0x253d('0x36')]),_0x4ffe4a);if(_0x22534a[_0x253d('0x35')][_0x253d('0x40')]){_0x16bfc7[_0x253d('0x41')]=_[_0x253d('0x42')](_0x16bfc7[_0x253d('0x41')],{'$or':_[_0x253d('0x2e')](_0x4ffe4a,function(_0x6ed0a7){if(_0x6ed0a7[_0x253d('0x32')]!=='VIRTUAL'){var _0x3601bd={};_0x3601bd[_0x6ed0a7[_0x253d('0x2b')]]={'$like':'%'+_0x22534a[_0x253d('0x35')][_0x253d('0x40')]+'%'};return _0x3601bd;}})});}_0x16bfc7=_[_0x253d('0x42')]({},_0x16bfc7,_0x22534a[_0x253d('0x43')]);var _0x538241={'where':_0x16bfc7[_0x253d('0x41')]};return db[_0x253d('0x2f')][_0x253d('0x1f')](_0x538241)[_0x253d('0x26')](function(_0x17bd11){_0x5a5ffb[_0x253d('0x1f')]=_0x17bd11;if(_0x22534a['query'][_0x253d('0x44')]){_0x16bfc7[_0x253d('0x45')]=[{'all':!![]}];}return db[_0x253d('0x2f')][_0x253d('0x46')](_0x16bfc7);})['then'](function(_0x3c6333){_0x5a5ffb['rows']=_0x3c6333;return _0x5a5ffb;})[_0x253d('0x26')](respondWithFilteredResult(_0x4e261f,_0x16bfc7))[_0x253d('0x47')](handleError(_0x4e261f,null));};exports['show']=function(_0x26bf6d,_0x1c61ed){var _0x5b43e5={'raw':!![],'where':{'id':_0x26bf6d['params']['id']}},_0x1a9426={};_0x1a9426[_0x253d('0x34')]=_[_0x253d('0x48')](db['SmsTransferReport'][_0x253d('0x30')]);_0x1a9426[_0x253d('0x35')]=_[_0x253d('0x48')](_0x26bf6d[_0x253d('0x35')]);_0x1a9426[_0x253d('0x36')]=_[_0x253d('0x38')](_0x1a9426['model'],_0x1a9426['query']);_0x5b43e5[_0x253d('0x37')]=_[_0x253d('0x38')](_0x1a9426[_0x253d('0x34')],qs[_0x253d('0x39')](_0x26bf6d[_0x253d('0x35')][_0x253d('0x39')]));_0x5b43e5[_0x253d('0x37')]=_0x5b43e5[_0x253d('0x37')][_0x253d('0x3a')]?_0x5b43e5[_0x253d('0x37')]:_0x1a9426[_0x253d('0x34')];if(_0x26bf6d[_0x253d('0x35')][_0x253d('0x44')]){_0x5b43e5[_0x253d('0x45')]=[{'all':!![]}];}_0x5b43e5=_[_0x253d('0x42')]({},_0x5b43e5,_0x26bf6d[_0x253d('0x43')]);return db[_0x253d('0x2f')]['find'](_0x5b43e5)[_0x253d('0x26')](handleEntityNotFound(_0x1c61ed,null))[_0x253d('0x26')](respondWithResult(_0x1c61ed,null))['catch'](handleError(_0x1c61ed,null));};exports[_0x253d('0x49')]=function(_0x2a4171,_0x4c8be9){return db[_0x253d('0x2f')][_0x253d('0x49')](_0x2a4171[_0x253d('0x4a')],{})[_0x253d('0x26')](respondWithResult(_0x4c8be9,0xc9))[_0x253d('0x47')](handleError(_0x4c8be9,null));};exports['update']=function(_0x30309b,_0x321137){if(_0x30309b[_0x253d('0x4a')]['id']){delete _0x30309b[_0x253d('0x4a')]['id'];}return db[_0x253d('0x2f')][_0x253d('0x4b')]({'where':{'id':_0x30309b['params']['id']}})[_0x253d('0x26')](handleEntityNotFound(_0x321137,null))[_0x253d('0x26')](saveUpdates(_0x30309b[_0x253d('0x4a')],null))[_0x253d('0x26')](respondWithResult(_0x321137,null))['catch'](handleError(_0x321137,null));};exports[_0x253d('0x27')]=function(_0x37ef8b,_0x2a243b){return db[_0x253d('0x2f')][_0x253d('0x4b')]({'where':{'id':_0x37ef8b[_0x253d('0x4c')]['id']}})[_0x253d('0x26')](handleEntityNotFound(_0x2a243b,null))['then'](removeEntity(_0x2a243b,null))[_0x253d('0x47')](handleError(_0x2a243b,null));};exports[_0x253d('0x4d')]=function(_0x24b65e,_0x3c7076){return db['SmsTransferReport']['describe']()[_0x253d('0x26')](respondWithResult(_0x3c7076,null))[_0x253d('0x47')](handleError(_0x3c7076,null));};
\ No newline at end of file