Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index 5e0d5f6..a9f4088 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb43b=['../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','status','end','json','count','offset','limit','Content-Range','apply','save','update','then','destroy','name','index','map','rawAttributes','fieldName','type','key','model','query','keys','intersection','attributes','fields','hasOwnProperty','nolimit','order','sort','where','filters','filter','merge','VIRTUAL','options','SmsTransferReport','includeAll','include','findAll','rows','catch','show','params','find','create','body','describe','html-pdf','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','lodash','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs'];(function(_0x2c4909,_0x5beb3e){var _0x188874=function(_0x2598e3){while(--_0x2598e3){_0x2c4909['push'](_0x2c4909['shift']());}};_0x188874(++_0x5beb3e);}(_0xb43b,0xbf));var _0xbb43=function(_0x4eb53a,_0x7b5fbc){_0x4eb53a=_0x4eb53a-0x0;var _0x469a8b=_0xb43b[_0x4eb53a];return _0x469a8b;};'use strict';var pdf=require(_0xbb43('0x0'));var emlformat=require('eml-format');var rimraf=require(_0xbb43('0x1'));var zipdir=require(_0xbb43('0x2'));var jsonpatch=require(_0xbb43('0x3'));var rp=require(_0xbb43('0x4'));var moment=require(_0xbb43('0x5'));var BPromise=require(_0xbb43('0x6'));var Mustache=require(_0xbb43('0x7'));var util=require(_0xbb43('0x8'));var path=require(_0xbb43('0x9'));var sox=require(_0xbb43('0xa'));var csv=require(_0xbb43('0xb'));var ejs=require('ejs');var fs=require('fs');var _=require(_0xbb43('0xc'));var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0xbb43('0xd'));var deskjs=require(_0xbb43('0xe'));var toCsv=require(_0xbb43('0xb'));var querystring=require(_0xbb43('0xf'));var Papa=require(_0xbb43('0x10'));var Redis=require('ioredis');var authService=require(_0xbb43('0x11'));var qs=require(_0xbb43('0x12'));var as=require(_0xbb43('0x13'));var hardwareService=require(_0xbb43('0x14'));var logger=require('../../config/logger')(_0xbb43('0x15'));var utils=require(_0xbb43('0x16'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x2867fb,_0x5d0ccc){_0x5d0ccc=_0x5d0ccc||0xcc;return function(_0x6be368){if(_0x6be368){return _0x2867fb['sendStatus'](_0x5d0ccc);}return _0x2867fb[_0xbb43('0x17')](_0x5d0ccc)[_0xbb43('0x18')]();};}function respondWithResult(_0x3ce968,_0x3327bc){_0x3327bc=_0x3327bc||0xc8;return function(_0x2e2517){if(_0x2e2517){return _0x3ce968['status'](_0x3327bc)[_0xbb43('0x19')](_0x2e2517);}};}function respondWithFilteredResult(_0x4ac25c,_0x199726){return function(_0x32425c){if(_0x32425c){var _0x15182b=_0x32425c[_0xbb43('0x1a')],_0x10c91b=_0x199726[_0xbb43('0x1b')],_0x3be44b=_0x199726[_0xbb43('0x1b')]+_0x199726[_0xbb43('0x1c')],_0x126f61;if(_0x3be44b>=_0x15182b){_0x3be44b=_0x15182b;_0x126f61=0xc8;}else{_0x126f61=0xce;}_0x4ac25c[_0xbb43('0x17')](_0x126f61);return _0x4ac25c['set'](_0xbb43('0x1d'),_0x10c91b+'-'+_0x3be44b+'/'+_0x15182b)['json'](_0x32425c);}return null;};}function patchUpdates(_0x44fd04){return function(_0x5f4b4f){try{jsonpatch[_0xbb43('0x1e')](_0x5f4b4f,_0x44fd04,!![]);}catch(_0x27579a){return BPromise['reject'](_0x27579a);}return _0x5f4b4f[_0xbb43('0x1f')]();};}function saveUpdates(_0x6cdc26,_0x398ce5){return function(_0x6f34d6){if(_0x6f34d6){return _0x6f34d6[_0xbb43('0x20')](_0x6cdc26)[_0xbb43('0x21')](function(_0xee1084){return _0xee1084;});}return null;};}function removeEntity(_0x1e83cd,_0x3409d0){return function(_0x3cb6d1){if(_0x3cb6d1){return _0x3cb6d1[_0xbb43('0x22')]()[_0xbb43('0x21')](function(){_0x1e83cd[_0xbb43('0x17')](0xcc)[_0xbb43('0x18')]();});}};}function handleEntityNotFound(_0x500af4,_0x28b3e4){return function(_0x326864){if(!_0x326864){_0x500af4['sendStatus'](0x194);}return _0x326864;};}function handleError(_0x464b4a,_0x2b07d8){_0x2b07d8=_0x2b07d8||0x1f4;return function(_0x25279b){logger['error'](_0x25279b['stack']);if(_0x25279b[_0xbb43('0x23')]){delete _0x25279b[_0xbb43('0x23')];}_0x464b4a['status'](_0x2b07d8)['send'](_0x25279b);};}exports[_0xbb43('0x24')]=function(_0xb9fe3b,_0x268fb5){var _0x4bb859={},_0x27bb65={},_0x426cec={'count':0x0,'rows':[]};var _0x2dcc60=_[_0xbb43('0x25')](db['SmsTransferReport'][_0xbb43('0x26')],function(_0x170e7a){return{'name':_0x170e7a[_0xbb43('0x27')],'type':_0x170e7a[_0xbb43('0x28')][_0xbb43('0x29')]};});_0x27bb65[_0xbb43('0x2a')]=_[_0xbb43('0x25')](_0x2dcc60,'name');_0x27bb65[_0xbb43('0x2b')]=_[_0xbb43('0x2c')](_0xb9fe3b[_0xbb43('0x2b')]);_0x27bb65['filters']=_[_0xbb43('0x2d')](_0x27bb65[_0xbb43('0x2a')],_0x27bb65[_0xbb43('0x2b')]);_0x4bb859[_0xbb43('0x2e')]=_[_0xbb43('0x2d')](_0x27bb65[_0xbb43('0x2a')],qs[_0xbb43('0x2f')](_0xb9fe3b[_0xbb43('0x2b')][_0xbb43('0x2f')]));_0x4bb859['attributes']=_0x4bb859['attributes']['length']?_0x4bb859['attributes']:_0x27bb65[_0xbb43('0x2a')];if(!_0xb9fe3b[_0xbb43('0x2b')][_0xbb43('0x30')](_0xbb43('0x31'))){_0x4bb859[_0xbb43('0x1c')]=qs[_0xbb43('0x1c')](_0xb9fe3b[_0xbb43('0x2b')][_0xbb43('0x1c')]);_0x4bb859['offset']=qs[_0xbb43('0x1b')](_0xb9fe3b[_0xbb43('0x2b')][_0xbb43('0x1b')]);}_0x4bb859[_0xbb43('0x32')]=qs['sort'](_0xb9fe3b[_0xbb43('0x2b')][_0xbb43('0x33')]);_0x4bb859[_0xbb43('0x34')]=qs[_0xbb43('0x35')](_['pick'](_0xb9fe3b[_0xbb43('0x2b')],_0x27bb65['filters']),_0x2dcc60);if(_0xb9fe3b[_0xbb43('0x2b')][_0xbb43('0x36')]){_0x4bb859[_0xbb43('0x34')]=_[_0xbb43('0x37')](_0x4bb859[_0xbb43('0x34')],{'$or':_[_0xbb43('0x25')](_0x2dcc60,function(_0x316ab1){if(_0x316ab1[_0xbb43('0x28')]!==_0xbb43('0x38')){var _0xa48590={};_0xa48590[_0x316ab1[_0xbb43('0x23')]]={'$like':'%'+_0xb9fe3b[_0xbb43('0x2b')]['filter']+'%'};return _0xa48590;}})});}_0x4bb859=_[_0xbb43('0x37')]({},_0x4bb859,_0xb9fe3b[_0xbb43('0x39')]);var _0x363e1a={'where':_0x4bb859[_0xbb43('0x34')]};return db[_0xbb43('0x3a')][_0xbb43('0x1a')](_0x363e1a)[_0xbb43('0x21')](function(_0x3d7d56){_0x426cec[_0xbb43('0x1a')]=_0x3d7d56;if(_0xb9fe3b[_0xbb43('0x2b')][_0xbb43('0x3b')]){_0x4bb859[_0xbb43('0x3c')]=[{'all':!![]}];}return db[_0xbb43('0x3a')][_0xbb43('0x3d')](_0x4bb859);})[_0xbb43('0x21')](function(_0x4a76a8){_0x426cec[_0xbb43('0x3e')]=_0x4a76a8;return _0x426cec;})[_0xbb43('0x21')](respondWithFilteredResult(_0x268fb5,_0x4bb859))[_0xbb43('0x3f')](handleError(_0x268fb5,null));};exports[_0xbb43('0x40')]=function(_0x60a465,_0x4b32c9){var _0x5e942e={'raw':!![],'where':{'id':_0x60a465[_0xbb43('0x41')]['id']}},_0x13e9f7={};_0x13e9f7['model']=_['keys'](db[_0xbb43('0x3a')][_0xbb43('0x26')]);_0x13e9f7[_0xbb43('0x2b')]=_[_0xbb43('0x2c')](_0x60a465[_0xbb43('0x2b')]);_0x13e9f7['filters']=_['intersection'](_0x13e9f7[_0xbb43('0x2a')],_0x13e9f7[_0xbb43('0x2b')]);_0x5e942e[_0xbb43('0x2e')]=_[_0xbb43('0x2d')](_0x13e9f7[_0xbb43('0x2a')],qs[_0xbb43('0x2f')](_0x60a465[_0xbb43('0x2b')][_0xbb43('0x2f')]));_0x5e942e[_0xbb43('0x2e')]=_0x5e942e[_0xbb43('0x2e')]['length']?_0x5e942e['attributes']:_0x13e9f7[_0xbb43('0x2a')];if(_0x60a465[_0xbb43('0x2b')]['includeAll']){_0x5e942e[_0xbb43('0x3c')]=[{'all':!![]}];}_0x5e942e=_[_0xbb43('0x37')]({},_0x5e942e,_0x60a465[_0xbb43('0x39')]);return db[_0xbb43('0x3a')][_0xbb43('0x42')](_0x5e942e)[_0xbb43('0x21')](handleEntityNotFound(_0x4b32c9,null))[_0xbb43('0x21')](respondWithResult(_0x4b32c9,null))['catch'](handleError(_0x4b32c9,null));};exports[_0xbb43('0x43')]=function(_0x229928,_0x5970cc){return db[_0xbb43('0x3a')][_0xbb43('0x43')](_0x229928['body'],{})[_0xbb43('0x21')](respondWithResult(_0x5970cc,0xc9))[_0xbb43('0x3f')](handleError(_0x5970cc,null));};exports[_0xbb43('0x20')]=function(_0x15fab6,_0x6fe445){if(_0x15fab6[_0xbb43('0x44')]['id']){delete _0x15fab6[_0xbb43('0x44')]['id'];}return db[_0xbb43('0x3a')][_0xbb43('0x42')]({'where':{'id':_0x15fab6[_0xbb43('0x41')]['id']}})[_0xbb43('0x21')](handleEntityNotFound(_0x6fe445,null))[_0xbb43('0x21')](saveUpdates(_0x15fab6['body'],null))[_0xbb43('0x21')](respondWithResult(_0x6fe445,null))[_0xbb43('0x3f')](handleError(_0x6fe445,null));};exports[_0xbb43('0x22')]=function(_0x7089bb,_0x4ab63b){return db[_0xbb43('0x3a')]['find']({'where':{'id':_0x7089bb[_0xbb43('0x41')]['id']}})['then'](handleEntityNotFound(_0x4ab63b,null))[_0xbb43('0x21')](removeEntity(_0x4ab63b,null))[_0xbb43('0x3f')](handleError(_0x4ab63b,null));};exports[_0xbb43('0x45')]=function(_0x535347,_0x39f09d){return db[_0xbb43('0x3a')][_0xbb43('0x45')]()['then'](respondWithResult(_0x39f09d,null))[_0xbb43('0x3f')](handleError(_0x39f09d,null));};
\ No newline at end of file
+var _0xbc4e=['ejs','fs-extra','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','reject','save','update','destroy','error','name','send','index','map','SmsTransferReport','rawAttributes','fieldName','type','model','keys','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','filter','merge','VIRTUAL','then','includeAll','rows','catch','show','params','include','options','find','create','body','describe','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','sox','to-csv'];(function(_0x1d91fb,_0x19df73){var _0x41023d=function(_0x12f803){while(--_0x12f803){_0x1d91fb['push'](_0x1d91fb['shift']());}};_0x41023d(++_0x19df73);}(_0xbc4e,0x1c4));var _0xebc4=function(_0x1cf601,_0x2f6a7e){_0x1cf601=_0x1cf601-0x0;var _0x2bc79f=_0xbc4e[_0x1cf601];return _0x2bc79f;};'use strict';var emlformat=require(_0xebc4('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xebc4('0x1'));var jsonpatch=require(_0xebc4('0x2'));var rp=require(_0xebc4('0x3'));var moment=require(_0xebc4('0x4'));var BPromise=require(_0xebc4('0x5'));var Mustache=require(_0xebc4('0x6'));var util=require(_0xebc4('0x7'));var path=require('path');var sox=require(_0xebc4('0x8'));var csv=require(_0xebc4('0x9'));var ejs=require(_0xebc4('0xa'));var fs=require('fs');var fs_extra=require(_0xebc4('0xb'));var _=require(_0xebc4('0xc'));var squel=require(_0xebc4('0xd'));var crypto=require('crypto');var jsforce=require(_0xebc4('0xe'));var deskjs=require(_0xebc4('0xf'));var toCsv=require('to-csv');var querystring=require(_0xebc4('0x10'));var Papa=require(_0xebc4('0x11'));var Redis=require(_0xebc4('0x12'));var authService=require(_0xebc4('0x13'));var qs=require(_0xebc4('0x14'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xebc4('0x15'));var logger=require(_0xebc4('0x16'))(_0xebc4('0x17'));var utils=require(_0xebc4('0x18'));var config=require(_0xebc4('0x19'));var licenseUtil=require('../../config/license/util');var db=require(_0xebc4('0x1a'))['db'];function respondWithStatusCode(_0x2cadd9,_0x1c52ef){_0x1c52ef=_0x1c52ef||0xcc;return function(_0x2d054f){if(_0x2d054f){return _0x2cadd9[_0xebc4('0x1b')](_0x1c52ef);}return _0x2cadd9[_0xebc4('0x1c')](_0x1c52ef)[_0xebc4('0x1d')]();};}function respondWithResult(_0x1fe9d8,_0x17c913){_0x17c913=_0x17c913||0xc8;return function(_0x5924aa){if(_0x5924aa){return _0x1fe9d8[_0xebc4('0x1c')](_0x17c913)[_0xebc4('0x1e')](_0x5924aa);}};}function respondWithFilteredResult(_0x5cf653,_0x451f09){return function(_0x4e5a5e){if(_0x4e5a5e){var _0x565c25=typeof _0x451f09[_0xebc4('0x1f')]===_0xebc4('0x20')&&typeof _0x451f09[_0xebc4('0x21')]==='undefined';var _0x1276ae=_0x4e5a5e[_0xebc4('0x22')];var _0x2d7c08=_0x565c25?0x0:_0x451f09[_0xebc4('0x1f')];var _0x256a83=_0x565c25?_0x4e5a5e[_0xebc4('0x22')]:_0x451f09['offset']+_0x451f09[_0xebc4('0x21')];var _0x427389;if(_0x256a83>=_0x1276ae){_0x256a83=_0x1276ae;_0x427389=0xc8;}else{_0x427389=0xce;}_0x5cf653[_0xebc4('0x1c')](_0x427389);return _0x5cf653[_0xebc4('0x23')](_0xebc4('0x24'),_0x2d7c08+'-'+_0x256a83+'/'+_0x1276ae)['json'](_0x4e5a5e);}return null;};}function patchUpdates(_0x1f4c0f){return function(_0x53d2c8){try{jsonpatch['apply'](_0x53d2c8,_0x1f4c0f,!![]);}catch(_0x1be6f3){return BPromise[_0xebc4('0x25')](_0x1be6f3);}return _0x53d2c8[_0xebc4('0x26')]();};}function saveUpdates(_0x5dde50,_0x3b5cf9){return function(_0x13c416){if(_0x13c416){return _0x13c416[_0xebc4('0x27')](_0x5dde50)['then'](function(_0x3d7e72){return _0x3d7e72;});}return null;};}function removeEntity(_0xec98fa,_0x81d8df){return function(_0x4af986){if(_0x4af986){return _0x4af986[_0xebc4('0x28')]()['then'](function(){_0xec98fa[_0xebc4('0x1c')](0xcc)['end']();});}};}function handleEntityNotFound(_0x5f5c26,_0x2f785b){return function(_0x1254fa){if(!_0x1254fa){_0x5f5c26[_0xebc4('0x1b')](0x194);}return _0x1254fa;};}function handleError(_0x28bb6b,_0x4082d0){_0x4082d0=_0x4082d0||0x1f4;return function(_0x38665e){logger[_0xebc4('0x29')](_0x38665e['stack']);if(_0x38665e[_0xebc4('0x2a')]){delete _0x38665e[_0xebc4('0x2a')];}_0x28bb6b['status'](_0x4082d0)[_0xebc4('0x2b')](_0x38665e);};}exports[_0xebc4('0x2c')]=function(_0x1bb639,_0x51a03f){var _0x45f207={},_0x2c1a06={},_0x3e94c9={'count':0x0,'rows':[]};var _0x2cd14b=_[_0xebc4('0x2d')](db[_0xebc4('0x2e')][_0xebc4('0x2f')],function(_0x1fa023){return{'name':_0x1fa023[_0xebc4('0x30')],'type':_0x1fa023[_0xebc4('0x31')]['key']};});_0x2c1a06[_0xebc4('0x32')]=_[_0xebc4('0x2d')](_0x2cd14b,_0xebc4('0x2a'));_0x2c1a06['query']=_[_0xebc4('0x33')](_0x1bb639[_0xebc4('0x34')]);_0x2c1a06[_0xebc4('0x35')]=_[_0xebc4('0x36')](_0x2c1a06[_0xebc4('0x32')],_0x2c1a06['query']);_0x45f207[_0xebc4('0x37')]=_['intersection'](_0x2c1a06['model'],qs['fields'](_0x1bb639['query'][_0xebc4('0x38')]));_0x45f207[_0xebc4('0x37')]=_0x45f207['attributes'][_0xebc4('0x39')]?_0x45f207['attributes']:_0x2c1a06[_0xebc4('0x32')];if(!_0x1bb639['query'][_0xebc4('0x3a')](_0xebc4('0x3b'))){_0x45f207[_0xebc4('0x21')]=qs[_0xebc4('0x21')](_0x1bb639[_0xebc4('0x34')][_0xebc4('0x21')]);_0x45f207['offset']=qs['offset'](_0x1bb639['query'][_0xebc4('0x1f')]);}_0x45f207['order']=qs['sort'](_0x1bb639['query'][_0xebc4('0x3c')]);_0x45f207[_0xebc4('0x3d')]=qs['filters'](_['pick'](_0x1bb639[_0xebc4('0x34')],_0x2c1a06['filters']),_0x2cd14b);if(_0x1bb639[_0xebc4('0x34')][_0xebc4('0x3e')]){_0x45f207[_0xebc4('0x3d')]=_[_0xebc4('0x3f')](_0x45f207[_0xebc4('0x3d')],{'$or':_[_0xebc4('0x2d')](_0x2cd14b,function(_0x22bb0c){if(_0x22bb0c[_0xebc4('0x31')]!==_0xebc4('0x40')){var _0x579b62={};_0x579b62[_0x22bb0c[_0xebc4('0x2a')]]={'$like':'%'+_0x1bb639[_0xebc4('0x34')][_0xebc4('0x3e')]+'%'};return _0x579b62;}})});}_0x45f207=_['merge']({},_0x45f207,_0x1bb639['options']);var _0x11639d={'where':_0x45f207[_0xebc4('0x3d')]};return db[_0xebc4('0x2e')][_0xebc4('0x22')](_0x11639d)[_0xebc4('0x41')](function(_0x24e1ec){_0x3e94c9['count']=_0x24e1ec;if(_0x1bb639[_0xebc4('0x34')][_0xebc4('0x42')]){_0x45f207['include']=[{'all':!![]}];}return db[_0xebc4('0x2e')]['findAll'](_0x45f207);})[_0xebc4('0x41')](function(_0x4d0aa1){_0x3e94c9[_0xebc4('0x43')]=_0x4d0aa1;return _0x3e94c9;})[_0xebc4('0x41')](respondWithFilteredResult(_0x51a03f,_0x45f207))[_0xebc4('0x44')](handleError(_0x51a03f,null));};exports[_0xebc4('0x45')]=function(_0x441f07,_0xaf8297){var _0x487fe0={'raw':!![],'where':{'id':_0x441f07[_0xebc4('0x46')]['id']}},_0x51629e={};_0x51629e[_0xebc4('0x32')]=_[_0xebc4('0x33')](db[_0xebc4('0x2e')][_0xebc4('0x2f')]);_0x51629e[_0xebc4('0x34')]=_[_0xebc4('0x33')](_0x441f07[_0xebc4('0x34')]);_0x51629e[_0xebc4('0x35')]=_[_0xebc4('0x36')](_0x51629e[_0xebc4('0x32')],_0x51629e[_0xebc4('0x34')]);_0x487fe0['attributes']=_[_0xebc4('0x36')](_0x51629e[_0xebc4('0x32')],qs['fields'](_0x441f07['query']['fields']));_0x487fe0[_0xebc4('0x37')]=_0x487fe0[_0xebc4('0x37')][_0xebc4('0x39')]?_0x487fe0[_0xebc4('0x37')]:_0x51629e[_0xebc4('0x32')];if(_0x441f07[_0xebc4('0x34')]['includeAll']){_0x487fe0[_0xebc4('0x47')]=[{'all':!![]}];}_0x487fe0=_[_0xebc4('0x3f')]({},_0x487fe0,_0x441f07[_0xebc4('0x48')]);return db[_0xebc4('0x2e')][_0xebc4('0x49')](_0x487fe0)[_0xebc4('0x41')](handleEntityNotFound(_0xaf8297,null))['then'](respondWithResult(_0xaf8297,null))[_0xebc4('0x44')](handleError(_0xaf8297,null));};exports[_0xebc4('0x4a')]=function(_0x322321,_0x4f24f0){return db['SmsTransferReport'][_0xebc4('0x4a')](_0x322321[_0xebc4('0x4b')],{})[_0xebc4('0x41')](respondWithResult(_0x4f24f0,0xc9))['catch'](handleError(_0x4f24f0,null));};exports[_0xebc4('0x27')]=function(_0x1de62e,_0x20dbf4){if(_0x1de62e[_0xebc4('0x4b')]['id']){delete _0x1de62e[_0xebc4('0x4b')]['id'];}return db[_0xebc4('0x2e')][_0xebc4('0x49')]({'where':{'id':_0x1de62e[_0xebc4('0x46')]['id']}})['then'](handleEntityNotFound(_0x20dbf4,null))[_0xebc4('0x41')](saveUpdates(_0x1de62e[_0xebc4('0x4b')],null))[_0xebc4('0x41')](respondWithResult(_0x20dbf4,null))['catch'](handleError(_0x20dbf4,null));};exports['destroy']=function(_0x320a1f,_0x3ffcfd){return db['SmsTransferReport'][_0xebc4('0x49')]({'where':{'id':_0x320a1f[_0xebc4('0x46')]['id']}})['then'](handleEntityNotFound(_0x3ffcfd,null))[_0xebc4('0x41')](removeEntity(_0x3ffcfd,null))[_0xebc4('0x44')](handleError(_0x3ffcfd,null));};exports[_0xebc4('0x4c')]=function(_0x119f74,_0x1d51b6){return db[_0xebc4('0x2e')][_0xebc4('0x4c')]()[_0xebc4('0x41')](respondWithResult(_0x1d51b6,null))[_0xebc4('0x44')](handleError(_0x1d51b6,null));};
\ No newline at end of file