Built motion from commit 9e1399f3.|2.5.37
[motion2.git] / server / api / cloudProvider / cloudProvider.controller.js
index 1257d0a..9bccadd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc5ab=['count','offset','limit','Content-Range','apply','reject','save','then','destroy','error','stack','name','CloudProvider','rawAttributes','fieldName','key','model','map','query','keys','filters','intersection','fields','attributes','nolimit','order','sort','where','pick','filter','merge','type','VIRTUAL','options','includeAll','findAll','rows','catch','show','length','include','create','update','body','find','params','eml-format','rimraf','fast-json-patch','request-promise','moment','mustache','util','path','sox','ejs','lodash','squel','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xc5ab,0x19b));var _0xbc5a=function(_0x570281,_0x19e144){_0x570281=_0x570281-0x0;var _0x4c09a4=_0xc5ab[_0x570281];return _0x4c09a4;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xbc5a('0x0'));var rimraf=require(_0xbc5a('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xbc5a('0x2'));var rp=require(_0xbc5a('0x3'));var moment=require(_0xbc5a('0x4'));var BPromise=require('bluebird');var Mustache=require(_0xbc5a('0x5'));var util=require(_0xbc5a('0x6'));var path=require(_0xbc5a('0x7'));var sox=require(_0xbc5a('0x8'));var csv=require('to-csv');var ejs=require(_0xbc5a('0x9'));var fs=require('fs');var _=require(_0xbc5a('0xa'));var squel=require(_0xbc5a('0xb'));var crypto=require('crypto');var jsforce=require(_0xbc5a('0xc'));var deskjs=require(_0xbc5a('0xd'));var toCsv=require(_0xbc5a('0xe'));var querystring=require(_0xbc5a('0xf'));var Papa=require(_0xbc5a('0x10'));var Redis=require(_0xbc5a('0x11'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xbc5a('0x12'));var hardwareService=require(_0xbc5a('0x13'));var logger=require('../../config/logger')('api');var utils=require(_0xbc5a('0x14'));var config=require('../../config/environment');var licenseUtil=require(_0xbc5a('0x15'));var db=require(_0xbc5a('0x16'))['db'];function respondWithStatusCode(_0x34194d,_0x2a2364){_0x2a2364=_0x2a2364||0xcc;return function(_0x4560ff){if(_0x4560ff){return _0x34194d[_0xbc5a('0x17')](_0x2a2364);}return _0x34194d[_0xbc5a('0x18')](_0x2a2364)[_0xbc5a('0x19')]();};}function respondWithResult(_0x45850d,_0x13ef0c){_0x13ef0c=_0x13ef0c||0xc8;return function(_0x5f3afe){if(_0x5f3afe){return _0x45850d[_0xbc5a('0x18')](_0x13ef0c)[_0xbc5a('0x1a')](_0x5f3afe);}};}function respondWithFilteredResult(_0x58d65e,_0x4b62da){return function(_0x30efed){if(_0x30efed){var _0x331e8e=_0x30efed[_0xbc5a('0x1b')],_0x1238c7=_0x4b62da[_0xbc5a('0x1c')],_0x28cdc2=_0x4b62da[_0xbc5a('0x1c')]+_0x4b62da[_0xbc5a('0x1d')],_0x17a5e4;if(_0x28cdc2>=_0x331e8e){_0x28cdc2=_0x331e8e;_0x17a5e4=0xc8;}else{_0x17a5e4=0xce;}_0x58d65e['status'](_0x17a5e4);return _0x58d65e['set'](_0xbc5a('0x1e'),_0x1238c7+'-'+_0x28cdc2+'/'+_0x331e8e)[_0xbc5a('0x1a')](_0x30efed);}return null;};}function patchUpdates(_0x5d9376){return function(_0x2be95c){try{jsonpatch[_0xbc5a('0x1f')](_0x2be95c,_0x5d9376,!![]);}catch(_0x4f791c){return BPromise[_0xbc5a('0x20')](_0x4f791c);}return _0x2be95c[_0xbc5a('0x21')]();};}function saveUpdates(_0x5db1bd,_0x5d51d8){return function(_0x30642f){if(_0x30642f){return _0x30642f['update'](_0x5db1bd)[_0xbc5a('0x22')](function(_0x2a1bcf){return _0x2a1bcf;});}return null;};}function removeEntity(_0x2c5f73,_0x4a4632){return function(_0x250f9c){if(_0x250f9c){return _0x250f9c[_0xbc5a('0x23')]()['then'](function(){_0x2c5f73[_0xbc5a('0x18')](0xcc)[_0xbc5a('0x19')]();});}};}function handleEntityNotFound(_0xda4ae1,_0x181547){return function(_0x1d9dac){if(!_0x1d9dac){_0xda4ae1[_0xbc5a('0x17')](0x194);}return _0x1d9dac;};}function handleError(_0x165efe,_0x5b1328){_0x5b1328=_0x5b1328||0x1f4;return function(_0x39201c){logger[_0xbc5a('0x24')](_0x39201c[_0xbc5a('0x25')]);if(_0x39201c[_0xbc5a('0x26')]){delete _0x39201c[_0xbc5a('0x26')];}_0x165efe[_0xbc5a('0x18')](_0x5b1328)['send'](_0x39201c);};}exports['index']=function(_0x1bc88f,_0x23a0ef){var _0x4109ca={},_0x246bc4={},_0x12c84f={'count':0x0,'rows':[]};var _0x25bb21=_['map'](db[_0xbc5a('0x27')][_0xbc5a('0x28')],function(_0x2ebf9c){return{'name':_0x2ebf9c[_0xbc5a('0x29')],'type':_0x2ebf9c['type'][_0xbc5a('0x2a')]};});_0x246bc4[_0xbc5a('0x2b')]=_[_0xbc5a('0x2c')](_0x25bb21,_0xbc5a('0x26'));_0x246bc4[_0xbc5a('0x2d')]=_[_0xbc5a('0x2e')](_0x1bc88f[_0xbc5a('0x2d')]);_0x246bc4[_0xbc5a('0x2f')]=_[_0xbc5a('0x30')](_0x246bc4[_0xbc5a('0x2b')],_0x246bc4[_0xbc5a('0x2d')]);_0x4109ca['attributes']=_[_0xbc5a('0x30')](_0x246bc4[_0xbc5a('0x2b')],qs[_0xbc5a('0x31')](_0x1bc88f[_0xbc5a('0x2d')][_0xbc5a('0x31')]));_0x4109ca['attributes']=_0x4109ca['attributes']['length']?_0x4109ca[_0xbc5a('0x32')]:_0x246bc4[_0xbc5a('0x2b')];if(!_0x1bc88f[_0xbc5a('0x2d')]['hasOwnProperty'](_0xbc5a('0x33'))){_0x4109ca['limit']=qs[_0xbc5a('0x1d')](_0x1bc88f[_0xbc5a('0x2d')][_0xbc5a('0x1d')]);_0x4109ca[_0xbc5a('0x1c')]=qs[_0xbc5a('0x1c')](_0x1bc88f['query'][_0xbc5a('0x1c')]);}_0x4109ca[_0xbc5a('0x34')]=qs[_0xbc5a('0x35')](_0x1bc88f['query'][_0xbc5a('0x35')]);_0x4109ca[_0xbc5a('0x36')]=qs['filters'](_[_0xbc5a('0x37')](_0x1bc88f['query'],_0x246bc4['filters']),_0x25bb21);if(_0x1bc88f[_0xbc5a('0x2d')][_0xbc5a('0x38')]){_0x4109ca[_0xbc5a('0x36')]=_[_0xbc5a('0x39')](_0x4109ca[_0xbc5a('0x36')],{'$or':_['map'](_0x25bb21,function(_0x509306){if(_0x509306[_0xbc5a('0x3a')]!==_0xbc5a('0x3b')){var _0x3c38ee={};_0x3c38ee[_0x509306[_0xbc5a('0x26')]]={'$like':'%'+_0x1bc88f[_0xbc5a('0x2d')][_0xbc5a('0x38')]+'%'};return _0x3c38ee;}})});}_0x4109ca=_['merge']({},_0x4109ca,_0x1bc88f[_0xbc5a('0x3c')]);var _0x2e3c49={'where':_0x4109ca['where']};return db[_0xbc5a('0x27')][_0xbc5a('0x1b')](_0x2e3c49)[_0xbc5a('0x22')](function(_0x33ac24){_0x12c84f[_0xbc5a('0x1b')]=_0x33ac24;if(_0x1bc88f[_0xbc5a('0x2d')][_0xbc5a('0x3d')]){_0x4109ca['include']=[{'all':!![]}];}return db['CloudProvider'][_0xbc5a('0x3e')](_0x4109ca);})[_0xbc5a('0x22')](function(_0x553e94){_0x12c84f[_0xbc5a('0x3f')]=_0x553e94;return _0x12c84f;})[_0xbc5a('0x22')](respondWithFilteredResult(_0x23a0ef,_0x4109ca))[_0xbc5a('0x40')](handleError(_0x23a0ef,null));};exports[_0xbc5a('0x41')]=function(_0x5dc995,_0x1b48e7){var _0x59e549={'raw':!![],'where':{'id':_0x5dc995['params']['id']}},_0x48631c={};_0x48631c['model']=_['keys'](db[_0xbc5a('0x27')][_0xbc5a('0x28')]);_0x48631c[_0xbc5a('0x2d')]=_[_0xbc5a('0x2e')](_0x5dc995[_0xbc5a('0x2d')]);_0x48631c[_0xbc5a('0x2f')]=_[_0xbc5a('0x30')](_0x48631c[_0xbc5a('0x2b')],_0x48631c[_0xbc5a('0x2d')]);_0x59e549['attributes']=_['intersection'](_0x48631c['model'],qs[_0xbc5a('0x31')](_0x5dc995[_0xbc5a('0x2d')][_0xbc5a('0x31')]));_0x59e549[_0xbc5a('0x32')]=_0x59e549[_0xbc5a('0x32')][_0xbc5a('0x42')]?_0x59e549[_0xbc5a('0x32')]:_0x48631c[_0xbc5a('0x2b')];if(_0x5dc995[_0xbc5a('0x2d')][_0xbc5a('0x3d')]){_0x59e549[_0xbc5a('0x43')]=[{'all':!![]}];}_0x59e549=_[_0xbc5a('0x39')]({},_0x59e549,_0x5dc995[_0xbc5a('0x3c')]);return db[_0xbc5a('0x27')]['find'](_0x59e549)[_0xbc5a('0x22')](handleEntityNotFound(_0x1b48e7,null))[_0xbc5a('0x22')](respondWithResult(_0x1b48e7,null))[_0xbc5a('0x40')](handleError(_0x1b48e7,null));};exports[_0xbc5a('0x44')]=function(_0x5c9465,_0x6f886e){return db[_0xbc5a('0x27')][_0xbc5a('0x44')](_0x5c9465['body'],{})['then'](respondWithResult(_0x6f886e,0xc9))['catch'](handleError(_0x6f886e,null));};exports[_0xbc5a('0x45')]=function(_0x10109e,_0x4546a9){if(_0x10109e[_0xbc5a('0x46')]['id']){delete _0x10109e[_0xbc5a('0x46')]['id'];}return db[_0xbc5a('0x27')][_0xbc5a('0x47')]({'where':{'id':_0x10109e[_0xbc5a('0x48')]['id']}})['then'](handleEntityNotFound(_0x4546a9,null))[_0xbc5a('0x22')](saveUpdates(_0x10109e[_0xbc5a('0x46')],null))[_0xbc5a('0x22')](respondWithResult(_0x4546a9,null))[_0xbc5a('0x40')](handleError(_0x4546a9,null));};exports[_0xbc5a('0x23')]=function(_0x4a52f5,_0x4c410b){return db['CloudProvider'][_0xbc5a('0x47')]({'where':{'id':_0x4a52f5[_0xbc5a('0x48')]['id']}})['then'](handleEntityNotFound(_0x4c410b,null))[_0xbc5a('0x22')](removeEntity(_0x4c410b,null))['catch'](handleError(_0x4c410b,null));};
\ No newline at end of file
+var _0x0b0e=['hasOwnProperty','nolimit','order','sort','filters','filter','merge','where','VIRTUAL','options','count','includeAll','findAll','rows','catch','show','include','find','create','body','params','eml-format','zip-dir','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','end','status','undefined','offset','limit','set','json','apply','reject','save','then','destroy','error','stack','name','index','map','CloudProvider','rawAttributes','fieldName','type','query','keys','intersection','model','attributes','fields','length'];(function(_0x42d903,_0xbc931d){var _0x7406c=function(_0x44052b){while(--_0x44052b){_0x42d903['push'](_0x42d903['shift']());}};_0x7406c(++_0xbc931d);}(_0x0b0e,0x187));var _0xe0b0=function(_0x1694f5,_0x49b7c3){_0x1694f5=_0x1694f5-0x0;var _0x5b4321=_0x0b0e[_0x1694f5];return _0x5b4321;};'use strict';var emlformat=require(_0xe0b0('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xe0b0('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0xe0b0('0x2'));var moment=require(_0xe0b0('0x3'));var BPromise=require(_0xe0b0('0x4'));var Mustache=require(_0xe0b0('0x5'));var util=require(_0xe0b0('0x6'));var path=require(_0xe0b0('0x7'));var sox=require(_0xe0b0('0x8'));var csv=require(_0xe0b0('0x9'));var ejs=require(_0xe0b0('0xa'));var fs=require('fs');var fs_extra=require(_0xe0b0('0xb'));var _=require(_0xe0b0('0xc'));var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0xe0b0('0xd'));var deskjs=require(_0xe0b0('0xe'));var toCsv=require(_0xe0b0('0x9'));var querystring=require(_0xe0b0('0xf'));var Papa=require('papaparse');var Redis=require(_0xe0b0('0x10'));var authService=require(_0xe0b0('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0xe0b0('0x12'));var hardwareService=require(_0xe0b0('0x13'));var logger=require('../../config/logger')(_0xe0b0('0x14'));var utils=require(_0xe0b0('0x15'));var config=require(_0xe0b0('0x16'));var licenseUtil=require('../../config/license/util');var db=require(_0xe0b0('0x17'))['db'];function respondWithStatusCode(_0x1c358a,_0x3cc19a){_0x3cc19a=_0x3cc19a||0xcc;return function(_0x45f914){if(_0x45f914){return _0x1c358a[_0xe0b0('0x18')](_0x3cc19a);}return _0x1c358a['status'](_0x3cc19a)[_0xe0b0('0x19')]();};}function respondWithResult(_0x154de6,_0x743318){_0x743318=_0x743318||0xc8;return function(_0x24babd){if(_0x24babd){return _0x154de6[_0xe0b0('0x1a')](_0x743318)['json'](_0x24babd);}};}function respondWithFilteredResult(_0x41a7e2,_0x5adb01){return function(_0x35cb40){if(_0x35cb40){var _0xadee6e=typeof _0x5adb01['offset']===_0xe0b0('0x1b')&&typeof _0x5adb01['limit']===_0xe0b0('0x1b');var _0x100204=_0x35cb40['count'];var _0x54a3eb=_0xadee6e?0x0:_0x5adb01[_0xe0b0('0x1c')];var _0x50a441=_0xadee6e?_0x35cb40['count']:_0x5adb01['offset']+_0x5adb01[_0xe0b0('0x1d')];var _0x50fa4a;if(_0x50a441>=_0x100204){_0x50a441=_0x100204;_0x50fa4a=0xc8;}else{_0x50fa4a=0xce;}_0x41a7e2['status'](_0x50fa4a);return _0x41a7e2[_0xe0b0('0x1e')]('Content-Range',_0x54a3eb+'-'+_0x50a441+'/'+_0x100204)[_0xe0b0('0x1f')](_0x35cb40);}return null;};}function patchUpdates(_0x5dba2f){return function(_0x2c84cc){try{jsonpatch[_0xe0b0('0x20')](_0x2c84cc,_0x5dba2f,!![]);}catch(_0x3e10b3){return BPromise[_0xe0b0('0x21')](_0x3e10b3);}return _0x2c84cc[_0xe0b0('0x22')]();};}function saveUpdates(_0x58b804,_0x4cae54){return function(_0x2fa820){if(_0x2fa820){return _0x2fa820['update'](_0x58b804)[_0xe0b0('0x23')](function(_0x31b5f8){return _0x31b5f8;});}return null;};}function removeEntity(_0x513e63,_0x170ad8){return function(_0x503883){if(_0x503883){return _0x503883[_0xe0b0('0x24')]()['then'](function(){_0x513e63[_0xe0b0('0x1a')](0xcc)['end']();});}};}function handleEntityNotFound(_0x3e5c88,_0x4de537){return function(_0x4700cc){if(!_0x4700cc){_0x3e5c88['sendStatus'](0x194);}return _0x4700cc;};}function handleError(_0x3c221d,_0x5c5317){_0x5c5317=_0x5c5317||0x1f4;return function(_0x362aba){logger[_0xe0b0('0x25')](_0x362aba[_0xe0b0('0x26')]);if(_0x362aba[_0xe0b0('0x27')]){delete _0x362aba[_0xe0b0('0x27')];}_0x3c221d[_0xe0b0('0x1a')](_0x5c5317)['send'](_0x362aba);};}exports[_0xe0b0('0x28')]=function(_0x1b8aa8,_0x5b7a64){var _0x15e13b={},_0x419b1f={},_0x36d137={'count':0x0,'rows':[]};var _0x1d5759=_[_0xe0b0('0x29')](db[_0xe0b0('0x2a')][_0xe0b0('0x2b')],function(_0x4fb3b7){return{'name':_0x4fb3b7[_0xe0b0('0x2c')],'type':_0x4fb3b7[_0xe0b0('0x2d')]['key']};});_0x419b1f['model']=_[_0xe0b0('0x29')](_0x1d5759,_0xe0b0('0x27'));_0x419b1f[_0xe0b0('0x2e')]=_[_0xe0b0('0x2f')](_0x1b8aa8[_0xe0b0('0x2e')]);_0x419b1f['filters']=_[_0xe0b0('0x30')](_0x419b1f[_0xe0b0('0x31')],_0x419b1f[_0xe0b0('0x2e')]);_0x15e13b[_0xe0b0('0x32')]=_[_0xe0b0('0x30')](_0x419b1f['model'],qs[_0xe0b0('0x33')](_0x1b8aa8[_0xe0b0('0x2e')][_0xe0b0('0x33')]));_0x15e13b[_0xe0b0('0x32')]=_0x15e13b[_0xe0b0('0x32')][_0xe0b0('0x34')]?_0x15e13b[_0xe0b0('0x32')]:_0x419b1f[_0xe0b0('0x31')];if(!_0x1b8aa8[_0xe0b0('0x2e')][_0xe0b0('0x35')](_0xe0b0('0x36'))){_0x15e13b[_0xe0b0('0x1d')]=qs[_0xe0b0('0x1d')](_0x1b8aa8[_0xe0b0('0x2e')][_0xe0b0('0x1d')]);_0x15e13b['offset']=qs[_0xe0b0('0x1c')](_0x1b8aa8[_0xe0b0('0x2e')][_0xe0b0('0x1c')]);}_0x15e13b[_0xe0b0('0x37')]=qs[_0xe0b0('0x38')](_0x1b8aa8[_0xe0b0('0x2e')][_0xe0b0('0x38')]);_0x15e13b['where']=qs['filters'](_['pick'](_0x1b8aa8['query'],_0x419b1f[_0xe0b0('0x39')]),_0x1d5759);if(_0x1b8aa8[_0xe0b0('0x2e')][_0xe0b0('0x3a')]){_0x15e13b['where']=_[_0xe0b0('0x3b')](_0x15e13b[_0xe0b0('0x3c')],{'$or':_[_0xe0b0('0x29')](_0x1d5759,function(_0x297c64){if(_0x297c64['type']!==_0xe0b0('0x3d')){var _0xfbb61d={};_0xfbb61d[_0x297c64[_0xe0b0('0x27')]]={'$like':'%'+_0x1b8aa8[_0xe0b0('0x2e')][_0xe0b0('0x3a')]+'%'};return _0xfbb61d;}})});}_0x15e13b=_[_0xe0b0('0x3b')]({},_0x15e13b,_0x1b8aa8[_0xe0b0('0x3e')]);var _0x115a69={'where':_0x15e13b[_0xe0b0('0x3c')]};return db['CloudProvider'][_0xe0b0('0x3f')](_0x115a69)['then'](function(_0x34178d){_0x36d137[_0xe0b0('0x3f')]=_0x34178d;if(_0x1b8aa8[_0xe0b0('0x2e')][_0xe0b0('0x40')]){_0x15e13b['include']=[{'all':!![]}];}return db[_0xe0b0('0x2a')][_0xe0b0('0x41')](_0x15e13b);})[_0xe0b0('0x23')](function(_0x402a0e){_0x36d137[_0xe0b0('0x42')]=_0x402a0e;return _0x36d137;})[_0xe0b0('0x23')](respondWithFilteredResult(_0x5b7a64,_0x15e13b))[_0xe0b0('0x43')](handleError(_0x5b7a64,null));};exports[_0xe0b0('0x44')]=function(_0x52ffe4,_0x2aad80){var _0x309bbf={'raw':!![],'where':{'id':_0x52ffe4['params']['id']}},_0x528818={};_0x528818[_0xe0b0('0x31')]=_[_0xe0b0('0x2f')](db['CloudProvider'][_0xe0b0('0x2b')]);_0x528818[_0xe0b0('0x2e')]=_[_0xe0b0('0x2f')](_0x52ffe4[_0xe0b0('0x2e')]);_0x528818[_0xe0b0('0x39')]=_['intersection'](_0x528818['model'],_0x528818['query']);_0x309bbf[_0xe0b0('0x32')]=_[_0xe0b0('0x30')](_0x528818['model'],qs[_0xe0b0('0x33')](_0x52ffe4[_0xe0b0('0x2e')][_0xe0b0('0x33')]));_0x309bbf[_0xe0b0('0x32')]=_0x309bbf[_0xe0b0('0x32')]['length']?_0x309bbf['attributes']:_0x528818[_0xe0b0('0x31')];if(_0x52ffe4[_0xe0b0('0x2e')][_0xe0b0('0x40')]){_0x309bbf[_0xe0b0('0x45')]=[{'all':!![]}];}_0x309bbf=_[_0xe0b0('0x3b')]({},_0x309bbf,_0x52ffe4['options']);return db[_0xe0b0('0x2a')][_0xe0b0('0x46')](_0x309bbf)['then'](handleEntityNotFound(_0x2aad80,null))['then'](respondWithResult(_0x2aad80,null))['catch'](handleError(_0x2aad80,null));};exports[_0xe0b0('0x47')]=function(_0x2184d3,_0x2419ce){return db[_0xe0b0('0x2a')]['create'](_0x2184d3[_0xe0b0('0x48')],{})[_0xe0b0('0x23')](respondWithResult(_0x2419ce,0xc9))['catch'](handleError(_0x2419ce,null));};exports['update']=function(_0x2365be,_0x1bc6e0){if(_0x2365be['body']['id']){delete _0x2365be[_0xe0b0('0x48')]['id'];}return db[_0xe0b0('0x2a')]['find']({'where':{'id':_0x2365be['params']['id']}})[_0xe0b0('0x23')](handleEntityNotFound(_0x1bc6e0,null))['then'](saveUpdates(_0x2365be[_0xe0b0('0x48')],null))[_0xe0b0('0x23')](respondWithResult(_0x1bc6e0,null))[_0xe0b0('0x43')](handleError(_0x1bc6e0,null));};exports[_0xe0b0('0x24')]=function(_0x19ee71,_0xf9e694){return db['CloudProvider']['find']({'where':{'id':_0x19ee71[_0xe0b0('0x49')]['id']}})['then'](handleEntityNotFound(_0xf9e694,null))['then'](removeEntity(_0xf9e694,null))[_0xe0b0('0x43')](handleError(_0xf9e694,null));};
\ No newline at end of file