Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index dee112d..0ece1fb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1acd=['stack','name','send','index','map','SmsTransferReport','rawAttributes','fieldName','type','key','query','keys','filters','intersection','model','attributes','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','options','includeAll','findAll','catch','show','params','fields','include','find','body','update','destroy','describe','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','ejs','fs-extra','lodash','squel','crypto','jsforce','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','limit','undefined','count','offset','set','Content-Range','reject','then'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x1acd,0x15a));var _0xd1ac=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x1acd[_0x3dd15e];return _0x231fd0;};'use strict';var emlformat=require(_0xd1ac('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xd1ac('0x1'));var jsonpatch=require(_0xd1ac('0x2'));var rp=require(_0xd1ac('0x3'));var moment=require(_0xd1ac('0x4'));var BPromise=require(_0xd1ac('0x5'));var Mustache=require(_0xd1ac('0x6'));var util=require(_0xd1ac('0x7'));var path=require(_0xd1ac('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0xd1ac('0x9'));var fs=require('fs');var fs_extra=require(_0xd1ac('0xa'));var _=require(_0xd1ac('0xb'));var squel=require(_0xd1ac('0xc'));var crypto=require(_0xd1ac('0xd'));var jsforce=require(_0xd1ac('0xe'));var deskjs=require('desk.js');var toCsv=require(_0xd1ac('0xf'));var querystring=require(_0xd1ac('0x10'));var Papa=require(_0xd1ac('0x11'));var Redis=require(_0xd1ac('0x12'));var authService=require(_0xd1ac('0x13'));var qs=require(_0xd1ac('0x14'));var as=require(_0xd1ac('0x15'));var hardwareService=require(_0xd1ac('0x16'));var logger=require('../../config/logger')(_0xd1ac('0x17'));var utils=require(_0xd1ac('0x18'));var config=require(_0xd1ac('0x19'));var licenseUtil=require('../../config/license/util');var db=require(_0xd1ac('0x1a'))['db'];function respondWithStatusCode(_0x419dd7,_0x2787db){_0x2787db=_0x2787db||0xcc;return function(_0x33221f){if(_0x33221f){return _0x419dd7[_0xd1ac('0x1b')](_0x2787db);}return _0x419dd7[_0xd1ac('0x1c')](_0x2787db)[_0xd1ac('0x1d')]();};}function respondWithResult(_0x210352,_0x40f82e){_0x40f82e=_0x40f82e||0xc8;return function(_0x5f28d4){if(_0x5f28d4){return _0x210352[_0xd1ac('0x1c')](_0x40f82e)[_0xd1ac('0x1e')](_0x5f28d4);}};}function respondWithFilteredResult(_0x21b39f,_0x174f6b){return function(_0x2bfe7c){if(_0x2bfe7c){var _0x35de2c=typeof _0x174f6b['offset']==='undefined'&&typeof _0x174f6b[_0xd1ac('0x1f')]===_0xd1ac('0x20');var _0x4fb9be=_0x2bfe7c[_0xd1ac('0x21')];var _0x2073fd=_0x35de2c?0x0:_0x174f6b[_0xd1ac('0x22')];var _0x4a482c=_0x35de2c?_0x2bfe7c[_0xd1ac('0x21')]:_0x174f6b[_0xd1ac('0x22')]+_0x174f6b['limit'];var _0x4c6f7c;if(_0x4a482c>=_0x4fb9be){_0x4a482c=_0x4fb9be;_0x4c6f7c=0xc8;}else{_0x4c6f7c=0xce;}_0x21b39f[_0xd1ac('0x1c')](_0x4c6f7c);return _0x21b39f[_0xd1ac('0x23')](_0xd1ac('0x24'),_0x2073fd+'-'+_0x4a482c+'/'+_0x4fb9be)[_0xd1ac('0x1e')](_0x2bfe7c);}return null;};}function patchUpdates(_0x3e5e6d){return function(_0x370ed9){try{jsonpatch['apply'](_0x370ed9,_0x3e5e6d,!![]);}catch(_0x385458){return BPromise[_0xd1ac('0x25')](_0x385458);}return _0x370ed9['save']();};}function saveUpdates(_0x4b03b7,_0x387904){return function(_0x11ed38){if(_0x11ed38){return _0x11ed38['update'](_0x4b03b7)[_0xd1ac('0x26')](function(_0xbc93ab){return _0xbc93ab;});}return null;};}function removeEntity(_0x42333f,_0x5ad16b){return function(_0x2932de){if(_0x2932de){return _0x2932de['destroy']()[_0xd1ac('0x26')](function(){_0x42333f[_0xd1ac('0x1c')](0xcc)[_0xd1ac('0x1d')]();});}};}function handleEntityNotFound(_0x4328d7,_0x641ac2){return function(_0x177a03){if(!_0x177a03){_0x4328d7['sendStatus'](0x194);}return _0x177a03;};}function handleError(_0x29d00c,_0x57eb07){_0x57eb07=_0x57eb07||0x1f4;return function(_0x17a1ed){logger['error'](_0x17a1ed[_0xd1ac('0x27')]);if(_0x17a1ed['name']){delete _0x17a1ed[_0xd1ac('0x28')];}_0x29d00c[_0xd1ac('0x1c')](_0x57eb07)[_0xd1ac('0x29')](_0x17a1ed);};}exports[_0xd1ac('0x2a')]=function(_0x450df8,_0x170e86){var _0x9617ef={},_0x4a769d={},_0x26e0bd={'count':0x0,'rows':[]};var _0x4e9c86=_[_0xd1ac('0x2b')](db[_0xd1ac('0x2c')][_0xd1ac('0x2d')],function(_0x4213d0){return{'name':_0x4213d0[_0xd1ac('0x2e')],'type':_0x4213d0[_0xd1ac('0x2f')][_0xd1ac('0x30')]};});_0x4a769d['model']=_[_0xd1ac('0x2b')](_0x4e9c86,'name');_0x4a769d[_0xd1ac('0x31')]=_[_0xd1ac('0x32')](_0x450df8[_0xd1ac('0x31')]);_0x4a769d[_0xd1ac('0x33')]=_[_0xd1ac('0x34')](_0x4a769d[_0xd1ac('0x35')],_0x4a769d[_0xd1ac('0x31')]);_0x9617ef[_0xd1ac('0x36')]=_[_0xd1ac('0x34')](_0x4a769d[_0xd1ac('0x35')],qs['fields'](_0x450df8[_0xd1ac('0x31')]['fields']));_0x9617ef[_0xd1ac('0x36')]=_0x9617ef[_0xd1ac('0x36')][_0xd1ac('0x37')]?_0x9617ef[_0xd1ac('0x36')]:_0x4a769d['model'];if(!_0x450df8[_0xd1ac('0x31')][_0xd1ac('0x38')](_0xd1ac('0x39'))){_0x9617ef[_0xd1ac('0x1f')]=qs[_0xd1ac('0x1f')](_0x450df8[_0xd1ac('0x31')][_0xd1ac('0x1f')]);_0x9617ef[_0xd1ac('0x22')]=qs[_0xd1ac('0x22')](_0x450df8[_0xd1ac('0x31')][_0xd1ac('0x22')]);}_0x9617ef[_0xd1ac('0x3a')]=qs[_0xd1ac('0x3b')](_0x450df8[_0xd1ac('0x31')][_0xd1ac('0x3b')]);_0x9617ef[_0xd1ac('0x3c')]=qs[_0xd1ac('0x33')](_[_0xd1ac('0x3d')](_0x450df8[_0xd1ac('0x31')],_0x4a769d[_0xd1ac('0x33')]),_0x4e9c86);if(_0x450df8[_0xd1ac('0x31')][_0xd1ac('0x3e')]){_0x9617ef['where']=_[_0xd1ac('0x3f')](_0x9617ef['where'],{'$or':_['map'](_0x4e9c86,function(_0x140573){if(_0x140573[_0xd1ac('0x2f')]!=='VIRTUAL'){var _0xd15596={};_0xd15596[_0x140573[_0xd1ac('0x28')]]={'$like':'%'+_0x450df8[_0xd1ac('0x31')][_0xd1ac('0x3e')]+'%'};return _0xd15596;}})});}_0x9617ef=_[_0xd1ac('0x3f')]({},_0x9617ef,_0x450df8[_0xd1ac('0x40')]);var _0x384592={'where':_0x9617ef[_0xd1ac('0x3c')]};return db[_0xd1ac('0x2c')][_0xd1ac('0x21')](_0x384592)[_0xd1ac('0x26')](function(_0x5ecfed){_0x26e0bd[_0xd1ac('0x21')]=_0x5ecfed;if(_0x450df8[_0xd1ac('0x31')][_0xd1ac('0x41')]){_0x9617ef['include']=[{'all':!![]}];}return db[_0xd1ac('0x2c')][_0xd1ac('0x42')](_0x9617ef);})[_0xd1ac('0x26')](function(_0x294444){_0x26e0bd['rows']=_0x294444;return _0x26e0bd;})[_0xd1ac('0x26')](respondWithFilteredResult(_0x170e86,_0x9617ef))[_0xd1ac('0x43')](handleError(_0x170e86,null));};exports[_0xd1ac('0x44')]=function(_0x436df9,_0x28414b){var _0x34228b={'raw':!![],'where':{'id':_0x436df9[_0xd1ac('0x45')]['id']}},_0x4ee260={};_0x4ee260['model']=_[_0xd1ac('0x32')](db[_0xd1ac('0x2c')]['rawAttributes']);_0x4ee260[_0xd1ac('0x31')]=_[_0xd1ac('0x32')](_0x436df9['query']);_0x4ee260[_0xd1ac('0x33')]=_['intersection'](_0x4ee260['model'],_0x4ee260['query']);_0x34228b[_0xd1ac('0x36')]=_['intersection'](_0x4ee260['model'],qs['fields'](_0x436df9[_0xd1ac('0x31')][_0xd1ac('0x46')]));_0x34228b[_0xd1ac('0x36')]=_0x34228b[_0xd1ac('0x36')][_0xd1ac('0x37')]?_0x34228b[_0xd1ac('0x36')]:_0x4ee260['model'];if(_0x436df9[_0xd1ac('0x31')][_0xd1ac('0x41')]){_0x34228b[_0xd1ac('0x47')]=[{'all':!![]}];}_0x34228b=_[_0xd1ac('0x3f')]({},_0x34228b,_0x436df9[_0xd1ac('0x40')]);return db[_0xd1ac('0x2c')][_0xd1ac('0x48')](_0x34228b)[_0xd1ac('0x26')](handleEntityNotFound(_0x28414b,null))[_0xd1ac('0x26')](respondWithResult(_0x28414b,null))['catch'](handleError(_0x28414b,null));};exports['create']=function(_0x2bb2a6,_0x43dba8){return db[_0xd1ac('0x2c')]['create'](_0x2bb2a6[_0xd1ac('0x49')],{})[_0xd1ac('0x26')](respondWithResult(_0x43dba8,0xc9))[_0xd1ac('0x43')](handleError(_0x43dba8,null));};exports[_0xd1ac('0x4a')]=function(_0x428689,_0xf97f74){if(_0x428689[_0xd1ac('0x49')]['id']){delete _0x428689[_0xd1ac('0x49')]['id'];}return db['SmsTransferReport']['find']({'where':{'id':_0x428689[_0xd1ac('0x45')]['id']}})[_0xd1ac('0x26')](handleEntityNotFound(_0xf97f74,null))[_0xd1ac('0x26')](saveUpdates(_0x428689['body'],null))['then'](respondWithResult(_0xf97f74,null))[_0xd1ac('0x43')](handleError(_0xf97f74,null));};exports[_0xd1ac('0x4b')]=function(_0x7237bc,_0x51a76a){return db[_0xd1ac('0x2c')][_0xd1ac('0x48')]({'where':{'id':_0x7237bc[_0xd1ac('0x45')]['id']}})[_0xd1ac('0x26')](handleEntityNotFound(_0x51a76a,null))[_0xd1ac('0x26')](removeEntity(_0x51a76a,null))['catch'](handleError(_0x51a76a,null));};exports[_0xd1ac('0x4c')]=function(_0x2287b3,_0x2e907f){return db[_0xd1ac('0x2c')][_0xd1ac('0x4c')]()[_0xd1ac('0x26')](respondWithResult(_0x2e907f,null))['catch'](handleError(_0x2e907f,null));};
\ No newline at end of file
+var _0x47f3=['then','destroy','stack','name','send','map','SmsTransferReport','rawAttributes','fieldName','type','keys','filters','query','attributes','intersection','model','fields','sort','where','pick','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','length','create','body','find','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/license/util','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update'];(function(_0x53ccf2,_0x13cb67){var _0x5a2964=function(_0x3b0514){while(--_0x3b0514){_0x53ccf2['push'](_0x53ccf2['shift']());}};_0x5a2964(++_0x13cb67);}(_0x47f3,0x14b));var _0x347f=function(_0x43eaeb,_0x419a9d){_0x43eaeb=_0x43eaeb-0x0;var _0x13f774=_0x47f3[_0x43eaeb];return _0x13f774;};'use strict';var emlformat=require(_0x347f('0x0'));var rimraf=require(_0x347f('0x1'));var zipdir=require(_0x347f('0x2'));var jsonpatch=require(_0x347f('0x3'));var rp=require('request-promise');var moment=require(_0x347f('0x4'));var BPromise=require(_0x347f('0x5'));var Mustache=require(_0x347f('0x6'));var util=require(_0x347f('0x7'));var path=require(_0x347f('0x8'));var sox=require(_0x347f('0x9'));var csv=require(_0x347f('0xa'));var ejs=require(_0x347f('0xb'));var fs=require('fs');var fs_extra=require(_0x347f('0xc'));var _=require('lodash');var squel=require(_0x347f('0xd'));var crypto=require('crypto');var jsforce=require(_0x347f('0xe'));var deskjs=require(_0x347f('0xf'));var toCsv=require(_0x347f('0xa'));var querystring=require(_0x347f('0x10'));var Papa=require(_0x347f('0x11'));var Redis=require(_0x347f('0x12'));var authService=require(_0x347f('0x13'));var qs=require(_0x347f('0x14'));var as=require(_0x347f('0x15'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x347f('0x16'))(_0x347f('0x17'));var utils=require(_0x347f('0x18'));var config=require('../../config/environment');var licenseUtil=require(_0x347f('0x19'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x53db0d,_0xbb03cb){_0xbb03cb=_0xbb03cb||0xcc;return function(_0x142849){if(_0x142849){return _0x53db0d['sendStatus'](_0xbb03cb);}return _0x53db0d[_0x347f('0x1a')](_0xbb03cb)[_0x347f('0x1b')]();};}function respondWithResult(_0x9df003,_0x4160af){_0x4160af=_0x4160af||0xc8;return function(_0x5067bd){if(_0x5067bd){return _0x9df003['status'](_0x4160af)[_0x347f('0x1c')](_0x5067bd);}};}function respondWithFilteredResult(_0x3eae70,_0x200701){return function(_0x4ca35a){if(_0x4ca35a){var _0x4101b0=typeof _0x200701[_0x347f('0x1d')]===_0x347f('0x1e')&&typeof _0x200701[_0x347f('0x1f')]===_0x347f('0x1e');var _0x124d7e=_0x4ca35a[_0x347f('0x20')];var _0x577884=_0x4101b0?0x0:_0x200701[_0x347f('0x1d')];var _0x52101c=_0x4101b0?_0x4ca35a[_0x347f('0x20')]:_0x200701['offset']+_0x200701['limit'];var _0x3cfb26;if(_0x52101c>=_0x124d7e){_0x52101c=_0x124d7e;_0x3cfb26=0xc8;}else{_0x3cfb26=0xce;}_0x3eae70[_0x347f('0x1a')](_0x3cfb26);return _0x3eae70[_0x347f('0x21')](_0x347f('0x22'),_0x577884+'-'+_0x52101c+'/'+_0x124d7e)['json'](_0x4ca35a);}return null;};}function patchUpdates(_0x5a732c){return function(_0x3787e1){try{jsonpatch[_0x347f('0x23')](_0x3787e1,_0x5a732c,!![]);}catch(_0x5c5cf9){return BPromise[_0x347f('0x24')](_0x5c5cf9);}return _0x3787e1[_0x347f('0x25')]();};}function saveUpdates(_0x1283d5,_0x52d60b){return function(_0x181417){if(_0x181417){return _0x181417[_0x347f('0x26')](_0x1283d5)[_0x347f('0x27')](function(_0x2a4d03){return _0x2a4d03;});}return null;};}function removeEntity(_0x4fae1c,_0x4e93ae){return function(_0x33ac5b){if(_0x33ac5b){return _0x33ac5b[_0x347f('0x28')]()[_0x347f('0x27')](function(){_0x4fae1c[_0x347f('0x1a')](0xcc)[_0x347f('0x1b')]();});}};}function handleEntityNotFound(_0x327f6b,_0x353233){return function(_0x1b4e05){if(!_0x1b4e05){_0x327f6b['sendStatus'](0x194);}return _0x1b4e05;};}function handleError(_0x1b80a8,_0x1061d1){_0x1061d1=_0x1061d1||0x1f4;return function(_0x30247c){logger['error'](_0x30247c[_0x347f('0x29')]);if(_0x30247c[_0x347f('0x2a')]){delete _0x30247c['name'];}_0x1b80a8[_0x347f('0x1a')](_0x1061d1)[_0x347f('0x2b')](_0x30247c);};}exports['index']=function(_0x1072ea,_0x470d22){var _0xcadb11={},_0x434f5f={},_0x21c737={'count':0x0,'rows':[]};var _0x44e3b9=_[_0x347f('0x2c')](db[_0x347f('0x2d')][_0x347f('0x2e')],function(_0x5ee06b){return{'name':_0x5ee06b[_0x347f('0x2f')],'type':_0x5ee06b[_0x347f('0x30')]['key']};});_0x434f5f['model']=_[_0x347f('0x2c')](_0x44e3b9,_0x347f('0x2a'));_0x434f5f['query']=_[_0x347f('0x31')](_0x1072ea['query']);_0x434f5f[_0x347f('0x32')]=_['intersection'](_0x434f5f['model'],_0x434f5f[_0x347f('0x33')]);_0xcadb11[_0x347f('0x34')]=_[_0x347f('0x35')](_0x434f5f[_0x347f('0x36')],qs[_0x347f('0x37')](_0x1072ea[_0x347f('0x33')][_0x347f('0x37')]));_0xcadb11[_0x347f('0x34')]=_0xcadb11[_0x347f('0x34')]['length']?_0xcadb11[_0x347f('0x34')]:_0x434f5f[_0x347f('0x36')];if(!_0x1072ea[_0x347f('0x33')]['hasOwnProperty']('nolimit')){_0xcadb11[_0x347f('0x1f')]=qs[_0x347f('0x1f')](_0x1072ea[_0x347f('0x33')][_0x347f('0x1f')]);_0xcadb11[_0x347f('0x1d')]=qs[_0x347f('0x1d')](_0x1072ea['query'][_0x347f('0x1d')]);}_0xcadb11['order']=qs[_0x347f('0x38')](_0x1072ea[_0x347f('0x33')][_0x347f('0x38')]);_0xcadb11[_0x347f('0x39')]=qs['filters'](_[_0x347f('0x3a')](_0x1072ea[_0x347f('0x33')],_0x434f5f[_0x347f('0x32')]),_0x44e3b9);if(_0x1072ea[_0x347f('0x33')]['filter']){_0xcadb11[_0x347f('0x39')]=_[_0x347f('0x3b')](_0xcadb11[_0x347f('0x39')],{'$or':_[_0x347f('0x2c')](_0x44e3b9,function(_0x1dbd53){if(_0x1dbd53[_0x347f('0x30')]!==_0x347f('0x3c')){var _0x2f6c3f={};_0x2f6c3f[_0x1dbd53[_0x347f('0x2a')]]={'$like':'%'+_0x1072ea[_0x347f('0x33')]['filter']+'%'};return _0x2f6c3f;}})});}_0xcadb11=_[_0x347f('0x3b')]({},_0xcadb11,_0x1072ea[_0x347f('0x3d')]);var _0xcfc5b3={'where':_0xcadb11[_0x347f('0x39')]};return db['SmsTransferReport'][_0x347f('0x20')](_0xcfc5b3)[_0x347f('0x27')](function(_0x15b1b1){_0x21c737['count']=_0x15b1b1;if(_0x1072ea[_0x347f('0x33')][_0x347f('0x3e')]){_0xcadb11[_0x347f('0x3f')]=[{'all':!![]}];}return db[_0x347f('0x2d')][_0x347f('0x40')](_0xcadb11);})[_0x347f('0x27')](function(_0x53ac0e){_0x21c737[_0x347f('0x41')]=_0x53ac0e;return _0x21c737;})[_0x347f('0x27')](respondWithFilteredResult(_0x470d22,_0xcadb11))[_0x347f('0x42')](handleError(_0x470d22,null));};exports[_0x347f('0x43')]=function(_0x506b37,_0xbfc84b){var _0x5594f6={'raw':!![],'where':{'id':_0x506b37[_0x347f('0x44')]['id']}},_0x422c7c={};_0x422c7c['model']=_[_0x347f('0x31')](db[_0x347f('0x2d')][_0x347f('0x2e')]);_0x422c7c[_0x347f('0x33')]=_[_0x347f('0x31')](_0x506b37[_0x347f('0x33')]);_0x422c7c[_0x347f('0x32')]=_[_0x347f('0x35')](_0x422c7c[_0x347f('0x36')],_0x422c7c[_0x347f('0x33')]);_0x5594f6['attributes']=_[_0x347f('0x35')](_0x422c7c[_0x347f('0x36')],qs[_0x347f('0x37')](_0x506b37['query']['fields']));_0x5594f6[_0x347f('0x34')]=_0x5594f6[_0x347f('0x34')][_0x347f('0x45')]?_0x5594f6[_0x347f('0x34')]:_0x422c7c[_0x347f('0x36')];if(_0x506b37[_0x347f('0x33')][_0x347f('0x3e')]){_0x5594f6[_0x347f('0x3f')]=[{'all':!![]}];}_0x5594f6=_['merge']({},_0x5594f6,_0x506b37[_0x347f('0x3d')]);return db[_0x347f('0x2d')]['find'](_0x5594f6)[_0x347f('0x27')](handleEntityNotFound(_0xbfc84b,null))[_0x347f('0x27')](respondWithResult(_0xbfc84b,null))[_0x347f('0x42')](handleError(_0xbfc84b,null));};exports['create']=function(_0x4d9e4a,_0x44e597){return db[_0x347f('0x2d')][_0x347f('0x46')](_0x4d9e4a[_0x347f('0x47')],{})[_0x347f('0x27')](respondWithResult(_0x44e597,0xc9))[_0x347f('0x42')](handleError(_0x44e597,null));};exports[_0x347f('0x26')]=function(_0x46b03b,_0x14e132){if(_0x46b03b[_0x347f('0x47')]['id']){delete _0x46b03b[_0x347f('0x47')]['id'];}return db[_0x347f('0x2d')][_0x347f('0x48')]({'where':{'id':_0x46b03b[_0x347f('0x44')]['id']}})['then'](handleEntityNotFound(_0x14e132,null))[_0x347f('0x27')](saveUpdates(_0x46b03b[_0x347f('0x47')],null))[_0x347f('0x27')](respondWithResult(_0x14e132,null))[_0x347f('0x42')](handleError(_0x14e132,null));};exports[_0x347f('0x28')]=function(_0x1bce59,_0x175f53){return db['SmsTransferReport'][_0x347f('0x48')]({'where':{'id':_0x1bce59['params']['id']}})[_0x347f('0x27')](handleEntityNotFound(_0x175f53,null))[_0x347f('0x27')](removeEntity(_0x175f53,null))[_0x347f('0x42')](handleError(_0x175f53,null));};exports['describe']=function(_0x282d9a,_0x127739){return db[_0x347f('0x2d')][_0x347f('0x49')]()[_0x347f('0x27')](respondWithResult(_0x127739,null))['catch'](handleError(_0x127739,null));};
\ No newline at end of file