Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index 790a3e8..6b5aab0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf30=['rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','pick','filter','where','merge','map','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','find','create','body','describe','eml-format','rimraf','request-promise','moment','bluebird','mustache','util','ejs','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','end','json','offset','undefined','count','limit','status','set','Content-Range','apply','save','update','then','destroy','sendStatus','error','name','index','SmsTransferReport'];(function(_0x2e1c21,_0x3873fc){var _0x35cfc7=function(_0x43722e){while(--_0x43722e){_0x2e1c21['push'](_0x2e1c21['shift']());}};_0x35cfc7(++_0x3873fc);}(_0xbf30,0x1de));var _0x0bf3=function(_0x25210a,_0xfdda84){_0x25210a=_0x25210a-0x0;var _0x4c1bd9=_0xbf30[_0x25210a];return _0x4c1bd9;};'use strict';var emlformat=require(_0x0bf3('0x0'));var rimraf=require(_0x0bf3('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x0bf3('0x2'));var moment=require(_0x0bf3('0x3'));var BPromise=require(_0x0bf3('0x4'));var Mustache=require(_0x0bf3('0x5'));var util=require(_0x0bf3('0x6'));var path=require('path');var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x0bf3('0x7'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x0bf3('0x8'));var crypto=require(_0x0bf3('0x9'));var jsforce=require('jsforce');var deskjs=require(_0x0bf3('0xa'));var toCsv=require('to-csv');var querystring=require(_0x0bf3('0xb'));var Papa=require(_0x0bf3('0xc'));var Redis=require(_0x0bf3('0xd'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0x0bf3('0xe'));var hardwareService=require(_0x0bf3('0xf'));var logger=require(_0x0bf3('0x10'))(_0x0bf3('0x11'));var utils=require(_0x0bf3('0x12'));var config=require(_0x0bf3('0x13'));var licenseUtil=require(_0x0bf3('0x14'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1e7db3,_0x1af62a){_0x1af62a=_0x1af62a||0xcc;return function(_0x172e72){if(_0x172e72){return _0x1e7db3['sendStatus'](_0x1af62a);}return _0x1e7db3['status'](_0x1af62a)[_0x0bf3('0x15')]();};}function respondWithResult(_0x22ce05,_0x5d0cf3){_0x5d0cf3=_0x5d0cf3||0xc8;return function(_0xe723b4){if(_0xe723b4){return _0x22ce05['status'](_0x5d0cf3)[_0x0bf3('0x16')](_0xe723b4);}};}function respondWithFilteredResult(_0x1ca19c,_0x2e7a9b){return function(_0xce254d){if(_0xce254d){var _0x11e380=typeof _0x2e7a9b[_0x0bf3('0x17')]===_0x0bf3('0x18')&&typeof _0x2e7a9b['limit']===_0x0bf3('0x18');var _0xd5f018=_0xce254d[_0x0bf3('0x19')];var _0x25a1fb=_0x11e380?0x0:_0x2e7a9b['offset'];var _0x1e761d=_0x11e380?_0xce254d['count']:_0x2e7a9b[_0x0bf3('0x17')]+_0x2e7a9b[_0x0bf3('0x1a')];var _0x37e9b4;if(_0x1e761d>=_0xd5f018){_0x1e761d=_0xd5f018;_0x37e9b4=0xc8;}else{_0x37e9b4=0xce;}_0x1ca19c[_0x0bf3('0x1b')](_0x37e9b4);return _0x1ca19c[_0x0bf3('0x1c')](_0x0bf3('0x1d'),_0x25a1fb+'-'+_0x1e761d+'/'+_0xd5f018)[_0x0bf3('0x16')](_0xce254d);}return null;};}function patchUpdates(_0x4eaa04){return function(_0x4c4ff8){try{jsonpatch[_0x0bf3('0x1e')](_0x4c4ff8,_0x4eaa04,!![]);}catch(_0x3bc916){return BPromise['reject'](_0x3bc916);}return _0x4c4ff8[_0x0bf3('0x1f')]();};}function saveUpdates(_0x4d706d,_0x21cacf){return function(_0x28bfc6){if(_0x28bfc6){return _0x28bfc6[_0x0bf3('0x20')](_0x4d706d)[_0x0bf3('0x21')](function(_0x23a967){return _0x23a967;});}return null;};}function removeEntity(_0x2f89f7,_0x44fb1d){return function(_0x14c950){if(_0x14c950){return _0x14c950[_0x0bf3('0x22')]()[_0x0bf3('0x21')](function(){_0x2f89f7[_0x0bf3('0x1b')](0xcc)[_0x0bf3('0x15')]();});}};}function handleEntityNotFound(_0x5369a8,_0x4fe233){return function(_0x544920){if(!_0x544920){_0x5369a8[_0x0bf3('0x23')](0x194);}return _0x544920;};}function handleError(_0x161c5b,_0x3baa04){_0x3baa04=_0x3baa04||0x1f4;return function(_0x4d631f){logger[_0x0bf3('0x24')](_0x4d631f['stack']);if(_0x4d631f[_0x0bf3('0x25')]){delete _0x4d631f[_0x0bf3('0x25')];}_0x161c5b['status'](_0x3baa04)['send'](_0x4d631f);};}exports[_0x0bf3('0x26')]=function(_0x4f5793,_0x40706e){var _0x14b0ce={},_0x2a235c={},_0x1c7a7e={'count':0x0,'rows':[]};var _0x3881b9=_['map'](db[_0x0bf3('0x27')][_0x0bf3('0x28')],function(_0x2e04ff){return{'name':_0x2e04ff[_0x0bf3('0x29')],'type':_0x2e04ff[_0x0bf3('0x2a')][_0x0bf3('0x2b')]};});_0x2a235c[_0x0bf3('0x2c')]=_['map'](_0x3881b9,'name');_0x2a235c[_0x0bf3('0x2d')]=_[_0x0bf3('0x2e')](_0x4f5793[_0x0bf3('0x2d')]);_0x2a235c[_0x0bf3('0x2f')]=_[_0x0bf3('0x30')](_0x2a235c[_0x0bf3('0x2c')],_0x2a235c[_0x0bf3('0x2d')]);_0x14b0ce[_0x0bf3('0x31')]=_[_0x0bf3('0x30')](_0x2a235c[_0x0bf3('0x2c')],qs[_0x0bf3('0x32')](_0x4f5793[_0x0bf3('0x2d')][_0x0bf3('0x32')]));_0x14b0ce[_0x0bf3('0x31')]=_0x14b0ce['attributes'][_0x0bf3('0x33')]?_0x14b0ce['attributes']:_0x2a235c[_0x0bf3('0x2c')];if(!_0x4f5793[_0x0bf3('0x2d')][_0x0bf3('0x34')](_0x0bf3('0x35'))){_0x14b0ce[_0x0bf3('0x1a')]=qs[_0x0bf3('0x1a')](_0x4f5793[_0x0bf3('0x2d')]['limit']);_0x14b0ce['offset']=qs[_0x0bf3('0x17')](_0x4f5793[_0x0bf3('0x2d')][_0x0bf3('0x17')]);}_0x14b0ce[_0x0bf3('0x36')]=qs[_0x0bf3('0x37')](_0x4f5793[_0x0bf3('0x2d')][_0x0bf3('0x37')]);_0x14b0ce['where']=qs[_0x0bf3('0x2f')](_[_0x0bf3('0x38')](_0x4f5793[_0x0bf3('0x2d')],_0x2a235c[_0x0bf3('0x2f')]),_0x3881b9);if(_0x4f5793['query'][_0x0bf3('0x39')]){_0x14b0ce[_0x0bf3('0x3a')]=_[_0x0bf3('0x3b')](_0x14b0ce[_0x0bf3('0x3a')],{'$or':_[_0x0bf3('0x3c')](_0x3881b9,function(_0x2bf6d1){if(_0x2bf6d1[_0x0bf3('0x2a')]!==_0x0bf3('0x3d')){var _0x4a69ea={};_0x4a69ea[_0x2bf6d1[_0x0bf3('0x25')]]={'$like':'%'+_0x4f5793[_0x0bf3('0x2d')][_0x0bf3('0x39')]+'%'};return _0x4a69ea;}})});}_0x14b0ce=_[_0x0bf3('0x3b')]({},_0x14b0ce,_0x4f5793[_0x0bf3('0x3e')]);var _0x1c2f9b={'where':_0x14b0ce[_0x0bf3('0x3a')]};return db[_0x0bf3('0x27')][_0x0bf3('0x19')](_0x1c2f9b)[_0x0bf3('0x21')](function(_0x311082){_0x1c7a7e[_0x0bf3('0x19')]=_0x311082;if(_0x4f5793[_0x0bf3('0x2d')][_0x0bf3('0x3f')]){_0x14b0ce[_0x0bf3('0x40')]=[{'all':!![]}];}return db[_0x0bf3('0x27')][_0x0bf3('0x41')](_0x14b0ce);})['then'](function(_0x28c879){_0x1c7a7e[_0x0bf3('0x42')]=_0x28c879;return _0x1c7a7e;})[_0x0bf3('0x21')](respondWithFilteredResult(_0x40706e,_0x14b0ce))[_0x0bf3('0x43')](handleError(_0x40706e,null));};exports[_0x0bf3('0x44')]=function(_0x309798,_0x271aad){var _0x48d8bf={'raw':!![],'where':{'id':_0x309798[_0x0bf3('0x45')]['id']}},_0x424813={};_0x424813[_0x0bf3('0x2c')]=_['keys'](db[_0x0bf3('0x27')][_0x0bf3('0x28')]);_0x424813[_0x0bf3('0x2d')]=_['keys'](_0x309798[_0x0bf3('0x2d')]);_0x424813[_0x0bf3('0x2f')]=_['intersection'](_0x424813[_0x0bf3('0x2c')],_0x424813[_0x0bf3('0x2d')]);_0x48d8bf[_0x0bf3('0x31')]=_['intersection'](_0x424813[_0x0bf3('0x2c')],qs[_0x0bf3('0x32')](_0x309798[_0x0bf3('0x2d')]['fields']));_0x48d8bf[_0x0bf3('0x31')]=_0x48d8bf[_0x0bf3('0x31')][_0x0bf3('0x33')]?_0x48d8bf['attributes']:_0x424813[_0x0bf3('0x2c')];if(_0x309798['query'][_0x0bf3('0x3f')]){_0x48d8bf[_0x0bf3('0x40')]=[{'all':!![]}];}_0x48d8bf=_['merge']({},_0x48d8bf,_0x309798[_0x0bf3('0x3e')]);return db[_0x0bf3('0x27')][_0x0bf3('0x46')](_0x48d8bf)[_0x0bf3('0x21')](handleEntityNotFound(_0x271aad,null))[_0x0bf3('0x21')](respondWithResult(_0x271aad,null))[_0x0bf3('0x43')](handleError(_0x271aad,null));};exports[_0x0bf3('0x47')]=function(_0x5cb8c7,_0xdfd79c){return db[_0x0bf3('0x27')][_0x0bf3('0x47')](_0x5cb8c7[_0x0bf3('0x48')],{})[_0x0bf3('0x21')](respondWithResult(_0xdfd79c,0xc9))[_0x0bf3('0x43')](handleError(_0xdfd79c,null));};exports[_0x0bf3('0x20')]=function(_0x27d32e,_0x7fabaf){if(_0x27d32e['body']['id']){delete _0x27d32e[_0x0bf3('0x48')]['id'];}return db['SmsTransferReport'][_0x0bf3('0x46')]({'where':{'id':_0x27d32e[_0x0bf3('0x45')]['id']}})[_0x0bf3('0x21')](handleEntityNotFound(_0x7fabaf,null))[_0x0bf3('0x21')](saveUpdates(_0x27d32e[_0x0bf3('0x48')],null))[_0x0bf3('0x21')](respondWithResult(_0x7fabaf,null))[_0x0bf3('0x43')](handleError(_0x7fabaf,null));};exports[_0x0bf3('0x22')]=function(_0x15f34b,_0x241172){return db[_0x0bf3('0x27')]['find']({'where':{'id':_0x15f34b[_0x0bf3('0x45')]['id']}})[_0x0bf3('0x21')](handleEntityNotFound(_0x241172,null))[_0x0bf3('0x21')](removeEntity(_0x241172,null))[_0x0bf3('0x43')](handleError(_0x241172,null));};exports[_0x0bf3('0x49')]=function(_0x3dbb57,_0x12c840){return db[_0x0bf3('0x27')][_0x0bf3('0x49')]()[_0x0bf3('0x21')](respondWithResult(_0x12c840,null))[_0x0bf3('0x43')](handleError(_0x12c840,null));};
\ No newline at end of file
+var _0x850f=['rawAttributes','fieldName','type','key','query','filters','intersection','model','fields','attributes','length','nolimit','order','sort','where','filter','merge','VIRTUAL','includeAll','include','findAll','rows','catch','show','params','keys','options','find','create','body','update','describe','eml-format','zip-dir','moment','util','path','sox','to-csv','fs-extra','lodash','crypto','jsforce','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','end','status','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','then','sendStatus','error','name','send','index','map','SmsTransferReport'];(function(_0x4c0622,_0x5dacaf){var _0x1799d8=function(_0x2ba801){while(--_0x2ba801){_0x4c0622['push'](_0x4c0622['shift']());}};_0x1799d8(++_0x5dacaf);}(_0x850f,0xfe));var _0xf850=function(_0x2785f2,_0x170dce){_0x2785f2=_0x2785f2-0x0;var _0x39ad95=_0x850f[_0x2785f2];return _0x39ad95;};'use strict';var emlformat=require(_0xf850('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xf850('0x1'));var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require(_0xf850('0x2'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0xf850('0x3'));var path=require(_0xf850('0x4'));var sox=require(_0xf850('0x5'));var csv=require(_0xf850('0x6'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xf850('0x7'));var _=require(_0xf850('0x8'));var squel=require('squel');var crypto=require(_0xf850('0x9'));var jsforce=require(_0xf850('0xa'));var deskjs=require(_0xf850('0xb'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0xf850('0xc'));var Redis=require(_0xf850('0xd'));var authService=require(_0xf850('0xe'));var qs=require('../../components/parsers/qs');var as=require(_0xf850('0xf'));var hardwareService=require(_0xf850('0x10'));var logger=require(_0xf850('0x11'))('api');var utils=require(_0xf850('0x12'));var config=require(_0xf850('0x13'));var licenseUtil=require(_0xf850('0x14'));var db=require(_0xf850('0x15'))['db'];function respondWithStatusCode(_0x452615,_0x8955a2){_0x8955a2=_0x8955a2||0xcc;return function(_0x47d06a){if(_0x47d06a){return _0x452615['sendStatus'](_0x8955a2);}return _0x452615['status'](_0x8955a2)[_0xf850('0x16')]();};}function respondWithResult(_0x100c7,_0x48dea0){_0x48dea0=_0x48dea0||0xc8;return function(_0xef7535){if(_0xef7535){return _0x100c7[_0xf850('0x17')](_0x48dea0)[_0xf850('0x18')](_0xef7535);}};}function respondWithFilteredResult(_0xfefdb3,_0x197b3b){return function(_0x1ecd6c){if(_0x1ecd6c){var _0xb6d1d3=typeof _0x197b3b[_0xf850('0x19')]===_0xf850('0x1a')&&typeof _0x197b3b[_0xf850('0x1b')]===_0xf850('0x1a');var _0x111f96=_0x1ecd6c[_0xf850('0x1c')];var _0x2eff22=_0xb6d1d3?0x0:_0x197b3b[_0xf850('0x19')];var _0x45a7ae=_0xb6d1d3?_0x1ecd6c[_0xf850('0x1c')]:_0x197b3b[_0xf850('0x19')]+_0x197b3b[_0xf850('0x1b')];var _0x1c0f5c;if(_0x45a7ae>=_0x111f96){_0x45a7ae=_0x111f96;_0x1c0f5c=0xc8;}else{_0x1c0f5c=0xce;}_0xfefdb3['status'](_0x1c0f5c);return _0xfefdb3[_0xf850('0x1d')](_0xf850('0x1e'),_0x2eff22+'-'+_0x45a7ae+'/'+_0x111f96)[_0xf850('0x18')](_0x1ecd6c);}return null;};}function patchUpdates(_0x56da0b){return function(_0x25f9b2){try{jsonpatch[_0xf850('0x1f')](_0x25f9b2,_0x56da0b,!![]);}catch(_0x30b1a2){return BPromise[_0xf850('0x20')](_0x30b1a2);}return _0x25f9b2[_0xf850('0x21')]();};}function saveUpdates(_0x8f5daa,_0x53ce2f){return function(_0x3d7ab5){if(_0x3d7ab5){return _0x3d7ab5['update'](_0x8f5daa)[_0xf850('0x22')](function(_0xf1e8d1){return _0xf1e8d1;});}return null;};}function removeEntity(_0xd04532,_0xf9ed7d){return function(_0x474a51){if(_0x474a51){return _0x474a51['destroy']()[_0xf850('0x22')](function(){_0xd04532[_0xf850('0x17')](0xcc)['end']();});}};}function handleEntityNotFound(_0x3360de,_0x1bca50){return function(_0x2b893d){if(!_0x2b893d){_0x3360de[_0xf850('0x23')](0x194);}return _0x2b893d;};}function handleError(_0x21fa45,_0x219e36){_0x219e36=_0x219e36||0x1f4;return function(_0x339767){logger[_0xf850('0x24')](_0x339767['stack']);if(_0x339767[_0xf850('0x25')]){delete _0x339767[_0xf850('0x25')];}_0x21fa45[_0xf850('0x17')](_0x219e36)[_0xf850('0x26')](_0x339767);};}exports[_0xf850('0x27')]=function(_0x310fd4,_0x47e7d9){var _0x313d74={},_0x21ab43={},_0x565c5d={'count':0x0,'rows':[]};var _0x37faad=_[_0xf850('0x28')](db[_0xf850('0x29')][_0xf850('0x2a')],function(_0x44950d){return{'name':_0x44950d[_0xf850('0x2b')],'type':_0x44950d[_0xf850('0x2c')][_0xf850('0x2d')]};});_0x21ab43['model']=_[_0xf850('0x28')](_0x37faad,_0xf850('0x25'));_0x21ab43[_0xf850('0x2e')]=_['keys'](_0x310fd4[_0xf850('0x2e')]);_0x21ab43[_0xf850('0x2f')]=_[_0xf850('0x30')](_0x21ab43[_0xf850('0x31')],_0x21ab43[_0xf850('0x2e')]);_0x313d74['attributes']=_['intersection'](_0x21ab43[_0xf850('0x31')],qs[_0xf850('0x32')](_0x310fd4[_0xf850('0x2e')][_0xf850('0x32')]));_0x313d74[_0xf850('0x33')]=_0x313d74['attributes'][_0xf850('0x34')]?_0x313d74[_0xf850('0x33')]:_0x21ab43[_0xf850('0x31')];if(!_0x310fd4['query']['hasOwnProperty'](_0xf850('0x35'))){_0x313d74[_0xf850('0x1b')]=qs[_0xf850('0x1b')](_0x310fd4[_0xf850('0x2e')]['limit']);_0x313d74[_0xf850('0x19')]=qs[_0xf850('0x19')](_0x310fd4[_0xf850('0x2e')][_0xf850('0x19')]);}_0x313d74[_0xf850('0x36')]=qs[_0xf850('0x37')](_0x310fd4['query']['sort']);_0x313d74[_0xf850('0x38')]=qs[_0xf850('0x2f')](_['pick'](_0x310fd4[_0xf850('0x2e')],_0x21ab43['filters']),_0x37faad);if(_0x310fd4['query'][_0xf850('0x39')]){_0x313d74[_0xf850('0x38')]=_[_0xf850('0x3a')](_0x313d74[_0xf850('0x38')],{'$or':_[_0xf850('0x28')](_0x37faad,function(_0xbbf648){if(_0xbbf648[_0xf850('0x2c')]!==_0xf850('0x3b')){var _0xa9ed47={};_0xa9ed47[_0xbbf648[_0xf850('0x25')]]={'$like':'%'+_0x310fd4[_0xf850('0x2e')][_0xf850('0x39')]+'%'};return _0xa9ed47;}})});}_0x313d74=_[_0xf850('0x3a')]({},_0x313d74,_0x310fd4['options']);var _0x115caf={'where':_0x313d74[_0xf850('0x38')]};return db['SmsTransferReport']['count'](_0x115caf)[_0xf850('0x22')](function(_0x94e2d5){_0x565c5d[_0xf850('0x1c')]=_0x94e2d5;if(_0x310fd4['query'][_0xf850('0x3c')]){_0x313d74[_0xf850('0x3d')]=[{'all':!![]}];}return db[_0xf850('0x29')][_0xf850('0x3e')](_0x313d74);})['then'](function(_0x3e0d88){_0x565c5d[_0xf850('0x3f')]=_0x3e0d88;return _0x565c5d;})[_0xf850('0x22')](respondWithFilteredResult(_0x47e7d9,_0x313d74))[_0xf850('0x40')](handleError(_0x47e7d9,null));};exports[_0xf850('0x41')]=function(_0x23f217,_0x25c9f1){var _0x2e76d2={'raw':!![],'where':{'id':_0x23f217[_0xf850('0x42')]['id']}},_0x51d10b={};_0x51d10b[_0xf850('0x31')]=_[_0xf850('0x43')](db[_0xf850('0x29')]['rawAttributes']);_0x51d10b[_0xf850('0x2e')]=_[_0xf850('0x43')](_0x23f217[_0xf850('0x2e')]);_0x51d10b[_0xf850('0x2f')]=_[_0xf850('0x30')](_0x51d10b[_0xf850('0x31')],_0x51d10b[_0xf850('0x2e')]);_0x2e76d2[_0xf850('0x33')]=_[_0xf850('0x30')](_0x51d10b[_0xf850('0x31')],qs[_0xf850('0x32')](_0x23f217[_0xf850('0x2e')]['fields']));_0x2e76d2[_0xf850('0x33')]=_0x2e76d2[_0xf850('0x33')][_0xf850('0x34')]?_0x2e76d2[_0xf850('0x33')]:_0x51d10b['model'];if(_0x23f217[_0xf850('0x2e')][_0xf850('0x3c')]){_0x2e76d2[_0xf850('0x3d')]=[{'all':!![]}];}_0x2e76d2=_[_0xf850('0x3a')]({},_0x2e76d2,_0x23f217[_0xf850('0x44')]);return db['SmsTransferReport'][_0xf850('0x45')](_0x2e76d2)['then'](handleEntityNotFound(_0x25c9f1,null))[_0xf850('0x22')](respondWithResult(_0x25c9f1,null))[_0xf850('0x40')](handleError(_0x25c9f1,null));};exports['create']=function(_0xfd72cc,_0x276d50){return db[_0xf850('0x29')][_0xf850('0x46')](_0xfd72cc[_0xf850('0x47')],{})[_0xf850('0x22')](respondWithResult(_0x276d50,0xc9))[_0xf850('0x40')](handleError(_0x276d50,null));};exports[_0xf850('0x48')]=function(_0x400b87,_0x4d7721){if(_0x400b87[_0xf850('0x47')]['id']){delete _0x400b87['body']['id'];}return db['SmsTransferReport'][_0xf850('0x45')]({'where':{'id':_0x400b87[_0xf850('0x42')]['id']}})[_0xf850('0x22')](handleEntityNotFound(_0x4d7721,null))['then'](saveUpdates(_0x400b87['body'],null))[_0xf850('0x22')](respondWithResult(_0x4d7721,null))[_0xf850('0x40')](handleError(_0x4d7721,null));};exports['destroy']=function(_0x3876a0,_0xbf345){return db['SmsTransferReport'][_0xf850('0x45')]({'where':{'id':_0x3876a0[_0xf850('0x42')]['id']}})[_0xf850('0x22')](handleEntityNotFound(_0xbf345,null))['then'](removeEntity(_0xbf345,null))[_0xf850('0x40')](handleError(_0xbf345,null));};exports['describe']=function(_0x5d73ad,_0x3e2c3f){return db[_0xf850('0x29')][_0xf850('0x49')]()[_0xf850('0x22')](respondWithResult(_0x3e2c3f,null))['catch'](handleError(_0x3e2c3f,null));};
\ No newline at end of file