Built motion from commit f67b3b02.|2.6.31
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index d02c3e3..f8e3305 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xae49=['body','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','to-csv','fs-extra','lodash','squel','crypto','jsforce','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','../../config/utils','../../mysqldb','status','end','offset','undefined','limit','count','set','Content-Range','json','apply','reject','save','update','destroy','then','sendStatus','error','stack','name','send','index','rawAttributes','fieldName','type','key','model','map','query','keys','filters','intersection','attributes','length','hasOwnProperty','order','sort','where','VIRTUAL','filter','merge','options','SmsTransferReport','includeAll','include','catch','show','params','fields','find','create'];(function(_0xee2e7a,_0x58354d){var _0x319dd3=function(_0xa99240){while(--_0xa99240){_0xee2e7a['push'](_0xee2e7a['shift']());}};_0x319dd3(++_0x58354d);}(_0xae49,0x174));var _0x9ae4=function(_0x5028d8,_0x538b4b){_0x5028d8=_0x5028d8-0x0;var _0x1ba240=_0xae49[_0x5028d8];return _0x1ba240;};'use strict';var emlformat=require(_0x9ae4('0x0'));var rimraf=require(_0x9ae4('0x1'));var zipdir=require(_0x9ae4('0x2'));var jsonpatch=require(_0x9ae4('0x3'));var rp=require(_0x9ae4('0x4'));var moment=require(_0x9ae4('0x5'));var BPromise=require('bluebird');var Mustache=require(_0x9ae4('0x6'));var util=require(_0x9ae4('0x7'));var path=require('path');var sox=require('sox');var csv=require(_0x9ae4('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x9ae4('0x9'));var _=require(_0x9ae4('0xa'));var squel=require(_0x9ae4('0xb'));var crypto=require(_0x9ae4('0xc'));var jsforce=require(_0x9ae4('0xd'));var deskjs=require('desk.js');var toCsv=require(_0x9ae4('0x8'));var querystring=require(_0x9ae4('0xe'));var Papa=require(_0x9ae4('0xf'));var Redis=require('ioredis');var authService=require(_0x9ae4('0x10'));var qs=require(_0x9ae4('0x11'));var as=require(_0x9ae4('0x12'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x9ae4('0x13'))('api');var utils=require(_0x9ae4('0x14'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0x9ae4('0x15'))['db'];function respondWithStatusCode(_0x4b3622,_0x343555){_0x343555=_0x343555||0xcc;return function(_0x446534){if(_0x446534){return _0x4b3622['sendStatus'](_0x343555);}return _0x4b3622[_0x9ae4('0x16')](_0x343555)[_0x9ae4('0x17')]();};}function respondWithResult(_0x9bedd2,_0x1e1460){_0x1e1460=_0x1e1460||0xc8;return function(_0x380ce4){if(_0x380ce4){return _0x9bedd2[_0x9ae4('0x16')](_0x1e1460)['json'](_0x380ce4);}};}function respondWithFilteredResult(_0x40e23d,_0x32945a){return function(_0x47ce43){if(_0x47ce43){var _0x44214e=typeof _0x32945a[_0x9ae4('0x18')]===_0x9ae4('0x19')&&typeof _0x32945a[_0x9ae4('0x1a')]===_0x9ae4('0x19');var _0x53d9f3=_0x47ce43[_0x9ae4('0x1b')];var _0xc65496=_0x44214e?0x0:_0x32945a[_0x9ae4('0x18')];var _0x1000c8=_0x44214e?_0x47ce43[_0x9ae4('0x1b')]:_0x32945a[_0x9ae4('0x18')]+_0x32945a['limit'];var _0x16a145;if(_0x1000c8>=_0x53d9f3){_0x1000c8=_0x53d9f3;_0x16a145=0xc8;}else{_0x16a145=0xce;}_0x40e23d['status'](_0x16a145);return _0x40e23d[_0x9ae4('0x1c')](_0x9ae4('0x1d'),_0xc65496+'-'+_0x1000c8+'/'+_0x53d9f3)[_0x9ae4('0x1e')](_0x47ce43);}return null;};}function patchUpdates(_0x3caaa1){return function(_0x445aaa){try{jsonpatch[_0x9ae4('0x1f')](_0x445aaa,_0x3caaa1,!![]);}catch(_0x2ab67b){return BPromise[_0x9ae4('0x20')](_0x2ab67b);}return _0x445aaa[_0x9ae4('0x21')]();};}function saveUpdates(_0x2b1261,_0x2bff09){return function(_0x23f680){if(_0x23f680){return _0x23f680[_0x9ae4('0x22')](_0x2b1261)['then'](function(_0x203199){return _0x203199;});}return null;};}function removeEntity(_0x198c8d,_0x3445ea){return function(_0x2c6c12){if(_0x2c6c12){return _0x2c6c12[_0x9ae4('0x23')]()[_0x9ae4('0x24')](function(){_0x198c8d['status'](0xcc)[_0x9ae4('0x17')]();});}};}function handleEntityNotFound(_0x888af7,_0x3a1b8d){return function(_0x1c0876){if(!_0x1c0876){_0x888af7[_0x9ae4('0x25')](0x194);}return _0x1c0876;};}function handleError(_0x25b939,_0x1558a1){_0x1558a1=_0x1558a1||0x1f4;return function(_0x4ee6e1){logger[_0x9ae4('0x26')](_0x4ee6e1[_0x9ae4('0x27')]);if(_0x4ee6e1[_0x9ae4('0x28')]){delete _0x4ee6e1[_0x9ae4('0x28')];}_0x25b939[_0x9ae4('0x16')](_0x1558a1)[_0x9ae4('0x29')](_0x4ee6e1);};}exports[_0x9ae4('0x2a')]=function(_0x1afc67,_0x1c03a0){var _0x20269e={},_0x3d50bf={},_0x168c05={'count':0x0,'rows':[]};var _0x191ab0=_['map'](db['SmsTransferReport'][_0x9ae4('0x2b')],function(_0x4dd360){return{'name':_0x4dd360[_0x9ae4('0x2c')],'type':_0x4dd360[_0x9ae4('0x2d')][_0x9ae4('0x2e')]};});_0x3d50bf[_0x9ae4('0x2f')]=_[_0x9ae4('0x30')](_0x191ab0,'name');_0x3d50bf[_0x9ae4('0x31')]=_[_0x9ae4('0x32')](_0x1afc67[_0x9ae4('0x31')]);_0x3d50bf[_0x9ae4('0x33')]=_[_0x9ae4('0x34')](_0x3d50bf[_0x9ae4('0x2f')],_0x3d50bf[_0x9ae4('0x31')]);_0x20269e[_0x9ae4('0x35')]=_[_0x9ae4('0x34')](_0x3d50bf[_0x9ae4('0x2f')],qs['fields'](_0x1afc67['query']['fields']));_0x20269e[_0x9ae4('0x35')]=_0x20269e[_0x9ae4('0x35')][_0x9ae4('0x36')]?_0x20269e[_0x9ae4('0x35')]:_0x3d50bf['model'];if(!_0x1afc67[_0x9ae4('0x31')][_0x9ae4('0x37')]('nolimit')){_0x20269e[_0x9ae4('0x1a')]=qs[_0x9ae4('0x1a')](_0x1afc67[_0x9ae4('0x31')][_0x9ae4('0x1a')]);_0x20269e[_0x9ae4('0x18')]=qs[_0x9ae4('0x18')](_0x1afc67['query'][_0x9ae4('0x18')]);}_0x20269e[_0x9ae4('0x38')]=qs['sort'](_0x1afc67['query'][_0x9ae4('0x39')]);_0x20269e[_0x9ae4('0x3a')]=qs[_0x9ae4('0x33')](_['pick'](_0x1afc67['query'],_0x3d50bf[_0x9ae4('0x33')]),_0x191ab0);if(_0x1afc67['query']['filter']){_0x20269e[_0x9ae4('0x3a')]=_['merge'](_0x20269e['where'],{'$or':_['map'](_0x191ab0,function(_0x590573){if(_0x590573[_0x9ae4('0x2d')]!==_0x9ae4('0x3b')){var _0x33d514={};_0x33d514[_0x590573[_0x9ae4('0x28')]]={'$like':'%'+_0x1afc67['query'][_0x9ae4('0x3c')]+'%'};return _0x33d514;}})});}_0x20269e=_[_0x9ae4('0x3d')]({},_0x20269e,_0x1afc67[_0x9ae4('0x3e')]);var _0xee44b7={'where':_0x20269e[_0x9ae4('0x3a')]};return db[_0x9ae4('0x3f')][_0x9ae4('0x1b')](_0xee44b7)['then'](function(_0x390717){_0x168c05['count']=_0x390717;if(_0x1afc67[_0x9ae4('0x31')][_0x9ae4('0x40')]){_0x20269e[_0x9ae4('0x41')]=[{'all':!![]}];}return db[_0x9ae4('0x3f')]['findAll'](_0x20269e);})[_0x9ae4('0x24')](function(_0x45b13f){_0x168c05['rows']=_0x45b13f;return _0x168c05;})[_0x9ae4('0x24')](respondWithFilteredResult(_0x1c03a0,_0x20269e))[_0x9ae4('0x42')](handleError(_0x1c03a0,null));};exports[_0x9ae4('0x43')]=function(_0x3d38e9,_0x53a9a7){var _0x3b09c9={'raw':!![],'where':{'id':_0x3d38e9[_0x9ae4('0x44')]['id']}},_0x4398bd={};_0x4398bd['model']=_['keys'](db[_0x9ae4('0x3f')]['rawAttributes']);_0x4398bd[_0x9ae4('0x31')]=_[_0x9ae4('0x32')](_0x3d38e9[_0x9ae4('0x31')]);_0x4398bd[_0x9ae4('0x33')]=_['intersection'](_0x4398bd['model'],_0x4398bd[_0x9ae4('0x31')]);_0x3b09c9[_0x9ae4('0x35')]=_[_0x9ae4('0x34')](_0x4398bd[_0x9ae4('0x2f')],qs[_0x9ae4('0x45')](_0x3d38e9[_0x9ae4('0x31')][_0x9ae4('0x45')]));_0x3b09c9[_0x9ae4('0x35')]=_0x3b09c9['attributes']['length']?_0x3b09c9[_0x9ae4('0x35')]:_0x4398bd[_0x9ae4('0x2f')];if(_0x3d38e9[_0x9ae4('0x31')][_0x9ae4('0x40')]){_0x3b09c9[_0x9ae4('0x41')]=[{'all':!![]}];}_0x3b09c9=_[_0x9ae4('0x3d')]({},_0x3b09c9,_0x3d38e9[_0x9ae4('0x3e')]);return db[_0x9ae4('0x3f')][_0x9ae4('0x46')](_0x3b09c9)[_0x9ae4('0x24')](handleEntityNotFound(_0x53a9a7,null))['then'](respondWithResult(_0x53a9a7,null))[_0x9ae4('0x42')](handleError(_0x53a9a7,null));};exports[_0x9ae4('0x47')]=function(_0x30e162,_0x2eec50){return db[_0x9ae4('0x3f')][_0x9ae4('0x47')](_0x30e162[_0x9ae4('0x48')],{})[_0x9ae4('0x24')](respondWithResult(_0x2eec50,0xc9))[_0x9ae4('0x42')](handleError(_0x2eec50,null));};exports['update']=function(_0x46bc65,_0x5f29f8){if(_0x46bc65[_0x9ae4('0x48')]['id']){delete _0x46bc65[_0x9ae4('0x48')]['id'];}return db['SmsTransferReport'][_0x9ae4('0x46')]({'where':{'id':_0x46bc65[_0x9ae4('0x44')]['id']}})['then'](handleEntityNotFound(_0x5f29f8,null))[_0x9ae4('0x24')](saveUpdates(_0x46bc65[_0x9ae4('0x48')],null))[_0x9ae4('0x24')](respondWithResult(_0x5f29f8,null))[_0x9ae4('0x42')](handleError(_0x5f29f8,null));};exports[_0x9ae4('0x23')]=function(_0x4701fa,_0xa185ac){return db[_0x9ae4('0x3f')][_0x9ae4('0x46')]({'where':{'id':_0x4701fa[_0x9ae4('0x44')]['id']}})[_0x9ae4('0x24')](handleEntityNotFound(_0xa185ac,null))['then'](removeEntity(_0xa185ac,null))['catch'](handleError(_0xa185ac,null));};exports[_0x9ae4('0x49')]=function(_0x50bf77,_0x2d6f2a){return db[_0x9ae4('0x3f')][_0x9ae4('0x49')]()['then'](respondWithResult(_0x2d6f2a,null))[_0x9ae4('0x42')](handleError(_0x2d6f2a,null));};
\ No newline at end of file
+var _0xcc4b=['request-promise','moment','mustache','path','sox','to-csv','fs-extra','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','status','end','offset','undefined','limit','count','Content-Range','json','apply','reject','save','then','destroy','error','stack','name','send','index','map','SmsTransferReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','rows','find','catch','create','body','params','describe','rimraf','zip-dir','fast-json-patch'];(function(_0x3b0265,_0x54c4b6){var _0x4d6215=function(_0x431a45){while(--_0x431a45){_0x3b0265['push'](_0x3b0265['shift']());}};_0x4d6215(++_0x54c4b6);}(_0xcc4b,0x16f));var _0xbcc4=function(_0x40b723,_0x118b22){_0x40b723=_0x40b723-0x0;var _0x1981ad=_0xcc4b[_0x40b723];return _0x1981ad;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xbcc4('0x0'));var zipdir=require(_0xbcc4('0x1'));var jsonpatch=require(_0xbcc4('0x2'));var rp=require(_0xbcc4('0x3'));var moment=require(_0xbcc4('0x4'));var BPromise=require('bluebird');var Mustache=require(_0xbcc4('0x5'));var util=require('util');var path=require(_0xbcc4('0x6'));var sox=require(_0xbcc4('0x7'));var csv=require(_0xbcc4('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xbcc4('0x9'));var _=require(_0xbcc4('0xa'));var squel=require(_0xbcc4('0xb'));var crypto=require(_0xbcc4('0xc'));var jsforce=require(_0xbcc4('0xd'));var deskjs=require('desk.js');var toCsv=require(_0xbcc4('0x8'));var querystring=require(_0xbcc4('0xe'));var Papa=require(_0xbcc4('0xf'));var Redis=require(_0xbcc4('0x10'));var authService=require(_0xbcc4('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0xbcc4('0x12'));var hardwareService=require(_0xbcc4('0x13'));var logger=require(_0xbcc4('0x14'))(_0xbcc4('0x15'));var utils=require('../../config/utils');var config=require(_0xbcc4('0x16'));var licenseUtil=require(_0xbcc4('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x39f0a9,_0x2b5722){_0x2b5722=_0x2b5722||0xcc;return function(_0x144860){if(_0x144860){return _0x39f0a9['sendStatus'](_0x2b5722);}return _0x39f0a9[_0xbcc4('0x18')](_0x2b5722)[_0xbcc4('0x19')]();};}function respondWithResult(_0x44aa5a,_0x47a785){_0x47a785=_0x47a785||0xc8;return function(_0xe3301e){if(_0xe3301e){return _0x44aa5a[_0xbcc4('0x18')](_0x47a785)['json'](_0xe3301e);}};}function respondWithFilteredResult(_0x2e282e,_0x58b938){return function(_0x1594d6){if(_0x1594d6){var _0x177826=typeof _0x58b938[_0xbcc4('0x1a')]===_0xbcc4('0x1b')&&typeof _0x58b938[_0xbcc4('0x1c')]===_0xbcc4('0x1b');var _0x5a4070=_0x1594d6[_0xbcc4('0x1d')];var _0x404bdb=_0x177826?0x0:_0x58b938['offset'];var _0x378fe6=_0x177826?_0x1594d6['count']:_0x58b938[_0xbcc4('0x1a')]+_0x58b938[_0xbcc4('0x1c')];var _0x52b771;if(_0x378fe6>=_0x5a4070){_0x378fe6=_0x5a4070;_0x52b771=0xc8;}else{_0x52b771=0xce;}_0x2e282e[_0xbcc4('0x18')](_0x52b771);return _0x2e282e['set'](_0xbcc4('0x1e'),_0x404bdb+'-'+_0x378fe6+'/'+_0x5a4070)[_0xbcc4('0x1f')](_0x1594d6);}return null;};}function patchUpdates(_0x28ae79){return function(_0x16a420){try{jsonpatch[_0xbcc4('0x20')](_0x16a420,_0x28ae79,!![]);}catch(_0x367ced){return BPromise[_0xbcc4('0x21')](_0x367ced);}return _0x16a420[_0xbcc4('0x22')]();};}function saveUpdates(_0x229e8c,_0x100f94){return function(_0x2e8f52){if(_0x2e8f52){return _0x2e8f52['update'](_0x229e8c)[_0xbcc4('0x23')](function(_0x280019){return _0x280019;});}return null;};}function removeEntity(_0x2571db,_0x36e368){return function(_0x7329b){if(_0x7329b){return _0x7329b[_0xbcc4('0x24')]()[_0xbcc4('0x23')](function(){_0x2571db[_0xbcc4('0x18')](0xcc)[_0xbcc4('0x19')]();});}};}function handleEntityNotFound(_0xcf743c,_0x4eeada){return function(_0x5d066c){if(!_0x5d066c){_0xcf743c['sendStatus'](0x194);}return _0x5d066c;};}function handleError(_0x13549c,_0x42033d){_0x42033d=_0x42033d||0x1f4;return function(_0x1bc74d){logger[_0xbcc4('0x25')](_0x1bc74d[_0xbcc4('0x26')]);if(_0x1bc74d[_0xbcc4('0x27')]){delete _0x1bc74d[_0xbcc4('0x27')];}_0x13549c[_0xbcc4('0x18')](_0x42033d)[_0xbcc4('0x28')](_0x1bc74d);};}exports[_0xbcc4('0x29')]=function(_0x479a86,_0x16d146){var _0x3e0c2f={},_0x44b029={},_0x196255={'count':0x0,'rows':[]};var _0x43edab=_[_0xbcc4('0x2a')](db[_0xbcc4('0x2b')][_0xbcc4('0x2c')],function(_0x49d311){return{'name':_0x49d311[_0xbcc4('0x2d')],'type':_0x49d311[_0xbcc4('0x2e')][_0xbcc4('0x2f')]};});_0x44b029[_0xbcc4('0x30')]=_[_0xbcc4('0x2a')](_0x43edab,_0xbcc4('0x27'));_0x44b029[_0xbcc4('0x31')]=_[_0xbcc4('0x32')](_0x479a86[_0xbcc4('0x31')]);_0x44b029[_0xbcc4('0x33')]=_[_0xbcc4('0x34')](_0x44b029[_0xbcc4('0x30')],_0x44b029['query']);_0x3e0c2f[_0xbcc4('0x35')]=_['intersection'](_0x44b029[_0xbcc4('0x30')],qs[_0xbcc4('0x36')](_0x479a86['query']['fields']));_0x3e0c2f[_0xbcc4('0x35')]=_0x3e0c2f['attributes'][_0xbcc4('0x37')]?_0x3e0c2f[_0xbcc4('0x35')]:_0x44b029[_0xbcc4('0x30')];if(!_0x479a86['query'][_0xbcc4('0x38')](_0xbcc4('0x39'))){_0x3e0c2f['limit']=qs[_0xbcc4('0x1c')](_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x1c')]);_0x3e0c2f[_0xbcc4('0x1a')]=qs[_0xbcc4('0x1a')](_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x1a')]);}_0x3e0c2f['order']=qs[_0xbcc4('0x3a')](_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x3a')]);_0x3e0c2f[_0xbcc4('0x3b')]=qs['filters'](_[_0xbcc4('0x3c')](_0x479a86['query'],_0x44b029[_0xbcc4('0x33')]),_0x43edab);if(_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x3d')]){_0x3e0c2f[_0xbcc4('0x3b')]=_[_0xbcc4('0x3e')](_0x3e0c2f[_0xbcc4('0x3b')],{'$or':_[_0xbcc4('0x2a')](_0x43edab,function(_0x35ec02){if(_0x35ec02[_0xbcc4('0x2e')]!==_0xbcc4('0x3f')){var _0x3cf501={};_0x3cf501[_0x35ec02['name']]={'$like':'%'+_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x3d')]+'%'};return _0x3cf501;}})});}_0x3e0c2f=_[_0xbcc4('0x3e')]({},_0x3e0c2f,_0x479a86[_0xbcc4('0x40')]);var _0x17f385={'where':_0x3e0c2f['where']};return db[_0xbcc4('0x2b')][_0xbcc4('0x1d')](_0x17f385)['then'](function(_0xdc60be){_0x196255[_0xbcc4('0x1d')]=_0xdc60be;if(_0x479a86[_0xbcc4('0x31')][_0xbcc4('0x41')]){_0x3e0c2f[_0xbcc4('0x42')]=[{'all':!![]}];}return db['SmsTransferReport']['findAll'](_0x3e0c2f);})[_0xbcc4('0x23')](function(_0xe4d800){_0x196255[_0xbcc4('0x43')]=_0xe4d800;return _0x196255;})[_0xbcc4('0x23')](respondWithFilteredResult(_0x16d146,_0x3e0c2f))['catch'](handleError(_0x16d146,null));};exports['show']=function(_0x197796,_0x1244cc){var _0x2131bc={'raw':!![],'where':{'id':_0x197796['params']['id']}},_0x457cc6={};_0x457cc6[_0xbcc4('0x30')]=_[_0xbcc4('0x32')](db[_0xbcc4('0x2b')]['rawAttributes']);_0x457cc6[_0xbcc4('0x31')]=_[_0xbcc4('0x32')](_0x197796[_0xbcc4('0x31')]);_0x457cc6[_0xbcc4('0x33')]=_[_0xbcc4('0x34')](_0x457cc6[_0xbcc4('0x30')],_0x457cc6['query']);_0x2131bc[_0xbcc4('0x35')]=_[_0xbcc4('0x34')](_0x457cc6[_0xbcc4('0x30')],qs[_0xbcc4('0x36')](_0x197796[_0xbcc4('0x31')][_0xbcc4('0x36')]));_0x2131bc[_0xbcc4('0x35')]=_0x2131bc[_0xbcc4('0x35')][_0xbcc4('0x37')]?_0x2131bc[_0xbcc4('0x35')]:_0x457cc6[_0xbcc4('0x30')];if(_0x197796[_0xbcc4('0x31')][_0xbcc4('0x41')]){_0x2131bc[_0xbcc4('0x42')]=[{'all':!![]}];}_0x2131bc=_['merge']({},_0x2131bc,_0x197796[_0xbcc4('0x40')]);return db[_0xbcc4('0x2b')][_0xbcc4('0x44')](_0x2131bc)[_0xbcc4('0x23')](handleEntityNotFound(_0x1244cc,null))['then'](respondWithResult(_0x1244cc,null))[_0xbcc4('0x45')](handleError(_0x1244cc,null));};exports[_0xbcc4('0x46')]=function(_0xad5710,_0x1e1d48){return db[_0xbcc4('0x2b')]['create'](_0xad5710[_0xbcc4('0x47')],{})['then'](respondWithResult(_0x1e1d48,0xc9))[_0xbcc4('0x45')](handleError(_0x1e1d48,null));};exports['update']=function(_0x12fe03,_0x78d19d){if(_0x12fe03[_0xbcc4('0x47')]['id']){delete _0x12fe03[_0xbcc4('0x47')]['id'];}return db['SmsTransferReport'][_0xbcc4('0x44')]({'where':{'id':_0x12fe03[_0xbcc4('0x48')]['id']}})[_0xbcc4('0x23')](handleEntityNotFound(_0x78d19d,null))['then'](saveUpdates(_0x12fe03[_0xbcc4('0x47')],null))[_0xbcc4('0x23')](respondWithResult(_0x78d19d,null))[_0xbcc4('0x45')](handleError(_0x78d19d,null));};exports[_0xbcc4('0x24')]=function(_0x50119d,_0x25dc06){return db[_0xbcc4('0x2b')][_0xbcc4('0x44')]({'where':{'id':_0x50119d[_0xbcc4('0x48')]['id']}})[_0xbcc4('0x23')](handleEntityNotFound(_0x25dc06,null))['then'](removeEntity(_0x25dc06,null))[_0xbcc4('0x45')](handleError(_0x25dc06,null));};exports['describe']=function(_0x466865,_0x5b08cb){return db[_0xbcc4('0x2b')][_0xbcc4('0x49')]()['then'](respondWithResult(_0x5b08cb,null))[_0xbcc4('0x45')](handleError(_0x5b08cb,null));};
\ No newline at end of file