Built motion from commit 19a84241.|2.5.34
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index fbb11dd..edd3b4e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xad53=['nolimit','limit','order','sort','where','pick','filter','merge','type','options','includeAll','include','findAll','rows','catch','show','keys','rawAttributes','find','body','params','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','ejs','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json','count','offset','set','Content-Range','apply','reject','save','update','destroy','then','error','stack','name','send','map','SmsTransferReport','fieldName','key','model','query','filters','intersection','fields','attributes','length','hasOwnProperty'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xad53,0x1ea));var _0x3ad5=function(_0x4e2951,_0x370626){_0x4e2951=_0x4e2951-0x0;var _0x9d83ce=_0xad53[_0x4e2951];return _0x9d83ce;};'use strict';var pdf=require(_0x3ad5('0x0'));var emlformat=require(_0x3ad5('0x1'));var rimraf=require(_0x3ad5('0x2'));var zipdir=require(_0x3ad5('0x3'));var jsonpatch=require(_0x3ad5('0x4'));var rp=require(_0x3ad5('0x5'));var moment=require(_0x3ad5('0x6'));var BPromise=require(_0x3ad5('0x7'));var Mustache=require('mustache');var util=require(_0x3ad5('0x8'));var path=require(_0x3ad5('0x9'));var sox=require(_0x3ad5('0xa'));var csv=require(_0x3ad5('0xb'));var ejs=require(_0x3ad5('0xc'));var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0x3ad5('0xd'));var deskjs=require(_0x3ad5('0xe'));var toCsv=require(_0x3ad5('0xb'));var querystring=require(_0x3ad5('0xf'));var Papa=require(_0x3ad5('0x10'));var Redis=require(_0x3ad5('0x11'));var authService=require(_0x3ad5('0x12'));var qs=require(_0x3ad5('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x3ad5('0x14'));var logger=require(_0x3ad5('0x15'))(_0x3ad5('0x16'));var utils=require(_0x3ad5('0x17'));var config=require('../../config/environment');var licenseUtil=require(_0x3ad5('0x18'));var db=require(_0x3ad5('0x19'))['db'];function respondWithStatusCode(_0x1dc68b,_0x542e82){_0x542e82=_0x542e82||0xcc;return function(_0x1bd82f){if(_0x1bd82f){return _0x1dc68b[_0x3ad5('0x1a')](_0x542e82);}return _0x1dc68b[_0x3ad5('0x1b')](_0x542e82)[_0x3ad5('0x1c')]();};}function respondWithResult(_0x2cfe73,_0x28d6ad){_0x28d6ad=_0x28d6ad||0xc8;return function(_0x50758e){if(_0x50758e){return _0x2cfe73['status'](_0x28d6ad)[_0x3ad5('0x1d')](_0x50758e);}};}function respondWithFilteredResult(_0x278364,_0xabcbc0){return function(_0x70aec9){if(_0x70aec9){var _0x1d5868=_0x70aec9[_0x3ad5('0x1e')],_0x365f38=_0xabcbc0[_0x3ad5('0x1f')],_0x533ea1=_0xabcbc0['offset']+_0xabcbc0['limit'],_0x56123a;if(_0x533ea1>=_0x1d5868){_0x533ea1=_0x1d5868;_0x56123a=0xc8;}else{_0x56123a=0xce;}_0x278364[_0x3ad5('0x1b')](_0x56123a);return _0x278364[_0x3ad5('0x20')](_0x3ad5('0x21'),_0x365f38+'-'+_0x533ea1+'/'+_0x1d5868)[_0x3ad5('0x1d')](_0x70aec9);}return null;};}function patchUpdates(_0x523519){return function(_0xb97fb9){try{jsonpatch[_0x3ad5('0x22')](_0xb97fb9,_0x523519,!![]);}catch(_0x36935a){return BPromise[_0x3ad5('0x23')](_0x36935a);}return _0xb97fb9[_0x3ad5('0x24')]();};}function saveUpdates(_0x1c37c7,_0x3aaef8){return function(_0x3a8960){if(_0x3a8960){return _0x3a8960[_0x3ad5('0x25')](_0x1c37c7)['then'](function(_0x98dfb5){return _0x98dfb5;});}return null;};}function removeEntity(_0x4d00e2,_0x936a29){return function(_0x58a06f){if(_0x58a06f){return _0x58a06f[_0x3ad5('0x26')]()[_0x3ad5('0x27')](function(){_0x4d00e2[_0x3ad5('0x1b')](0xcc)[_0x3ad5('0x1c')]();});}};}function handleEntityNotFound(_0x24d2ee,_0x26b402){return function(_0x4c59dc){if(!_0x4c59dc){_0x24d2ee[_0x3ad5('0x1a')](0x194);}return _0x4c59dc;};}function handleError(_0x1aa2e9,_0x4d1a4c){_0x4d1a4c=_0x4d1a4c||0x1f4;return function(_0xaa80a){logger[_0x3ad5('0x28')](_0xaa80a[_0x3ad5('0x29')]);if(_0xaa80a['name']){delete _0xaa80a[_0x3ad5('0x2a')];}_0x1aa2e9[_0x3ad5('0x1b')](_0x4d1a4c)[_0x3ad5('0x2b')](_0xaa80a);};}exports['index']=function(_0x512d41,_0x578463){var _0x33c53e={},_0x4674f2={},_0x141680={'count':0x0,'rows':[]};var _0x4d7e51=_[_0x3ad5('0x2c')](db[_0x3ad5('0x2d')]['rawAttributes'],function(_0x4c66f7){return{'name':_0x4c66f7[_0x3ad5('0x2e')],'type':_0x4c66f7['type'][_0x3ad5('0x2f')]};});_0x4674f2[_0x3ad5('0x30')]=_[_0x3ad5('0x2c')](_0x4d7e51,_0x3ad5('0x2a'));_0x4674f2[_0x3ad5('0x31')]=_['keys'](_0x512d41['query']);_0x4674f2[_0x3ad5('0x32')]=_[_0x3ad5('0x33')](_0x4674f2[_0x3ad5('0x30')],_0x4674f2[_0x3ad5('0x31')]);_0x33c53e['attributes']=_[_0x3ad5('0x33')](_0x4674f2[_0x3ad5('0x30')],qs[_0x3ad5('0x34')](_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x34')]));_0x33c53e[_0x3ad5('0x35')]=_0x33c53e[_0x3ad5('0x35')][_0x3ad5('0x36')]?_0x33c53e[_0x3ad5('0x35')]:_0x4674f2[_0x3ad5('0x30')];if(!_0x512d41['query'][_0x3ad5('0x37')](_0x3ad5('0x38'))){_0x33c53e[_0x3ad5('0x39')]=qs[_0x3ad5('0x39')](_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x39')]);_0x33c53e[_0x3ad5('0x1f')]=qs['offset'](_0x512d41['query'][_0x3ad5('0x1f')]);}_0x33c53e[_0x3ad5('0x3a')]=qs['sort'](_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x3b')]);_0x33c53e[_0x3ad5('0x3c')]=qs[_0x3ad5('0x32')](_[_0x3ad5('0x3d')](_0x512d41[_0x3ad5('0x31')],_0x4674f2[_0x3ad5('0x32')]),_0x4d7e51);if(_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x3e')]){_0x33c53e[_0x3ad5('0x3c')]=_[_0x3ad5('0x3f')](_0x33c53e[_0x3ad5('0x3c')],{'$or':_[_0x3ad5('0x2c')](_0x4d7e51,function(_0x5b2893){if(_0x5b2893[_0x3ad5('0x40')]!=='VIRTUAL'){var _0xe693b={};_0xe693b[_0x5b2893[_0x3ad5('0x2a')]]={'$like':'%'+_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x3e')]+'%'};return _0xe693b;}})});}_0x33c53e=_[_0x3ad5('0x3f')]({},_0x33c53e,_0x512d41[_0x3ad5('0x41')]);var _0x183dcb={'where':_0x33c53e['where']};return db['SmsTransferReport'][_0x3ad5('0x1e')](_0x183dcb)[_0x3ad5('0x27')](function(_0x3734c5){_0x141680[_0x3ad5('0x1e')]=_0x3734c5;if(_0x512d41[_0x3ad5('0x31')][_0x3ad5('0x42')]){_0x33c53e[_0x3ad5('0x43')]=[{'all':!![]}];}return db[_0x3ad5('0x2d')][_0x3ad5('0x44')](_0x33c53e);})[_0x3ad5('0x27')](function(_0xdece6d){_0x141680[_0x3ad5('0x45')]=_0xdece6d;return _0x141680;})[_0x3ad5('0x27')](respondWithFilteredResult(_0x578463,_0x33c53e))[_0x3ad5('0x46')](handleError(_0x578463,null));};exports[_0x3ad5('0x47')]=function(_0x327dbb,_0x26ae59){var _0x29726b={'raw':!![],'where':{'id':_0x327dbb['params']['id']}},_0x5ec9c3={};_0x5ec9c3[_0x3ad5('0x30')]=_[_0x3ad5('0x48')](db['SmsTransferReport'][_0x3ad5('0x49')]);_0x5ec9c3['query']=_['keys'](_0x327dbb[_0x3ad5('0x31')]);_0x5ec9c3[_0x3ad5('0x32')]=_[_0x3ad5('0x33')](_0x5ec9c3[_0x3ad5('0x30')],_0x5ec9c3[_0x3ad5('0x31')]);_0x29726b[_0x3ad5('0x35')]=_[_0x3ad5('0x33')](_0x5ec9c3['model'],qs[_0x3ad5('0x34')](_0x327dbb[_0x3ad5('0x31')][_0x3ad5('0x34')]));_0x29726b[_0x3ad5('0x35')]=_0x29726b[_0x3ad5('0x35')]['length']?_0x29726b[_0x3ad5('0x35')]:_0x5ec9c3[_0x3ad5('0x30')];if(_0x327dbb[_0x3ad5('0x31')][_0x3ad5('0x42')]){_0x29726b['include']=[{'all':!![]}];}_0x29726b=_['merge']({},_0x29726b,_0x327dbb['options']);return db[_0x3ad5('0x2d')][_0x3ad5('0x4a')](_0x29726b)[_0x3ad5('0x27')](handleEntityNotFound(_0x26ae59,null))[_0x3ad5('0x27')](respondWithResult(_0x26ae59,null))['catch'](handleError(_0x26ae59,null));};exports['create']=function(_0x2a86fd,_0x4170d1){return db[_0x3ad5('0x2d')]['create'](_0x2a86fd[_0x3ad5('0x4b')],{})[_0x3ad5('0x27')](respondWithResult(_0x4170d1,0xc9))['catch'](handleError(_0x4170d1,null));};exports[_0x3ad5('0x25')]=function(_0x31f25c,_0x2ad1dd){if(_0x31f25c['body']['id']){delete _0x31f25c['body']['id'];}return db[_0x3ad5('0x2d')]['find']({'where':{'id':_0x31f25c[_0x3ad5('0x4c')]['id']}})['then'](handleEntityNotFound(_0x2ad1dd,null))[_0x3ad5('0x27')](saveUpdates(_0x31f25c[_0x3ad5('0x4b')],null))['then'](respondWithResult(_0x2ad1dd,null))[_0x3ad5('0x46')](handleError(_0x2ad1dd,null));};exports[_0x3ad5('0x26')]=function(_0x267200,_0x5a8218){return db['SmsTransferReport'][_0x3ad5('0x4a')]({'where':{'id':_0x267200[_0x3ad5('0x4c')]['id']}})[_0x3ad5('0x27')](handleEntityNotFound(_0x5a8218,null))[_0x3ad5('0x27')](removeEntity(_0x5a8218,null))[_0x3ad5('0x46')](handleError(_0x5a8218,null));};exports['describe']=function(_0xb11ec0,_0x457d32){return db['SmsTransferReport'][_0x3ad5('0x4d')]()['then'](respondWithResult(_0x457d32,null))[_0x3ad5('0x46')](handleError(_0x457d32,null));};
\ No newline at end of file
+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