Built motion from commit 64a6f4bc.|2.6.26
[motion2.git] / server / api / analyticTreeReport / analyticTreeReport.controller.js
index 5dfe9b3..b5fda19 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf7cf=['catch','show','params','rawAttributes','intersection','find','create','body','eml-format','request-promise','moment','bluebird','mustache','util','to-csv','ejs','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','sendStatus','end','status','json','offset','undefined','count','limit','Content-Range','apply','save','update','then','destroy','error','name','send','index','map','AnalyticTreeReport','fieldName','type','model','query','keys','filters','attributes','fields','length','nolimit','order','sort','pick','filter','where','merge','options','includeAll','include','findAll'];(function(_0x28a278,_0x34c998){var _0x5379aa=function(_0x330bb2){while(--_0x330bb2){_0x28a278['push'](_0x28a278['shift']());}};_0x5379aa(++_0x34c998);}(_0xf7cf,0x120));var _0xff7c=function(_0x3feccc,_0x5534c7){_0x3feccc=_0x3feccc-0x0;var _0x2c13b5=_0xf7cf[_0x3feccc];return _0x2c13b5;};'use strict';var emlformat=require(_0xff7c('0x0'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0xff7c('0x1'));var moment=require(_0xff7c('0x2'));var BPromise=require(_0xff7c('0x3'));var Mustache=require(_0xff7c('0x4'));var util=require(_0xff7c('0x5'));var path=require('path');var sox=require('sox');var csv=require(_0xff7c('0x6'));var ejs=require(_0xff7c('0x7'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xff7c('0x8'));var squel=require(_0xff7c('0x9'));var crypto=require(_0xff7c('0xa'));var jsforce=require('jsforce');var deskjs=require(_0xff7c('0xb'));var toCsv=require('to-csv');var querystring=require(_0xff7c('0xc'));var Papa=require(_0xff7c('0xd'));var Redis=require(_0xff7c('0xe'));var authService=require(_0xff7c('0xf'));var qs=require(_0xff7c('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xff7c('0x11'));var logger=require(_0xff7c('0x12'))('api');var utils=require(_0xff7c('0x13'));var config=require(_0xff7c('0x14'));var licenseUtil=require(_0xff7c('0x15'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x3051f1,_0x336f79){_0x336f79=_0x336f79||0xcc;return function(_0x394d4a){if(_0x394d4a){return _0x3051f1[_0xff7c('0x16')](_0x336f79);}return _0x3051f1['status'](_0x336f79)[_0xff7c('0x17')]();};}function respondWithResult(_0x1bb108,_0x79aff4){_0x79aff4=_0x79aff4||0xc8;return function(_0xbf82ab){if(_0xbf82ab){return _0x1bb108[_0xff7c('0x18')](_0x79aff4)[_0xff7c('0x19')](_0xbf82ab);}};}function respondWithFilteredResult(_0x2f5862,_0x300e12){return function(_0x4f2ae7){if(_0x4f2ae7){var _0x92891f=typeof _0x300e12[_0xff7c('0x1a')]===_0xff7c('0x1b')&&typeof _0x300e12['limit']===_0xff7c('0x1b');var _0x14a18f=_0x4f2ae7[_0xff7c('0x1c')];var _0xe00ea3=_0x92891f?0x0:_0x300e12[_0xff7c('0x1a')];var _0x32383e=_0x92891f?_0x4f2ae7[_0xff7c('0x1c')]:_0x300e12['offset']+_0x300e12[_0xff7c('0x1d')];var _0x21b55d;if(_0x32383e>=_0x14a18f){_0x32383e=_0x14a18f;_0x21b55d=0xc8;}else{_0x21b55d=0xce;}_0x2f5862[_0xff7c('0x18')](_0x21b55d);return _0x2f5862['set'](_0xff7c('0x1e'),_0xe00ea3+'-'+_0x32383e+'/'+_0x14a18f)[_0xff7c('0x19')](_0x4f2ae7);}return null;};}function patchUpdates(_0x1fae25){return function(_0xd32941){try{jsonpatch[_0xff7c('0x1f')](_0xd32941,_0x1fae25,!![]);}catch(_0x15b24e){return BPromise['reject'](_0x15b24e);}return _0xd32941[_0xff7c('0x20')]();};}function saveUpdates(_0x5bc7c4,_0xe18fd){return function(_0x2e545f){if(_0x2e545f){return _0x2e545f[_0xff7c('0x21')](_0x5bc7c4)[_0xff7c('0x22')](function(_0x7b9b10){return _0x7b9b10;});}return null;};}function removeEntity(_0x142f55,_0x1cbae6){return function(_0x59e98e){if(_0x59e98e){return _0x59e98e[_0xff7c('0x23')]()['then'](function(){_0x142f55[_0xff7c('0x18')](0xcc)[_0xff7c('0x17')]();});}};}function handleEntityNotFound(_0x1c7a70,_0x92fbd5){return function(_0x4495b6){if(!_0x4495b6){_0x1c7a70[_0xff7c('0x16')](0x194);}return _0x4495b6;};}function handleError(_0x7cdd53,_0x5d788b){_0x5d788b=_0x5d788b||0x1f4;return function(_0x15358d){logger[_0xff7c('0x24')](_0x15358d['stack']);if(_0x15358d[_0xff7c('0x25')]){delete _0x15358d['name'];}_0x7cdd53['status'](_0x5d788b)[_0xff7c('0x26')](_0x15358d);};}exports[_0xff7c('0x27')]=function(_0x1467b5,_0x10eef2){var _0x2ebbb5={},_0x1a349f={},_0x3fda85={'count':0x0,'rows':[]};var _0x5847f6=_[_0xff7c('0x28')](db[_0xff7c('0x29')]['rawAttributes'],function(_0x5e71a3){return{'name':_0x5e71a3[_0xff7c('0x2a')],'type':_0x5e71a3[_0xff7c('0x2b')]['key']};});_0x1a349f[_0xff7c('0x2c')]=_[_0xff7c('0x28')](_0x5847f6,'name');_0x1a349f[_0xff7c('0x2d')]=_[_0xff7c('0x2e')](_0x1467b5[_0xff7c('0x2d')]);_0x1a349f[_0xff7c('0x2f')]=_['intersection'](_0x1a349f[_0xff7c('0x2c')],_0x1a349f['query']);_0x2ebbb5[_0xff7c('0x30')]=_['intersection'](_0x1a349f[_0xff7c('0x2c')],qs['fields'](_0x1467b5[_0xff7c('0x2d')][_0xff7c('0x31')]));_0x2ebbb5[_0xff7c('0x30')]=_0x2ebbb5['attributes'][_0xff7c('0x32')]?_0x2ebbb5[_0xff7c('0x30')]:_0x1a349f[_0xff7c('0x2c')];if(!_0x1467b5[_0xff7c('0x2d')]['hasOwnProperty'](_0xff7c('0x33'))){_0x2ebbb5[_0xff7c('0x1d')]=qs[_0xff7c('0x1d')](_0x1467b5[_0xff7c('0x2d')][_0xff7c('0x1d')]);_0x2ebbb5[_0xff7c('0x1a')]=qs['offset'](_0x1467b5['query']['offset']);}_0x2ebbb5[_0xff7c('0x34')]=qs[_0xff7c('0x35')](_0x1467b5[_0xff7c('0x2d')]['sort']);_0x2ebbb5['where']=qs['filters'](_[_0xff7c('0x36')](_0x1467b5[_0xff7c('0x2d')],_0x1a349f[_0xff7c('0x2f')]),_0x5847f6);if(_0x1467b5[_0xff7c('0x2d')][_0xff7c('0x37')]){_0x2ebbb5[_0xff7c('0x38')]=_['merge'](_0x2ebbb5[_0xff7c('0x38')],{'$or':_[_0xff7c('0x28')](_0x5847f6,function(_0x1d5236){if(_0x1d5236['type']!=='VIRTUAL'){var _0x50d027={};_0x50d027[_0x1d5236[_0xff7c('0x25')]]={'$like':'%'+_0x1467b5[_0xff7c('0x2d')]['filter']+'%'};return _0x50d027;}})});}_0x2ebbb5=_[_0xff7c('0x39')]({},_0x2ebbb5,_0x1467b5[_0xff7c('0x3a')]);var _0x501b9c={'where':_0x2ebbb5[_0xff7c('0x38')]};return db[_0xff7c('0x29')][_0xff7c('0x1c')](_0x501b9c)[_0xff7c('0x22')](function(_0x32bc78){_0x3fda85[_0xff7c('0x1c')]=_0x32bc78;if(_0x1467b5[_0xff7c('0x2d')][_0xff7c('0x3b')]){_0x2ebbb5[_0xff7c('0x3c')]=[{'all':!![]}];}return db[_0xff7c('0x29')][_0xff7c('0x3d')](_0x2ebbb5);})[_0xff7c('0x22')](function(_0x557693){_0x3fda85['rows']=_0x557693;return _0x3fda85;})['then'](respondWithFilteredResult(_0x10eef2,_0x2ebbb5))[_0xff7c('0x3e')](handleError(_0x10eef2,null));};exports[_0xff7c('0x3f')]=function(_0x23e6df,_0x1434b1){var _0x50f1d5={'raw':!![],'where':{'id':_0x23e6df[_0xff7c('0x40')]['id']}},_0x46c30c={};_0x46c30c['model']=_[_0xff7c('0x2e')](db[_0xff7c('0x29')][_0xff7c('0x41')]);_0x46c30c[_0xff7c('0x2d')]=_[_0xff7c('0x2e')](_0x23e6df['query']);_0x46c30c[_0xff7c('0x2f')]=_[_0xff7c('0x42')](_0x46c30c[_0xff7c('0x2c')],_0x46c30c['query']);_0x50f1d5[_0xff7c('0x30')]=_[_0xff7c('0x42')](_0x46c30c[_0xff7c('0x2c')],qs[_0xff7c('0x31')](_0x23e6df[_0xff7c('0x2d')][_0xff7c('0x31')]));_0x50f1d5['attributes']=_0x50f1d5[_0xff7c('0x30')]['length']?_0x50f1d5['attributes']:_0x46c30c[_0xff7c('0x2c')];if(_0x23e6df['query']['includeAll']){_0x50f1d5[_0xff7c('0x3c')]=[{'all':!![]}];}_0x50f1d5=_[_0xff7c('0x39')]({},_0x50f1d5,_0x23e6df[_0xff7c('0x3a')]);return db['AnalyticTreeReport'][_0xff7c('0x43')](_0x50f1d5)[_0xff7c('0x22')](handleEntityNotFound(_0x1434b1,null))[_0xff7c('0x22')](respondWithResult(_0x1434b1,null))[_0xff7c('0x3e')](handleError(_0x1434b1,null));};exports[_0xff7c('0x44')]=function(_0x36e18c,_0x75673){return db['AnalyticTreeReport'][_0xff7c('0x44')](_0x36e18c[_0xff7c('0x45')],{})['then'](respondWithResult(_0x75673,0xc9))[_0xff7c('0x3e')](handleError(_0x75673,null));};exports[_0xff7c('0x21')]=function(_0x106a57,_0x5bf4f9){if(_0x106a57[_0xff7c('0x45')]['id']){delete _0x106a57[_0xff7c('0x45')]['id'];}return db[_0xff7c('0x29')]['find']({'where':{'id':_0x106a57[_0xff7c('0x40')]['id']}})['then'](handleEntityNotFound(_0x5bf4f9,null))[_0xff7c('0x22')](saveUpdates(_0x106a57[_0xff7c('0x45')],null))[_0xff7c('0x22')](respondWithResult(_0x5bf4f9,null))[_0xff7c('0x3e')](handleError(_0x5bf4f9,null));};exports[_0xff7c('0x23')]=function(_0x55b4a1,_0x4a2bce){return db['AnalyticTreeReport'][_0xff7c('0x43')]({'where':{'id':_0x55b4a1['params']['id']}})[_0xff7c('0x22')](handleEntityNotFound(_0x4a2bce,null))[_0xff7c('0x22')](removeEntity(_0x4a2bce,null))[_0xff7c('0x3e')](handleError(_0x4a2bce,null));};
\ No newline at end of file
+var _0xfd83=['order','where','pick','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','rawAttributes','find','create','body','params','destroy','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','sox','to-csv','ejs','fs-extra','lodash','squel','jsforce','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','update','then','stack','name','map','AnalyticTreeReport','fieldName','type','key','query','keys','filters','model','attributes','intersection','fields','length','hasOwnProperty'];(function(_0x3cff6c,_0x107a6c){var _0x442fb7=function(_0x40221c){while(--_0x40221c){_0x3cff6c['push'](_0x3cff6c['shift']());}};_0x442fb7(++_0x107a6c);}(_0xfd83,0x170));var _0x3fd8=function(_0x12f570,_0x2bdad1){_0x12f570=_0x12f570-0x0;var _0x820efc=_0xfd83[_0x12f570];return _0x820efc;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x3fd8('0x0'));var zipdir=require(_0x3fd8('0x1'));var jsonpatch=require(_0x3fd8('0x2'));var rp=require(_0x3fd8('0x3'));var moment=require(_0x3fd8('0x4'));var BPromise=require(_0x3fd8('0x5'));var Mustache=require('mustache');var util=require('util');var path=require('path');var sox=require(_0x3fd8('0x6'));var csv=require(_0x3fd8('0x7'));var ejs=require(_0x3fd8('0x8'));var fs=require('fs');var fs_extra=require(_0x3fd8('0x9'));var _=require(_0x3fd8('0xa'));var squel=require(_0x3fd8('0xb'));var crypto=require('crypto');var jsforce=require(_0x3fd8('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x3fd8('0x7'));var querystring=require('querystring');var Papa=require(_0x3fd8('0xd'));var Redis=require(_0x3fd8('0xe'));var authService=require(_0x3fd8('0xf'));var qs=require('../../components/parsers/qs');var as=require(_0x3fd8('0x10'));var hardwareService=require(_0x3fd8('0x11'));var logger=require(_0x3fd8('0x12'))(_0x3fd8('0x13'));var utils=require('../../config/utils');var config=require(_0x3fd8('0x14'));var licenseUtil=require(_0x3fd8('0x15'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1cc068,_0x4f303b){_0x4f303b=_0x4f303b||0xcc;return function(_0x5cba13){if(_0x5cba13){return _0x1cc068[_0x3fd8('0x16')](_0x4f303b);}return _0x1cc068[_0x3fd8('0x17')](_0x4f303b)[_0x3fd8('0x18')]();};}function respondWithResult(_0x5377d2,_0x1e3b53){_0x1e3b53=_0x1e3b53||0xc8;return function(_0x3155a9){if(_0x3155a9){return _0x5377d2[_0x3fd8('0x17')](_0x1e3b53)[_0x3fd8('0x19')](_0x3155a9);}};}function respondWithFilteredResult(_0x19a876,_0x29f38a){return function(_0x21a56e){if(_0x21a56e){var _0x3624d0=typeof _0x29f38a[_0x3fd8('0x1a')]===_0x3fd8('0x1b')&&typeof _0x29f38a[_0x3fd8('0x1c')]===_0x3fd8('0x1b');var _0x4cef67=_0x21a56e['count'];var _0x2f0758=_0x3624d0?0x0:_0x29f38a[_0x3fd8('0x1a')];var _0x147f10=_0x3624d0?_0x21a56e[_0x3fd8('0x1d')]:_0x29f38a[_0x3fd8('0x1a')]+_0x29f38a['limit'];var _0x5bbfb7;if(_0x147f10>=_0x4cef67){_0x147f10=_0x4cef67;_0x5bbfb7=0xc8;}else{_0x5bbfb7=0xce;}_0x19a876['status'](_0x5bbfb7);return _0x19a876[_0x3fd8('0x1e')](_0x3fd8('0x1f'),_0x2f0758+'-'+_0x147f10+'/'+_0x4cef67)[_0x3fd8('0x19')](_0x21a56e);}return null;};}function patchUpdates(_0x2aeba4){return function(_0x6c7766){try{jsonpatch[_0x3fd8('0x20')](_0x6c7766,_0x2aeba4,!![]);}catch(_0x40fe37){return BPromise[_0x3fd8('0x21')](_0x40fe37);}return _0x6c7766['save']();};}function saveUpdates(_0x1e78f4,_0x4bb9e0){return function(_0x5cbc80){if(_0x5cbc80){return _0x5cbc80[_0x3fd8('0x22')](_0x1e78f4)[_0x3fd8('0x23')](function(_0x40355d){return _0x40355d;});}return null;};}function removeEntity(_0x4f9ca4,_0x1230dd){return function(_0x51d0fc){if(_0x51d0fc){return _0x51d0fc['destroy']()['then'](function(){_0x4f9ca4[_0x3fd8('0x17')](0xcc)[_0x3fd8('0x18')]();});}};}function handleEntityNotFound(_0x27df85,_0xfd0a88){return function(_0x530000){if(!_0x530000){_0x27df85[_0x3fd8('0x16')](0x194);}return _0x530000;};}function handleError(_0x5ef4c4,_0x417124){_0x417124=_0x417124||0x1f4;return function(_0x214d34){logger['error'](_0x214d34[_0x3fd8('0x24')]);if(_0x214d34[_0x3fd8('0x25')]){delete _0x214d34[_0x3fd8('0x25')];}_0x5ef4c4[_0x3fd8('0x17')](_0x417124)['send'](_0x214d34);};}exports['index']=function(_0x56990c,_0x971c99){var _0x177ebd={},_0x288f09={},_0x499839={'count':0x0,'rows':[]};var _0x20262f=_[_0x3fd8('0x26')](db[_0x3fd8('0x27')]['rawAttributes'],function(_0x314187){return{'name':_0x314187[_0x3fd8('0x28')],'type':_0x314187[_0x3fd8('0x29')][_0x3fd8('0x2a')]};});_0x288f09['model']=_[_0x3fd8('0x26')](_0x20262f,_0x3fd8('0x25'));_0x288f09[_0x3fd8('0x2b')]=_[_0x3fd8('0x2c')](_0x56990c[_0x3fd8('0x2b')]);_0x288f09[_0x3fd8('0x2d')]=_['intersection'](_0x288f09[_0x3fd8('0x2e')],_0x288f09[_0x3fd8('0x2b')]);_0x177ebd[_0x3fd8('0x2f')]=_[_0x3fd8('0x30')](_0x288f09[_0x3fd8('0x2e')],qs[_0x3fd8('0x31')](_0x56990c[_0x3fd8('0x2b')][_0x3fd8('0x31')]));_0x177ebd[_0x3fd8('0x2f')]=_0x177ebd[_0x3fd8('0x2f')][_0x3fd8('0x32')]?_0x177ebd[_0x3fd8('0x2f')]:_0x288f09[_0x3fd8('0x2e')];if(!_0x56990c[_0x3fd8('0x2b')][_0x3fd8('0x33')]('nolimit')){_0x177ebd[_0x3fd8('0x1c')]=qs[_0x3fd8('0x1c')](_0x56990c[_0x3fd8('0x2b')][_0x3fd8('0x1c')]);_0x177ebd[_0x3fd8('0x1a')]=qs['offset'](_0x56990c['query'][_0x3fd8('0x1a')]);}_0x177ebd[_0x3fd8('0x34')]=qs['sort'](_0x56990c[_0x3fd8('0x2b')]['sort']);_0x177ebd[_0x3fd8('0x35')]=qs['filters'](_[_0x3fd8('0x36')](_0x56990c[_0x3fd8('0x2b')],_0x288f09[_0x3fd8('0x2d')]),_0x20262f);if(_0x56990c[_0x3fd8('0x2b')]['filter']){_0x177ebd[_0x3fd8('0x35')]=_[_0x3fd8('0x37')](_0x177ebd['where'],{'$or':_['map'](_0x20262f,function(_0x10cfa2){if(_0x10cfa2['type']!==_0x3fd8('0x38')){var _0xa9b363={};_0xa9b363[_0x10cfa2[_0x3fd8('0x25')]]={'$like':'%'+_0x56990c['query']['filter']+'%'};return _0xa9b363;}})});}_0x177ebd=_['merge']({},_0x177ebd,_0x56990c[_0x3fd8('0x39')]);var _0x3a33de={'where':_0x177ebd[_0x3fd8('0x35')]};return db[_0x3fd8('0x27')][_0x3fd8('0x1d')](_0x3a33de)['then'](function(_0x41bfad){_0x499839[_0x3fd8('0x1d')]=_0x41bfad;if(_0x56990c['query'][_0x3fd8('0x3a')]){_0x177ebd[_0x3fd8('0x3b')]=[{'all':!![]}];}return db['AnalyticTreeReport'][_0x3fd8('0x3c')](_0x177ebd);})[_0x3fd8('0x23')](function(_0x49a0b7){_0x499839[_0x3fd8('0x3d')]=_0x49a0b7;return _0x499839;})[_0x3fd8('0x23')](respondWithFilteredResult(_0x971c99,_0x177ebd))[_0x3fd8('0x3e')](handleError(_0x971c99,null));};exports[_0x3fd8('0x3f')]=function(_0x17721e,_0xb087b7){var _0xe1247d={'raw':!![],'where':{'id':_0x17721e['params']['id']}},_0x2c0917={};_0x2c0917[_0x3fd8('0x2e')]=_['keys'](db[_0x3fd8('0x27')][_0x3fd8('0x40')]);_0x2c0917[_0x3fd8('0x2b')]=_[_0x3fd8('0x2c')](_0x17721e[_0x3fd8('0x2b')]);_0x2c0917[_0x3fd8('0x2d')]=_[_0x3fd8('0x30')](_0x2c0917[_0x3fd8('0x2e')],_0x2c0917[_0x3fd8('0x2b')]);_0xe1247d['attributes']=_[_0x3fd8('0x30')](_0x2c0917['model'],qs[_0x3fd8('0x31')](_0x17721e[_0x3fd8('0x2b')][_0x3fd8('0x31')]));_0xe1247d['attributes']=_0xe1247d[_0x3fd8('0x2f')][_0x3fd8('0x32')]?_0xe1247d['attributes']:_0x2c0917[_0x3fd8('0x2e')];if(_0x17721e[_0x3fd8('0x2b')][_0x3fd8('0x3a')]){_0xe1247d[_0x3fd8('0x3b')]=[{'all':!![]}];}_0xe1247d=_[_0x3fd8('0x37')]({},_0xe1247d,_0x17721e[_0x3fd8('0x39')]);return db[_0x3fd8('0x27')][_0x3fd8('0x41')](_0xe1247d)[_0x3fd8('0x23')](handleEntityNotFound(_0xb087b7,null))[_0x3fd8('0x23')](respondWithResult(_0xb087b7,null))[_0x3fd8('0x3e')](handleError(_0xb087b7,null));};exports['create']=function(_0x49fd28,_0xb34ed0){return db['AnalyticTreeReport'][_0x3fd8('0x42')](_0x49fd28[_0x3fd8('0x43')],{})[_0x3fd8('0x23')](respondWithResult(_0xb34ed0,0xc9))[_0x3fd8('0x3e')](handleError(_0xb34ed0,null));};exports[_0x3fd8('0x22')]=function(_0x544aa6,_0x13cd3f){if(_0x544aa6[_0x3fd8('0x43')]['id']){delete _0x544aa6[_0x3fd8('0x43')]['id'];}return db[_0x3fd8('0x27')][_0x3fd8('0x41')]({'where':{'id':_0x544aa6[_0x3fd8('0x44')]['id']}})[_0x3fd8('0x23')](handleEntityNotFound(_0x13cd3f,null))[_0x3fd8('0x23')](saveUpdates(_0x544aa6['body'],null))['then'](respondWithResult(_0x13cd3f,null))[_0x3fd8('0x3e')](handleError(_0x13cd3f,null));};exports[_0x3fd8('0x45')]=function(_0x587fa4,_0x2443c6){return db[_0x3fd8('0x27')][_0x3fd8('0x41')]({'where':{'id':_0x587fa4[_0x3fd8('0x44')]['id']}})[_0x3fd8('0x23')](handleEntityNotFound(_0x2443c6,null))[_0x3fd8('0x23')](removeEntity(_0x2443c6,null))['catch'](handleError(_0x2443c6,null));};
\ No newline at end of file