Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / api / smsTransferReport / smsTransferReport.controller.js
index e2f8f9d..b7b384b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xaf0e=['destroy','sendStatus','error','stack','name','send','index','SmsTransferReport','fieldName','key','model','query','keys','filters','intersection','attributes','fields','length','nolimit','order','where','pick','filter','merge','map','type','options','count','includeAll','include','rows','catch','params','rawAttributes','find','create','body','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','moment','mustache','util','sox','ejs','lodash','squel','crypto','desk.js','to-csv','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','status','end','json','offset','limit','apply','save','update','then'];(function(_0x5a477e,_0xaa566e){var _0x5cd6c7=function(_0x5cd6fb){while(--_0x5cd6fb){_0x5a477e['push'](_0x5a477e['shift']());}};_0x5cd6c7(++_0xaa566e);}(_0xaf0e,0x1d0));var _0xeaf0=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xaf0e[_0x14add3];return _0x4a174f;};'use strict';var pdf=require(_0xeaf0('0x0'));var emlformat=require(_0xeaf0('0x1'));var rimraf=require(_0xeaf0('0x2'));var zipdir=require(_0xeaf0('0x3'));var jsonpatch=require(_0xeaf0('0x4'));var rp=require('request-promise');var moment=require(_0xeaf0('0x5'));var BPromise=require('bluebird');var Mustache=require(_0xeaf0('0x6'));var util=require(_0xeaf0('0x7'));var path=require('path');var sox=require(_0xeaf0('0x8'));var csv=require('to-csv');var ejs=require(_0xeaf0('0x9'));var fs=require('fs');var _=require(_0xeaf0('0xa'));var squel=require(_0xeaf0('0xb'));var crypto=require(_0xeaf0('0xc'));var jsforce=require('jsforce');var deskjs=require(_0xeaf0('0xd'));var toCsv=require(_0xeaf0('0xe'));var querystring=require('querystring');var Papa=require(_0xeaf0('0xf'));var Redis=require(_0xeaf0('0x10'));var authService=require(_0xeaf0('0x11'));var qs=require(_0xeaf0('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xeaf0('0x13'));var logger=require('../../config/logger')(_0xeaf0('0x14'));var utils=require(_0xeaf0('0x15'));var config=require(_0xeaf0('0x16'));var db=require(_0xeaf0('0x17'))['db'];function respondWithStatusCode(_0x23481e,_0x2a6ed1){_0x2a6ed1=_0x2a6ed1||0xcc;return function(_0x1e3daa){if(_0x1e3daa){return _0x23481e['sendStatus'](_0x2a6ed1);}return _0x23481e[_0xeaf0('0x18')](_0x2a6ed1)[_0xeaf0('0x19')]();};}function respondWithResult(_0x2df902,_0x1e46fe){_0x1e46fe=_0x1e46fe||0xc8;return function(_0xa791d5){if(_0xa791d5){return _0x2df902[_0xeaf0('0x18')](_0x1e46fe)[_0xeaf0('0x1a')](_0xa791d5);}};}function respondWithFilteredResult(_0x1d7b41,_0x48d5cc){return function(_0x68c99f){if(_0x68c99f){var _0x484d15=_0x68c99f['count'],_0x3d6151=_0x48d5cc[_0xeaf0('0x1b')],_0x30ddcb=_0x48d5cc[_0xeaf0('0x1b')]+_0x48d5cc[_0xeaf0('0x1c')],_0x3ce2ee;if(_0x30ddcb>=_0x484d15){_0x30ddcb=_0x484d15;_0x3ce2ee=0xc8;}else{_0x3ce2ee=0xce;}_0x1d7b41[_0xeaf0('0x18')](_0x3ce2ee);return _0x1d7b41['set']('Content-Range',_0x3d6151+'-'+_0x30ddcb+'/'+_0x484d15)[_0xeaf0('0x1a')](_0x68c99f);}return null;};}function patchUpdates(_0x5057de){return function(_0x1cdd45){try{jsonpatch[_0xeaf0('0x1d')](_0x1cdd45,_0x5057de,!![]);}catch(_0x10de80){return BPromise['reject'](_0x10de80);}return _0x1cdd45[_0xeaf0('0x1e')]();};}function saveUpdates(_0x3a3294,_0x1355ea){return function(_0x438ffc){if(_0x438ffc){return _0x438ffc[_0xeaf0('0x1f')](_0x3a3294)[_0xeaf0('0x20')](function(_0x4f8c15){return _0x4f8c15;});}return null;};}function removeEntity(_0x1ccbd3,_0x582375){return function(_0x5d766f){if(_0x5d766f){return _0x5d766f[_0xeaf0('0x21')]()[_0xeaf0('0x20')](function(){_0x1ccbd3['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x5a0fe9,_0x20fee5){return function(_0x4a4ede){if(!_0x4a4ede){_0x5a0fe9[_0xeaf0('0x22')](0x194);}return _0x4a4ede;};}function handleError(_0x2fd76e,_0x4946e4){_0x4946e4=_0x4946e4||0x1f4;return function(_0xe52578){logger[_0xeaf0('0x23')](_0xe52578[_0xeaf0('0x24')]);if(_0xe52578[_0xeaf0('0x25')]){delete _0xe52578['name'];}_0x2fd76e['status'](_0x4946e4)[_0xeaf0('0x26')](_0xe52578);};}exports[_0xeaf0('0x27')]=function(_0xe74b77,_0x195576){var _0x14822a={},_0x5eedc={},_0x57f2cd={'count':0x0,'rows':[]};var _0x4373b5=_['map'](db[_0xeaf0('0x28')]['rawAttributes'],function(_0x437ae1){return{'name':_0x437ae1[_0xeaf0('0x29')],'type':_0x437ae1['type'][_0xeaf0('0x2a')]};});_0x5eedc[_0xeaf0('0x2b')]=_['map'](_0x4373b5,_0xeaf0('0x25'));_0x5eedc[_0xeaf0('0x2c')]=_[_0xeaf0('0x2d')](_0xe74b77['query']);_0x5eedc[_0xeaf0('0x2e')]=_[_0xeaf0('0x2f')](_0x5eedc[_0xeaf0('0x2b')],_0x5eedc[_0xeaf0('0x2c')]);_0x14822a[_0xeaf0('0x30')]=_[_0xeaf0('0x2f')](_0x5eedc[_0xeaf0('0x2b')],qs[_0xeaf0('0x31')](_0xe74b77['query']['fields']));_0x14822a[_0xeaf0('0x30')]=_0x14822a['attributes'][_0xeaf0('0x32')]?_0x14822a[_0xeaf0('0x30')]:_0x5eedc[_0xeaf0('0x2b')];if(!_0xe74b77[_0xeaf0('0x2c')]['hasOwnProperty'](_0xeaf0('0x33'))){_0x14822a[_0xeaf0('0x1c')]=qs[_0xeaf0('0x1c')](_0xe74b77[_0xeaf0('0x2c')][_0xeaf0('0x1c')]);_0x14822a['offset']=qs['offset'](_0xe74b77[_0xeaf0('0x2c')]['offset']);}_0x14822a[_0xeaf0('0x34')]=qs['sort'](_0xe74b77[_0xeaf0('0x2c')]['sort']);_0x14822a[_0xeaf0('0x35')]=qs['filters'](_[_0xeaf0('0x36')](_0xe74b77['query'],_0x5eedc[_0xeaf0('0x2e')]));if(_0xe74b77['query'][_0xeaf0('0x37')]){_0x14822a[_0xeaf0('0x35')]=_[_0xeaf0('0x38')](_0x14822a[_0xeaf0('0x35')],{'$or':_[_0xeaf0('0x39')](_0x4373b5,function(_0x51f14c){if(_0x51f14c[_0xeaf0('0x3a')]!=='VIRTUAL'){var _0x42666a={};_0x42666a[_0x51f14c['name']]={'$like':'%'+_0xe74b77[_0xeaf0('0x2c')]['filter']+'%'};return _0x42666a;}})});}_0x14822a=_[_0xeaf0('0x38')]({},_0x14822a,_0xe74b77[_0xeaf0('0x3b')]);var _0x5b830d={'where':_0x14822a[_0xeaf0('0x35')]};return db[_0xeaf0('0x28')][_0xeaf0('0x3c')](_0x5b830d)[_0xeaf0('0x20')](function(_0xbb5d3c){_0x57f2cd['count']=_0xbb5d3c;if(_0xe74b77[_0xeaf0('0x2c')][_0xeaf0('0x3d')]){_0x14822a[_0xeaf0('0x3e')]=[{'all':!![]}];}return db[_0xeaf0('0x28')]['findAll'](_0x14822a);})[_0xeaf0('0x20')](function(_0x5e678a){_0x57f2cd[_0xeaf0('0x3f')]=_0x5e678a;return _0x57f2cd;})[_0xeaf0('0x20')](respondWithFilteredResult(_0x195576,_0x14822a))[_0xeaf0('0x40')](handleError(_0x195576,null));};exports['show']=function(_0x5648bc,_0x1699e8){var _0x2b95bb={'raw':!![],'where':{'id':_0x5648bc[_0xeaf0('0x41')]['id']}},_0x9666ae={};_0x9666ae[_0xeaf0('0x2b')]=_[_0xeaf0('0x2d')](db['SmsTransferReport'][_0xeaf0('0x42')]);_0x9666ae['query']=_[_0xeaf0('0x2d')](_0x5648bc[_0xeaf0('0x2c')]);_0x9666ae[_0xeaf0('0x2e')]=_[_0xeaf0('0x2f')](_0x9666ae['model'],_0x9666ae[_0xeaf0('0x2c')]);_0x2b95bb[_0xeaf0('0x30')]=_['intersection'](_0x9666ae[_0xeaf0('0x2b')],qs[_0xeaf0('0x31')](_0x5648bc['query'][_0xeaf0('0x31')]));_0x2b95bb[_0xeaf0('0x30')]=_0x2b95bb[_0xeaf0('0x30')][_0xeaf0('0x32')]?_0x2b95bb['attributes']:_0x9666ae['model'];if(_0x5648bc[_0xeaf0('0x2c')]['includeAll']){_0x2b95bb[_0xeaf0('0x3e')]=[{'all':!![]}];}_0x2b95bb=_['merge']({},_0x2b95bb,_0x5648bc[_0xeaf0('0x3b')]);return db[_0xeaf0('0x28')][_0xeaf0('0x43')](_0x2b95bb)[_0xeaf0('0x20')](handleEntityNotFound(_0x1699e8,null))[_0xeaf0('0x20')](respondWithResult(_0x1699e8,null))[_0xeaf0('0x40')](handleError(_0x1699e8,null));};exports[_0xeaf0('0x44')]=function(_0x28c331,_0x1e25dc){return db[_0xeaf0('0x28')][_0xeaf0('0x44')](_0x28c331['body'],{})['then'](respondWithResult(_0x1e25dc,0xc9))['catch'](handleError(_0x1e25dc,null));};exports[_0xeaf0('0x1f')]=function(_0x529a34,_0x312fcf){if(_0x529a34[_0xeaf0('0x45')]['id']){delete _0x529a34['body']['id'];}return db[_0xeaf0('0x28')]['find']({'where':{'id':_0x529a34['params']['id']}})[_0xeaf0('0x20')](handleEntityNotFound(_0x312fcf,null))['then'](saveUpdates(_0x529a34[_0xeaf0('0x45')],null))['then'](respondWithResult(_0x312fcf,null))[_0xeaf0('0x40')](handleError(_0x312fcf,null));};exports[_0xeaf0('0x21')]=function(_0x56552a,_0x56c2d6){return db[_0xeaf0('0x28')]['find']({'where':{'id':_0x56552a[_0xeaf0('0x41')]['id']}})[_0xeaf0('0x20')](handleEntityNotFound(_0x56c2d6,null))['then'](removeEntity(_0x56c2d6,null))['catch'](handleError(_0x56c2d6,null));};exports[_0xeaf0('0x46')]=function(_0x401cb6,_0x2b66c3){return db[_0xeaf0('0x28')]['describe']()[_0xeaf0('0x20')](respondWithResult(_0x2b66c3,null))[_0xeaf0('0x40')](handleError(_0x2b66c3,null));};
\ No newline at end of file
+var _0xf5d6=['length','nolimit','order','sort','filter','where','merge','options','includeAll','include','findAll','rows','catch','show','params','rawAttributes','intersection','create','body','find','describe','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','ejs','fs-extra','squel','crypto','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','json','undefined','limit','count','offset','Content-Range','reject','save','update','then','destroy','name','index','map','SmsTransferReport','fieldName','key','model','keys','query','filters','attributes','fields'];(function(_0xea343d,_0x311197){var _0x2c6e9c=function(_0x454bd6){while(--_0x454bd6){_0xea343d['push'](_0xea343d['shift']());}};_0x2c6e9c(++_0x311197);}(_0xf5d6,0xa7));var _0x6f5d=function(_0x134454,_0x1ddf8d){_0x134454=_0x134454-0x0;var _0x4aa66a=_0xf5d6[_0x134454];return _0x4aa66a;};'use strict';var emlformat=require(_0x6f5d('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x6f5d('0x1'));var jsonpatch=require(_0x6f5d('0x2'));var rp=require(_0x6f5d('0x3'));var moment=require(_0x6f5d('0x4'));var BPromise=require(_0x6f5d('0x5'));var Mustache=require('mustache');var util=require(_0x6f5d('0x6'));var path=require(_0x6f5d('0x7'));var sox=require(_0x6f5d('0x8'));var csv=require('to-csv');var ejs=require(_0x6f5d('0x9'));var fs=require('fs');var fs_extra=require(_0x6f5d('0xa'));var _=require('lodash');var squel=require(_0x6f5d('0xb'));var crypto=require(_0x6f5d('0xc'));var jsforce=require('jsforce');var deskjs=require(_0x6f5d('0xd'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x6f5d('0xe'));var Redis=require(_0x6f5d('0xf'));var authService=require(_0x6f5d('0x10'));var qs=require(_0x6f5d('0x11'));var as=require(_0x6f5d('0x12'));var hardwareService=require(_0x6f5d('0x13'));var logger=require(_0x6f5d('0x14'))(_0x6f5d('0x15'));var utils=require(_0x6f5d('0x16'));var config=require(_0x6f5d('0x17'));var licenseUtil=require(_0x6f5d('0x18'));var db=require(_0x6f5d('0x19'))['db'];function respondWithStatusCode(_0x8f282b,_0x5d7ae2){_0x5d7ae2=_0x5d7ae2||0xcc;return function(_0x22584c){if(_0x22584c){return _0x8f282b[_0x6f5d('0x1a')](_0x5d7ae2);}return _0x8f282b['status'](_0x5d7ae2)[_0x6f5d('0x1b')]();};}function respondWithResult(_0x314a28,_0x30000b){_0x30000b=_0x30000b||0xc8;return function(_0x2765b1){if(_0x2765b1){return _0x314a28[_0x6f5d('0x1c')](_0x30000b)[_0x6f5d('0x1d')](_0x2765b1);}};}function respondWithFilteredResult(_0x1966d7,_0x49ec76){return function(_0x153153){if(_0x153153){var _0x598634=typeof _0x49ec76['offset']===_0x6f5d('0x1e')&&typeof _0x49ec76[_0x6f5d('0x1f')]===_0x6f5d('0x1e');var _0x4e7030=_0x153153[_0x6f5d('0x20')];var _0x891eb7=_0x598634?0x0:_0x49ec76[_0x6f5d('0x21')];var _0x1a5d58=_0x598634?_0x153153[_0x6f5d('0x20')]:_0x49ec76[_0x6f5d('0x21')]+_0x49ec76[_0x6f5d('0x1f')];var _0xecbd98;if(_0x1a5d58>=_0x4e7030){_0x1a5d58=_0x4e7030;_0xecbd98=0xc8;}else{_0xecbd98=0xce;}_0x1966d7[_0x6f5d('0x1c')](_0xecbd98);return _0x1966d7['set'](_0x6f5d('0x22'),_0x891eb7+'-'+_0x1a5d58+'/'+_0x4e7030)[_0x6f5d('0x1d')](_0x153153);}return null;};}function patchUpdates(_0x47d88f){return function(_0x283b54){try{jsonpatch['apply'](_0x283b54,_0x47d88f,!![]);}catch(_0x9d5be2){return BPromise[_0x6f5d('0x23')](_0x9d5be2);}return _0x283b54[_0x6f5d('0x24')]();};}function saveUpdates(_0x99ebe8,_0x49fd94){return function(_0x589f62){if(_0x589f62){return _0x589f62[_0x6f5d('0x25')](_0x99ebe8)[_0x6f5d('0x26')](function(_0xc70a62){return _0xc70a62;});}return null;};}function removeEntity(_0x1aad68,_0x2500e7){return function(_0x54dd73){if(_0x54dd73){return _0x54dd73[_0x6f5d('0x27')]()[_0x6f5d('0x26')](function(){_0x1aad68[_0x6f5d('0x1c')](0xcc)[_0x6f5d('0x1b')]();});}};}function handleEntityNotFound(_0x2db7fe,_0x1e4252){return function(_0x4c2fc1){if(!_0x4c2fc1){_0x2db7fe[_0x6f5d('0x1a')](0x194);}return _0x4c2fc1;};}function handleError(_0x171cfd,_0x16608c){_0x16608c=_0x16608c||0x1f4;return function(_0x3754fd){logger['error'](_0x3754fd['stack']);if(_0x3754fd[_0x6f5d('0x28')]){delete _0x3754fd[_0x6f5d('0x28')];}_0x171cfd[_0x6f5d('0x1c')](_0x16608c)['send'](_0x3754fd);};}exports[_0x6f5d('0x29')]=function(_0x563bfc,_0x4ee77b){var _0xb9af2c={},_0x492121={},_0x3688f={'count':0x0,'rows':[]};var _0x1d6add=_[_0x6f5d('0x2a')](db[_0x6f5d('0x2b')]['rawAttributes'],function(_0x43bf9f){return{'name':_0x43bf9f[_0x6f5d('0x2c')],'type':_0x43bf9f['type'][_0x6f5d('0x2d')]};});_0x492121[_0x6f5d('0x2e')]=_['map'](_0x1d6add,_0x6f5d('0x28'));_0x492121['query']=_[_0x6f5d('0x2f')](_0x563bfc[_0x6f5d('0x30')]);_0x492121[_0x6f5d('0x31')]=_['intersection'](_0x492121[_0x6f5d('0x2e')],_0x492121[_0x6f5d('0x30')]);_0xb9af2c[_0x6f5d('0x32')]=_['intersection'](_0x492121[_0x6f5d('0x2e')],qs[_0x6f5d('0x33')](_0x563bfc[_0x6f5d('0x30')][_0x6f5d('0x33')]));_0xb9af2c[_0x6f5d('0x32')]=_0xb9af2c[_0x6f5d('0x32')][_0x6f5d('0x34')]?_0xb9af2c[_0x6f5d('0x32')]:_0x492121['model'];if(!_0x563bfc['query']['hasOwnProperty'](_0x6f5d('0x35'))){_0xb9af2c[_0x6f5d('0x1f')]=qs[_0x6f5d('0x1f')](_0x563bfc[_0x6f5d('0x30')]['limit']);_0xb9af2c[_0x6f5d('0x21')]=qs[_0x6f5d('0x21')](_0x563bfc[_0x6f5d('0x30')][_0x6f5d('0x21')]);}_0xb9af2c[_0x6f5d('0x36')]=qs['sort'](_0x563bfc['query'][_0x6f5d('0x37')]);_0xb9af2c['where']=qs[_0x6f5d('0x31')](_['pick'](_0x563bfc[_0x6f5d('0x30')],_0x492121[_0x6f5d('0x31')]),_0x1d6add);if(_0x563bfc[_0x6f5d('0x30')][_0x6f5d('0x38')]){_0xb9af2c[_0x6f5d('0x39')]=_[_0x6f5d('0x3a')](_0xb9af2c['where'],{'$or':_[_0x6f5d('0x2a')](_0x1d6add,function(_0x526773){if(_0x526773['type']!=='VIRTUAL'){var _0x322980={};_0x322980[_0x526773['name']]={'$like':'%'+_0x563bfc[_0x6f5d('0x30')][_0x6f5d('0x38')]+'%'};return _0x322980;}})});}_0xb9af2c=_[_0x6f5d('0x3a')]({},_0xb9af2c,_0x563bfc[_0x6f5d('0x3b')]);var _0xd1d987={'where':_0xb9af2c[_0x6f5d('0x39')]};return db[_0x6f5d('0x2b')]['count'](_0xd1d987)[_0x6f5d('0x26')](function(_0x4353c0){_0x3688f[_0x6f5d('0x20')]=_0x4353c0;if(_0x563bfc['query'][_0x6f5d('0x3c')]){_0xb9af2c[_0x6f5d('0x3d')]=[{'all':!![]}];}return db[_0x6f5d('0x2b')][_0x6f5d('0x3e')](_0xb9af2c);})['then'](function(_0x42d2c9){_0x3688f[_0x6f5d('0x3f')]=_0x42d2c9;return _0x3688f;})[_0x6f5d('0x26')](respondWithFilteredResult(_0x4ee77b,_0xb9af2c))[_0x6f5d('0x40')](handleError(_0x4ee77b,null));};exports[_0x6f5d('0x41')]=function(_0x3c94b2,_0x52cab9){var _0x1828a0={'raw':!![],'where':{'id':_0x3c94b2[_0x6f5d('0x42')]['id']}},_0x42b171={};_0x42b171[_0x6f5d('0x2e')]=_[_0x6f5d('0x2f')](db['SmsTransferReport'][_0x6f5d('0x43')]);_0x42b171['query']=_[_0x6f5d('0x2f')](_0x3c94b2[_0x6f5d('0x30')]);_0x42b171[_0x6f5d('0x31')]=_[_0x6f5d('0x44')](_0x42b171['model'],_0x42b171[_0x6f5d('0x30')]);_0x1828a0['attributes']=_[_0x6f5d('0x44')](_0x42b171[_0x6f5d('0x2e')],qs['fields'](_0x3c94b2[_0x6f5d('0x30')][_0x6f5d('0x33')]));_0x1828a0['attributes']=_0x1828a0[_0x6f5d('0x32')][_0x6f5d('0x34')]?_0x1828a0[_0x6f5d('0x32')]:_0x42b171[_0x6f5d('0x2e')];if(_0x3c94b2[_0x6f5d('0x30')][_0x6f5d('0x3c')]){_0x1828a0[_0x6f5d('0x3d')]=[{'all':!![]}];}_0x1828a0=_[_0x6f5d('0x3a')]({},_0x1828a0,_0x3c94b2[_0x6f5d('0x3b')]);return db[_0x6f5d('0x2b')]['find'](_0x1828a0)[_0x6f5d('0x26')](handleEntityNotFound(_0x52cab9,null))[_0x6f5d('0x26')](respondWithResult(_0x52cab9,null))[_0x6f5d('0x40')](handleError(_0x52cab9,null));};exports[_0x6f5d('0x45')]=function(_0x176f81,_0x615fc7){return db[_0x6f5d('0x2b')]['create'](_0x176f81[_0x6f5d('0x46')],{})['then'](respondWithResult(_0x615fc7,0xc9))[_0x6f5d('0x40')](handleError(_0x615fc7,null));};exports[_0x6f5d('0x25')]=function(_0x46c017,_0x2d5d40){if(_0x46c017[_0x6f5d('0x46')]['id']){delete _0x46c017['body']['id'];}return db[_0x6f5d('0x2b')][_0x6f5d('0x47')]({'where':{'id':_0x46c017[_0x6f5d('0x42')]['id']}})['then'](handleEntityNotFound(_0x2d5d40,null))[_0x6f5d('0x26')](saveUpdates(_0x46c017[_0x6f5d('0x46')],null))['then'](respondWithResult(_0x2d5d40,null))['catch'](handleError(_0x2d5d40,null));};exports[_0x6f5d('0x27')]=function(_0xd0354f,_0x58d8fd){return db[_0x6f5d('0x2b')]['find']({'where':{'id':_0xd0354f[_0x6f5d('0x42')]['id']}})[_0x6f5d('0x26')](handleEntityNotFound(_0x58d8fd,null))['then'](removeEntity(_0x58d8fd,null))[_0x6f5d('0x40')](handleError(_0x58d8fd,null));};exports[_0x6f5d('0x48')]=function(_0x16e415,_0xaed1dd){return db[_0x6f5d('0x2b')]['describe']()[_0x6f5d('0x26')](respondWithResult(_0xaed1dd,null))['catch'](handleError(_0xaed1dd,null));};
\ No newline at end of file