Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / api / variable / variable.controller.js
index a2dff46..27c8795 100644 (file)
@@ -1 +1 @@
-const a697_0x166b=['show','intersection','end','model','../../config/logger','role','findOne','options','rows','Content-Range','VIRTUAL','attributes','stack','body','destroy','type','findAll','sendStatus','then','order','Variable','filters','name','query','params','filter','../../components/parsers/qs','user','get','UserProfileSection','pick','set','fields','map','limit','json','Unable\x20to\x20retrieve\x20the\x20current\x20user','error','userProfileId','count','catch','status','length','include','UserProfileResource','merge','nolimit','api','offset','includeAll','create','sort','where','Variables','fieldName','update','key','rawAttributes'];(function(_0x3b9801,_0x166bd4){const _0x4456f0=function(_0x560e6f){while(--_0x560e6f){_0x3b9801['push'](_0x3b9801['shift']());}};_0x4456f0(++_0x166bd4);}(a697_0x166b,0xdb));const a697_0x4456=function(_0x3b9801,_0x166bd4){_0x3b9801=_0x3b9801-0x0;let _0x4456f0=a697_0x166b[_0x3b9801];return _0x4456f0;};const _0x4a5608=a697_0x4456;'use strict';const _=require('lodash'),qs=require(_0x4a5608('0x27')),logger=require(_0x4a5608('0x11'))(_0x4a5608('0x2')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x560e6f,_0x113267){return _0x113267=_0x113267||0xc8,function(_0x2b9523){const _0x3fea39=a697_0x4456;if(_0x2b9523)return _0x560e6f[_0x3fea39('0x36')](_0x113267)[_0x3fea39('0x30')](_0x2b9523);};}function respondWithFilteredResult(_0x5300a9,_0x5079e9){return function(_0x459b8){const _0x1809f7=a697_0x4456;if(_0x459b8){const _0x41406c=_0x459b8['count'],_0x3f729b=_0x5079e9[_0x1809f7('0x3')];let _0x33a7e9=_0x5079e9[_0x1809f7('0x3')]+_0x5079e9[_0x1809f7('0x2f')],_0x1e2b96;return _0x33a7e9>=_0x41406c?(_0x33a7e9=_0x41406c,_0x1e2b96=0xc8):_0x1e2b96=0xce,_0x5300a9['status'](_0x1e2b96),_0x5300a9[_0x1809f7('0x2c')](_0x1809f7('0x16'),_0x3f729b+'-'+_0x33a7e9+'/'+_0x41406c)[_0x1809f7('0x30')](_0x459b8);}return null;};}function saveUpdates(_0x212e8e){return function(_0x76dd36){const _0x242860=a697_0x4456;if(_0x76dd36)return _0x76dd36[_0x242860('0xa')](_0x212e8e)[_0x242860('0x1f')](function(_0x1fcbdc){return _0x1fcbdc;});return null;};}function removeEntity(_0x94b4ae){return function(_0x1ebd11){const _0x3ab346=a697_0x4456;if(_0x1ebd11)return _0x1ebd11['destroy']()[_0x3ab346('0x1f')](function(){const _0x598cc1=_0x3ab346,_0x504d85=_0x1ebd11[_0x598cc1('0x29')]({'plain':!![]}),_0x5eadbe='Variables';return db[_0x598cc1('0x39')]['destroy']({'where':{'type':_0x5eadbe,'resourceId':_0x504d85['id']}})[_0x598cc1('0x1f')](function(){return _0x1ebd11;});})['then'](function(){const _0xc36276=_0x3ab346;_0x94b4ae['status'](0xcc)[_0xc36276('0xf')]();});};}function handleEntityNotFound(_0xc4da25){return function(_0x48a034){const _0x36c3be=a697_0x4456;return!_0x48a034&&_0xc4da25[_0x36c3be('0x1e')](0x194),_0x48a034;};}function handleError(_0x5cde51,_0x4fb3b9){return _0x4fb3b9=_0x4fb3b9||0x1f4,function(_0x34df70){const _0x88dd55=a697_0x4456;logger[_0x88dd55('0x32')](_0x34df70[_0x88dd55('0x19')]),_0x34df70['name']&&delete _0x34df70[_0x88dd55('0x23')],_0x5cde51[_0x88dd55('0x36')](_0x4fb3b9)['send'](_0x34df70);};}exports['index']=function(_0x2d8413,_0x4acb20){const _0x2457f8=_0x4a5608;let _0x475926={};const _0xf89356={},_0x4bd32f={'count':0x0,'rows':[]},_0x57b16b=_[_0x2457f8('0x2e')](db['Variable'][_0x2457f8('0xc')],function(_0x4ab3c9){const _0x1b419e=_0x2457f8;return{'name':_0x4ab3c9[_0x1b419e('0x9')],'type':_0x4ab3c9[_0x1b419e('0x1c')][_0x1b419e('0xb')]};});_0xf89356[_0x2457f8('0x10')]=_[_0x2457f8('0x2e')](_0x57b16b,'name'),_0xf89356[_0x2457f8('0x24')]=_['keys'](_0x2d8413['query']),_0xf89356[_0x2457f8('0x22')]=_[_0x2457f8('0xe')](_0xf89356[_0x2457f8('0x10')],_0xf89356[_0x2457f8('0x24')]),_0x475926['attributes']=_[_0x2457f8('0xe')](_0xf89356['model'],qs['fields'](_0x2d8413[_0x2457f8('0x24')]['fields'])),_0x475926['attributes']=_0x475926[_0x2457f8('0x18')][_0x2457f8('0x37')]?_0x475926['attributes']:_0xf89356[_0x2457f8('0x10')];typeof _0x2d8413[_0x2457f8('0x24')][_0x2457f8('0x1')]==='undefined'&&(_0x475926[_0x2457f8('0x2f')]=qs[_0x2457f8('0x2f')](_0x2d8413[_0x2457f8('0x24')][_0x2457f8('0x2f')]),_0x475926[_0x2457f8('0x3')]=qs['offset'](_0x2d8413['query'][_0x2457f8('0x3')]));_0x475926[_0x2457f8('0x20')]=qs[_0x2457f8('0x6')](_0x2d8413['query'][_0x2457f8('0x6')]),_0x475926[_0x2457f8('0x7')]=qs['filters'](_[_0x2457f8('0x2b')](_0x2d8413[_0x2457f8('0x24')],_0xf89356[_0x2457f8('0x22')]),_0x57b16b);_0x2d8413[_0x2457f8('0x24')][_0x2457f8('0x26')]&&(_0x475926[_0x2457f8('0x7')]=_['merge'](_0x475926[_0x2457f8('0x7')],{[Op['or']]:_[_0x2457f8('0x2e')](_0x57b16b,function(_0x52b659){const _0x426806=_0x2457f8;if(_0x52b659[_0x426806('0x1c')]!==_0x426806('0x17')){const _0x45db0e={};return _0x45db0e[_0x52b659[_0x426806('0x23')]]={[Op['like']]:'%'+_0x2d8413['query'][_0x426806('0x26')]+'%'},_0x45db0e;}})}));_0x475926=_['merge']({},_0x475926,_0x2d8413[_0x2457f8('0x14')]);const _0xb7c559={'where':_0x475926[_0x2457f8('0x7')]};return db['Variable'][_0x2457f8('0x34')](_0xb7c559)[_0x2457f8('0x1f')](function(_0x2aa3a8){const _0x536d0c=_0x2457f8;return _0x4bd32f[_0x536d0c('0x34')]=_0x2aa3a8,_0x2d8413[_0x536d0c('0x24')][_0x536d0c('0x4')]&&(_0x475926[_0x536d0c('0x38')]=[{'all':!![]}]),db['Variable'][_0x536d0c('0x1d')](_0x475926);})[_0x2457f8('0x1f')](function(_0x39a0ef){const _0x365f61=_0x2457f8;return _0x4bd32f[_0x365f61('0x15')]=_0x39a0ef,_0x4bd32f;})[_0x2457f8('0x1f')](respondWithFilteredResult(_0x4acb20,_0x475926))[_0x2457f8('0x35')](handleError(_0x4acb20,null));},exports[_0x4a5608('0xd')]=function(_0x5c66f5,_0x5dd7ee){const _0x23f431=_0x4a5608;let _0x135fbe={'raw':!![],'where':{'id':_0x5c66f5[_0x23f431('0x25')]['id']}};const _0x5ae935={};return _0x5ae935['model']=_['keys'](db[_0x23f431('0x21')][_0x23f431('0xc')]),_0x5ae935[_0x23f431('0x24')]=_['keys'](_0x5c66f5[_0x23f431('0x24')]),_0x5ae935[_0x23f431('0x22')]=_[_0x23f431('0xe')](_0x5ae935[_0x23f431('0x10')],_0x5ae935[_0x23f431('0x24')]),_0x135fbe[_0x23f431('0x18')]=_[_0x23f431('0xe')](_0x5ae935[_0x23f431('0x10')],qs[_0x23f431('0x2d')](_0x5c66f5[_0x23f431('0x24')]['fields'])),_0x135fbe[_0x23f431('0x18')]=_0x135fbe['attributes']['length']?_0x135fbe[_0x23f431('0x18')]:_0x5ae935[_0x23f431('0x10')],_0x5c66f5['query'][_0x23f431('0x4')]&&(_0x135fbe[_0x23f431('0x38')]=[{'all':!![]}]),_0x135fbe=_[_0x23f431('0x0')]({},_0x135fbe,_0x5c66f5[_0x23f431('0x14')]),db[_0x23f431('0x21')]['findOne'](_0x135fbe)['then'](handleEntityNotFound(_0x5dd7ee,null))['then'](respondWithResult(_0x5dd7ee,null))[_0x23f431('0x35')](handleError(_0x5dd7ee,null));},exports[_0x4a5608('0x5')]=function(_0x4cda96,_0x14d0e5){const _0x19d333=_0x4a5608;return db[_0x19d333('0x21')][_0x19d333('0x5')](_0x4cda96[_0x19d333('0x1a')],{})[_0x19d333('0x1f')](function(_0x392e7b){const _0x2e6859=_0x19d333,_0x360842=_0x4cda96[_0x2e6859('0x28')]['get']({'plain':!![]});if(!_0x360842)throw new Error(_0x2e6859('0x31'));if(_0x360842[_0x2e6859('0x12')]==='user'){const _0x5bfac2=_0x392e7b[_0x2e6859('0x29')]({'plain':!![]}),_0x22ec17=_0x2e6859('0x8');return db[_0x2e6859('0x2a')][_0x2e6859('0x13')]({'where':{'name':_0x22ec17,'userProfileId':_0x360842[_0x2e6859('0x33')]},'raw':!![]})['then'](function(_0x23b24d){const _0xdd5d0d=_0x2e6859;return _0x23b24d&&_0x23b24d['autoAssociation']===0x0?db['UserProfileResource'][_0xdd5d0d('0x5')]({'name':_0x5bfac2[_0xdd5d0d('0x23')],'resourceId':_0x5bfac2['id'],'type':_0x23b24d[_0xdd5d0d('0x23')],'sectionId':_0x23b24d['id']},{})['then'](function(){return _0x392e7b;}):_0x392e7b;})[_0x2e6859('0x35')](function(_0x192e4e){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x192e4e);throw _0x192e4e;});}return _0x392e7b;})['then'](respondWithResult(_0x14d0e5,0xc9))[_0x19d333('0x35')](handleError(_0x14d0e5,null));},exports[_0x4a5608('0xa')]=function(_0x19aa21,_0x1fefa1){const _0x2e2b0f=_0x4a5608;return _0x19aa21['body']['id']&&delete _0x19aa21[_0x2e2b0f('0x1a')]['id'],db['Variable'][_0x2e2b0f('0x13')]({'where':{'id':_0x19aa21[_0x2e2b0f('0x25')]['id']}})[_0x2e2b0f('0x1f')](handleEntityNotFound(_0x1fefa1,null))['then'](saveUpdates(_0x19aa21[_0x2e2b0f('0x1a')],null))['then'](respondWithResult(_0x1fefa1,null))[_0x2e2b0f('0x35')](handleError(_0x1fefa1,null));},exports[_0x4a5608('0x1b')]=function(_0x333215,_0x2b3297){const _0x2c7d36=_0x4a5608;return db['Variable'][_0x2c7d36('0x13')]({'where':{'id':_0x333215['params']['id']}})[_0x2c7d36('0x1f')](handleEntityNotFound(_0x2b3297,null))['then'](removeEntity(_0x2b3297,null))[_0x2c7d36('0x35')](handleError(_0x2b3297,null));};
\ No newline at end of file
+const a697_0x5690=['pick','error','length','stack','Variable','intersection','order','then','findAll','json','send','catch','key','UserProfileResource','set','userProfileId','include','destroy','rows','api','undefined','update','like','status','type','sequelize','merge','limit','Content-Range','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../components/parsers/qs','end','rawAttributes','../../mysqldb','options','where','query','index','name','sendStatus','params','create','body','get','sort','count','fields','map','Variables','role','offset','VIRTUAL','user','attributes','findOne','keys','../../config/logger','show','model','filters'];(function(_0xf252ca,_0x569035){const _0x2833a1=function(_0x120a52){while(--_0x120a52){_0xf252ca['push'](_0xf252ca['shift']());}};_0x2833a1(++_0x569035);}(a697_0x5690,0x6a));const a697_0x2833=function(_0xf252ca,_0x569035){_0xf252ca=_0xf252ca-0x0;let _0x2833a1=a697_0x5690[_0xf252ca];return _0x2833a1;};const _0x40ca45=a697_0x2833;'use strict';const _=require('lodash'),qs=require(_0x40ca45('0x2c')),logger=require(_0x40ca45('0xa'))(_0x40ca45('0x21')),db=require(_0x40ca45('0x2f'))['db'],{Op}=require(_0x40ca45('0x27'));function respondWithResult(_0x120a52,_0x482dd9){return _0x482dd9=_0x482dd9||0xc8,function(_0x3bb7b5){const _0x47f1b6=a697_0x2833;if(_0x3bb7b5)return _0x120a52[_0x47f1b6('0x25')](_0x482dd9)[_0x47f1b6('0x17')](_0x3bb7b5);};}function respondWithFilteredResult(_0x49b1c7,_0x2ac5cf){return function(_0x22c180){const _0x54e3ad=a697_0x2833;if(_0x22c180){const _0xca1477=_0x22c180['count'],_0x2bdce8=_0x2ac5cf['offset'];let _0x598f71=_0x2ac5cf[_0x54e3ad('0x4')]+_0x2ac5cf[_0x54e3ad('0x29')],_0x3f1e8e;return _0x598f71>=_0xca1477?(_0x598f71=_0xca1477,_0x3f1e8e=0xc8):_0x3f1e8e=0xce,_0x49b1c7[_0x54e3ad('0x25')](_0x3f1e8e),_0x49b1c7[_0x54e3ad('0x1c')](_0x54e3ad('0x2a'),_0x2bdce8+'-'+_0x598f71+'/'+_0xca1477)['json'](_0x22c180);}return null;};}function saveUpdates(_0x143fc7){return function(_0x4e7e86){const _0x5c3ad6=a697_0x2833;if(_0x4e7e86)return _0x4e7e86['update'](_0x143fc7)[_0x5c3ad6('0x15')](function(_0x328613){return _0x328613;});return null;};}function removeEntity(_0x36f029){return function(_0x4ab627){const _0x300a53=a697_0x2833;if(_0x4ab627)return _0x4ab627[_0x300a53('0x1f')]()[_0x300a53('0x15')](function(){const _0x46b336=_0x300a53,_0x5b83bc=_0x4ab627[_0x46b336('0x39')]({'plain':!![]}),_0x2cc905=_0x46b336('0x2');return db[_0x46b336('0x1b')]['destroy']({'where':{'type':_0x2cc905,'resourceId':_0x5b83bc['id']}})['then'](function(){return _0x4ab627;});})[_0x300a53('0x15')](function(){const _0x29c232=_0x300a53;_0x36f029[_0x29c232('0x25')](0xcc)[_0x29c232('0x2d')]();});};}function handleEntityNotFound(_0x4fc859){return function(_0x59adaf){const _0x5a107b=a697_0x2833;return!_0x59adaf&&_0x4fc859[_0x5a107b('0x35')](0x194),_0x59adaf;};}function handleError(_0x5f267a,_0x917c45){return _0x917c45=_0x917c45||0x1f4,function(_0x410315){const _0x34f822=a697_0x2833;logger[_0x34f822('0xf')](_0x410315[_0x34f822('0x11')]),_0x410315['name']&&delete _0x410315[_0x34f822('0x34')],_0x5f267a[_0x34f822('0x25')](_0x917c45)[_0x34f822('0x18')](_0x410315);};}exports[_0x40ca45('0x33')]=function(_0x50d1ca,_0x36de84){const _0x59de4a=_0x40ca45;let _0x45cd4f={};const _0x147357={},_0x118aca={'count':0x0,'rows':[]},_0x3314ec=_[_0x59de4a('0x1')](db[_0x59de4a('0x12')]['rawAttributes'],function(_0xa72f45){const _0x4caadd=_0x59de4a;return{'name':_0xa72f45['fieldName'],'type':_0xa72f45[_0x4caadd('0x26')][_0x4caadd('0x1a')]};});_0x147357[_0x59de4a('0xc')]=_[_0x59de4a('0x1')](_0x3314ec,_0x59de4a('0x34')),_0x147357[_0x59de4a('0x32')]=_['keys'](_0x50d1ca[_0x59de4a('0x32')]),_0x147357[_0x59de4a('0xd')]=_[_0x59de4a('0x13')](_0x147357[_0x59de4a('0xc')],_0x147357[_0x59de4a('0x32')]),_0x45cd4f[_0x59de4a('0x7')]=_['intersection'](_0x147357['model'],qs['fields'](_0x50d1ca[_0x59de4a('0x32')][_0x59de4a('0x0')])),_0x45cd4f['attributes']=_0x45cd4f[_0x59de4a('0x7')][_0x59de4a('0x10')]?_0x45cd4f[_0x59de4a('0x7')]:_0x147357[_0x59de4a('0xc')];typeof _0x50d1ca[_0x59de4a('0x32')]['nolimit']===_0x59de4a('0x22')&&(_0x45cd4f['limit']=qs['limit'](_0x50d1ca[_0x59de4a('0x32')][_0x59de4a('0x29')]),_0x45cd4f[_0x59de4a('0x4')]=qs[_0x59de4a('0x4')](_0x50d1ca['query'][_0x59de4a('0x4')]));_0x45cd4f[_0x59de4a('0x14')]=qs['sort'](_0x50d1ca['query'][_0x59de4a('0x3a')]),_0x45cd4f[_0x59de4a('0x31')]=qs['filters'](_[_0x59de4a('0xe')](_0x50d1ca[_0x59de4a('0x32')],_0x147357['filters']),_0x3314ec);_0x50d1ca[_0x59de4a('0x32')]['filter']&&(_0x45cd4f[_0x59de4a('0x31')]=_[_0x59de4a('0x28')](_0x45cd4f[_0x59de4a('0x31')],{[Op['or']]:_[_0x59de4a('0x1')](_0x3314ec,function(_0x28a055){const _0x223499=_0x59de4a;if(_0x28a055[_0x223499('0x26')]!==_0x223499('0x5')){const _0x1ac2c8={};return _0x1ac2c8[_0x28a055[_0x223499('0x34')]]={[Op[_0x223499('0x24')]]:'%'+_0x50d1ca[_0x223499('0x32')]['filter']+'%'},_0x1ac2c8;}})}));_0x45cd4f=_[_0x59de4a('0x28')]({},_0x45cd4f,_0x50d1ca[_0x59de4a('0x30')]);const _0x24a87d={'where':_0x45cd4f[_0x59de4a('0x31')]};return db[_0x59de4a('0x12')]['count'](_0x24a87d)[_0x59de4a('0x15')](function(_0x5ef487){const _0x11fd36=_0x59de4a;return _0x118aca[_0x11fd36('0x3b')]=_0x5ef487,_0x50d1ca[_0x11fd36('0x32')]['includeAll']&&(_0x45cd4f[_0x11fd36('0x1e')]=[{'all':!![]}]),db['Variable'][_0x11fd36('0x16')](_0x45cd4f);})[_0x59de4a('0x15')](function(_0x28255b){const _0x419fa3=_0x59de4a;return _0x118aca[_0x419fa3('0x20')]=_0x28255b,_0x118aca;})[_0x59de4a('0x15')](respondWithFilteredResult(_0x36de84,_0x45cd4f))[_0x59de4a('0x19')](handleError(_0x36de84,null));},exports[_0x40ca45('0xb')]=function(_0x17c2ed,_0x4da573){const _0x5323c6=_0x40ca45;let _0x1c8e63={'raw':!![],'where':{'id':_0x17c2ed[_0x5323c6('0x36')]['id']}};const _0x1e3171={};return _0x1e3171[_0x5323c6('0xc')]=_['keys'](db[_0x5323c6('0x12')][_0x5323c6('0x2e')]),_0x1e3171[_0x5323c6('0x32')]=_[_0x5323c6('0x9')](_0x17c2ed['query']),_0x1e3171[_0x5323c6('0xd')]=_['intersection'](_0x1e3171[_0x5323c6('0xc')],_0x1e3171['query']),_0x1c8e63['attributes']=_[_0x5323c6('0x13')](_0x1e3171[_0x5323c6('0xc')],qs[_0x5323c6('0x0')](_0x17c2ed['query'][_0x5323c6('0x0')])),_0x1c8e63[_0x5323c6('0x7')]=_0x1c8e63[_0x5323c6('0x7')][_0x5323c6('0x10')]?_0x1c8e63['attributes']:_0x1e3171[_0x5323c6('0xc')],_0x17c2ed[_0x5323c6('0x32')]['includeAll']&&(_0x1c8e63[_0x5323c6('0x1e')]=[{'all':!![]}]),_0x1c8e63=_['merge']({},_0x1c8e63,_0x17c2ed[_0x5323c6('0x30')]),db['Variable']['findOne'](_0x1c8e63)[_0x5323c6('0x15')](handleEntityNotFound(_0x4da573,null))[_0x5323c6('0x15')](respondWithResult(_0x4da573,null))[_0x5323c6('0x19')](handleError(_0x4da573,null));},exports[_0x40ca45('0x37')]=function(_0x117aa,_0x32ae92){const _0x4c68dd=_0x40ca45;return db['Variable']['create'](_0x117aa[_0x4c68dd('0x38')],{})[_0x4c68dd('0x15')](function(_0x1f956e){const _0x46e5f1=_0x4c68dd,_0x22078c=_0x117aa[_0x46e5f1('0x6')]['get']({'plain':!![]});if(!_0x22078c)throw new Error(_0x46e5f1('0x2b'));if(_0x22078c[_0x46e5f1('0x3')]===_0x46e5f1('0x6')){const _0x4d26f8=_0x1f956e[_0x46e5f1('0x39')]({'plain':!![]}),_0x5db20b='Variables';return db['UserProfileSection'][_0x46e5f1('0x8')]({'where':{'name':_0x5db20b,'userProfileId':_0x22078c[_0x46e5f1('0x1d')]},'raw':!![]})[_0x46e5f1('0x15')](function(_0x27325f){const _0x4b2022=_0x46e5f1;return _0x27325f&&_0x27325f['autoAssociation']===0x0?db[_0x4b2022('0x1b')]['create']({'name':_0x4d26f8[_0x4b2022('0x34')],'resourceId':_0x4d26f8['id'],'type':_0x27325f[_0x4b2022('0x34')],'sectionId':_0x27325f['id']},{})[_0x4b2022('0x15')](function(){return _0x1f956e;}):_0x1f956e;})['catch'](function(_0x38cc72){const _0xeb2558=_0x46e5f1;logger[_0xeb2558('0xf')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x38cc72);throw _0x38cc72;});}return _0x1f956e;})[_0x4c68dd('0x15')](respondWithResult(_0x32ae92,0xc9))['catch'](handleError(_0x32ae92,null));},exports[_0x40ca45('0x23')]=function(_0x38372d,_0x464327){const _0x20b7e8=_0x40ca45;return _0x38372d['body']['id']&&delete _0x38372d[_0x20b7e8('0x38')]['id'],db[_0x20b7e8('0x12')][_0x20b7e8('0x8')]({'where':{'id':_0x38372d[_0x20b7e8('0x36')]['id']}})[_0x20b7e8('0x15')](handleEntityNotFound(_0x464327,null))[_0x20b7e8('0x15')](saveUpdates(_0x38372d['body'],null))[_0x20b7e8('0x15')](respondWithResult(_0x464327,null))[_0x20b7e8('0x19')](handleError(_0x464327,null));},exports['destroy']=function(_0x36d0b0,_0x35fb39){const _0x1ad23c=_0x40ca45;return db[_0x1ad23c('0x12')][_0x1ad23c('0x8')]({'where':{'id':_0x36d0b0['params']['id']}})['then'](handleEntityNotFound(_0x35fb39,null))[_0x1ad23c('0x15')](removeEntity(_0x35fb39,null))[_0x1ad23c('0x19')](handleError(_0x35fb39,null));};
\ No newline at end of file