Built motion from commit 82a371561bcdbc7605c801e5e414f4032ba9e7ad. Version 3.0.0...
[motion-next.git] / server / api / intDeskConfiguration / intDeskConfiguration.controller.js
1 const a234_0x9e49=['model','attributes','filters','type','Content-Range','api','catch','end','length','create','then','../../mysqldb','../../config/logger','undefined','query','map','VIRTUAL','body','status','findOne','ids','getTags','nolimit','fields','setTags','getSubjects','index','sort','fieldName','send','getDescriptions','sendStatus','sequelize','includeAll','intersection','where','offset','json','Tag','limit','pick','DeskConfiguration','merge','keys','findAll','rows','../../components/parsers/qs','name','options','rawAttributes','order','include','show','getFields','like','count','update','filter','DeskField','params'];(function(_0x285341,_0x9e4971){const _0x123e41=function(_0x434e5c){while(--_0x434e5c){_0x285341['push'](_0x285341['shift']());}};_0x123e41(++_0x9e4971);}(a234_0x9e49,0x18e));const a234_0x123e=function(_0x285341,_0x9e4971){_0x285341=_0x285341-0x0;let _0x123e41=a234_0x9e49[_0x285341];return _0x123e41;};const _0x5369fe=a234_0x123e;'use strict';const _=require('lodash'),qs=require(_0x5369fe('0x8')),logger=require(_0x5369fe('0x22'))(_0x5369fe('0x1b')),db=require(_0x5369fe('0x21'))['db'],{Op}=require(_0x5369fe('0x36'));function respondWithResult(_0x434e5c,_0x2a14db){return _0x2a14db=_0x2a14db||0xc8,function(_0x3bf0a3){const _0x5bcb69=a234_0x123e;if(_0x3bf0a3)return _0x434e5c[_0x5bcb69('0x28')](_0x2a14db)['json'](_0x3bf0a3);};}function respondWithFilteredResult(_0xd7d421,_0x17dd45){return function(_0x23e56d){const _0x128199=a234_0x123e;if(_0x23e56d){const _0x280ce4=_0x23e56d[_0x128199('0x11')],_0x51db33=_0x17dd45['offset'];let _0x2c810c=_0x17dd45['offset']+_0x17dd45[_0x128199('0x1')],_0x66f5af;return _0x2c810c>=_0x280ce4?(_0x2c810c=_0x280ce4,_0x66f5af=0xc8):_0x66f5af=0xce,_0xd7d421[_0x128199('0x28')](_0x66f5af),_0xd7d421['set'](_0x128199('0x1a'),_0x51db33+'-'+_0x2c810c+'/'+_0x280ce4)[_0x128199('0x3b')](_0x23e56d);}return null;};}function saveUpdates(_0x529f79){return function(_0x4dce89){const _0xaefda7=a234_0x123e;if(_0x4dce89)return _0x4dce89[_0xaefda7('0x12')](_0x529f79)[_0xaefda7('0x20')](function(_0x46447d){return _0x46447d;});return null;};}function removeEntity(_0x25773f){return function(_0x12e974){if(_0x12e974)return _0x12e974['destroy']()['then'](function(){const _0x43cfcb=a234_0x123e;_0x25773f[_0x43cfcb('0x28')](0xcc)[_0x43cfcb('0x1d')]();});};}function handleEntityNotFound(_0x376702){return function(_0x1cc847){const _0x4d8313=a234_0x123e;return!_0x1cc847&&_0x376702[_0x4d8313('0x35')](0x194),_0x1cc847;};}function handleError(_0x125d81,_0x44dd6c){return _0x44dd6c=_0x44dd6c||0x1f4,function(_0x4c91b0){const _0x4b770d=a234_0x123e;logger['error'](_0x4c91b0['stack']),_0x4c91b0[_0x4b770d('0x9')]&&delete _0x4c91b0[_0x4b770d('0x9')],_0x125d81[_0x4b770d('0x28')](_0x44dd6c)[_0x4b770d('0x33')](_0x4c91b0);};}exports[_0x5369fe('0x30')]=function(_0x42a5b3,_0x40c37b){const _0x4d9a17=_0x5369fe;let _0x255a58={};const _0x3c237a={},_0x34f96c={'count':0x0,'rows':[]},_0x3d8dac=_[_0x4d9a17('0x25')](db[_0x4d9a17('0x3')]['rawAttributes'],function(_0x3121e4){const _0x5afc96=_0x4d9a17;return{'name':_0x3121e4[_0x5afc96('0x32')],'type':_0x3121e4[_0x5afc96('0x19')]['key']};});_0x3c237a[_0x4d9a17('0x16')]=_[_0x4d9a17('0x25')](_0x3d8dac,'name'),_0x3c237a['query']=_[_0x4d9a17('0x5')](_0x42a5b3[_0x4d9a17('0x24')]),_0x3c237a['filters']=_['intersection'](_0x3c237a['model'],_0x3c237a['query']),_0x255a58['attributes']=_[_0x4d9a17('0x38')](_0x3c237a['model'],qs[_0x4d9a17('0x2d')](_0x42a5b3[_0x4d9a17('0x24')]['fields'])),_0x255a58['attributes']=_0x255a58[_0x4d9a17('0x17')]['length']?_0x255a58[_0x4d9a17('0x17')]:_0x3c237a[_0x4d9a17('0x16')];typeof _0x42a5b3[_0x4d9a17('0x24')][_0x4d9a17('0x2c')]===_0x4d9a17('0x23')&&(_0x255a58['limit']=qs[_0x4d9a17('0x1')](_0x42a5b3[_0x4d9a17('0x24')][_0x4d9a17('0x1')]),_0x255a58[_0x4d9a17('0x3a')]=qs[_0x4d9a17('0x3a')](_0x42a5b3[_0x4d9a17('0x24')][_0x4d9a17('0x3a')]));_0x255a58[_0x4d9a17('0xc')]=qs['sort'](_0x42a5b3[_0x4d9a17('0x24')][_0x4d9a17('0x31')]),_0x255a58[_0x4d9a17('0x39')]=qs['filters'](_[_0x4d9a17('0x2')](_0x42a5b3['query'],_0x3c237a[_0x4d9a17('0x18')]),_0x3d8dac);_0x42a5b3[_0x4d9a17('0x24')][_0x4d9a17('0x13')]&&(_0x255a58[_0x4d9a17('0x39')]=_[_0x4d9a17('0x4')](_0x255a58[_0x4d9a17('0x39')],{[Op['or']]:_[_0x4d9a17('0x25')](_0x3d8dac,function(_0x588789){const _0x19c128=_0x4d9a17;if(_0x588789[_0x19c128('0x19')]!==_0x19c128('0x26')){const _0x587909={};return _0x587909[_0x588789[_0x19c128('0x9')]]={[Op[_0x19c128('0x10')]]:'%'+_0x42a5b3['query'][_0x19c128('0x13')]+'%'},_0x587909;}})}));_0x255a58=_[_0x4d9a17('0x4')]({},_0x255a58,_0x42a5b3[_0x4d9a17('0xa')]);const _0x4b648f={'where':_0x255a58['where']};return db[_0x4d9a17('0x3')]['count'](_0x4b648f)['then'](function(_0x5e15a7){const _0x450f91=_0x4d9a17;return _0x34f96c[_0x450f91('0x11')]=_0x5e15a7,_0x42a5b3[_0x450f91('0x24')]['includeAll']&&(_0x255a58[_0x450f91('0xd')]=[{'all':!![]}]),db[_0x450f91('0x3')][_0x450f91('0x6')](_0x255a58);})[_0x4d9a17('0x20')](function(_0x386ea0){const _0x18643b=_0x4d9a17;return _0x34f96c[_0x18643b('0x7')]=_0x386ea0,_0x34f96c;})['then'](respondWithFilteredResult(_0x40c37b,_0x255a58))['catch'](handleError(_0x40c37b,null));},exports[_0x5369fe('0xe')]=function(_0x4ae996,_0x467cfb){const _0xdf9c8b=_0x5369fe;let _0x1df6be={'raw':![],'where':{'id':_0x4ae996[_0xdf9c8b('0x15')]['id']}};const _0x51d9d6={};return _0x51d9d6[_0xdf9c8b('0x16')]=_[_0xdf9c8b('0x5')](db[_0xdf9c8b('0x3')][_0xdf9c8b('0xb')]),_0x51d9d6[_0xdf9c8b('0x24')]=_[_0xdf9c8b('0x5')](_0x4ae996[_0xdf9c8b('0x24')]),_0x51d9d6[_0xdf9c8b('0x18')]=_['intersection'](_0x51d9d6[_0xdf9c8b('0x16')],_0x51d9d6[_0xdf9c8b('0x24')]),_0x1df6be[_0xdf9c8b('0x17')]=_[_0xdf9c8b('0x38')](_0x51d9d6['model'],qs[_0xdf9c8b('0x2d')](_0x4ae996[_0xdf9c8b('0x24')][_0xdf9c8b('0x2d')])),_0x1df6be[_0xdf9c8b('0x17')]=_0x1df6be[_0xdf9c8b('0x17')][_0xdf9c8b('0x1e')]?_0x1df6be[_0xdf9c8b('0x17')]:_0x51d9d6[_0xdf9c8b('0x16')],_0x4ae996[_0xdf9c8b('0x24')][_0xdf9c8b('0x37')]&&(_0x1df6be[_0xdf9c8b('0xd')]=[{'all':!![]}]),_0x1df6be=_['merge']({},_0x1df6be,_0x4ae996[_0xdf9c8b('0xa')]),db[_0xdf9c8b('0x3')][_0xdf9c8b('0x29')](_0x1df6be)[_0xdf9c8b('0x20')](handleEntityNotFound(_0x467cfb,null))['then'](respondWithResult(_0x467cfb,null))[_0xdf9c8b('0x1c')](handleError(_0x467cfb,null));},exports['create']=function(_0x5dc577,_0x10f15b){const _0x130f76=_0x5369fe;return db[_0x130f76('0x3')][_0x130f76('0x1f')](_0x5dc577['body'],{})['then'](respondWithResult(_0x10f15b,0xc9))[_0x130f76('0x1c')](handleError(_0x10f15b,null));},exports[_0x5369fe('0x12')]=function(_0x484e5e,_0x3f571b){const _0x909cd6=_0x5369fe;return _0x484e5e[_0x909cd6('0x27')]['id']&&delete _0x484e5e['body']['id'],db[_0x909cd6('0x3')]['findOne']({'where':{'id':_0x484e5e[_0x909cd6('0x15')]['id']}})[_0x909cd6('0x20')](handleEntityNotFound(_0x3f571b,null))[_0x909cd6('0x20')](saveUpdates(_0x484e5e[_0x909cd6('0x27')],null))['then'](respondWithResult(_0x3f571b,null))[_0x909cd6('0x1c')](handleError(_0x3f571b,null));},exports['destroy']=function(_0x46bd2d,_0x26abcf){const _0x343b4d=_0x5369fe;return db[_0x343b4d('0x3')][_0x343b4d('0x29')]({'where':{'id':_0x46bd2d['params']['id']}})[_0x343b4d('0x20')](handleEntityNotFound(_0x26abcf,null))['then'](removeEntity(_0x26abcf,null))[_0x343b4d('0x1c')](handleError(_0x26abcf,null));},exports[_0x5369fe('0xf')]=function(_0x1c6cb4,_0xe42ae7){const _0x400caf=_0x5369fe;let _0x147f38={};const _0x232736={};let _0x46ffd1,_0x2f80d8;return db[_0x400caf('0x3')][_0x400caf('0x29')]({'where':{'id':_0x1c6cb4['params']['id']}})[_0x400caf('0x20')](handleEntityNotFound(_0xe42ae7,null))['then'](function(_0x2b7c14){const _0x2fda1b=_0x400caf;if(_0x2b7c14)return _0x46ffd1=_0x2b7c14,_0x232736[_0x2fda1b('0x16')]=_[_0x2fda1b('0x5')](db['DeskField'][_0x2fda1b('0xb')]),_0x232736[_0x2fda1b('0x24')]=_[_0x2fda1b('0x5')](_0x1c6cb4[_0x2fda1b('0x24')]),_0x232736['filters']=_['intersection'](_0x232736[_0x2fda1b('0x16')],_0x232736['query']),_0x147f38['attributes']=_['intersection'](_0x232736[_0x2fda1b('0x16')],qs['fields'](_0x1c6cb4[_0x2fda1b('0x24')][_0x2fda1b('0x2d')])),_0x147f38[_0x2fda1b('0x17')]=_0x147f38['attributes'][_0x2fda1b('0x1e')]?_0x147f38['attributes']:_0x232736[_0x2fda1b('0x16')],_0x147f38[_0x2fda1b('0xc')]=qs[_0x2fda1b('0x31')](_0x1c6cb4['query'][_0x2fda1b('0x31')]),_0x147f38[_0x2fda1b('0x39')]=qs[_0x2fda1b('0x18')](_[_0x2fda1b('0x2')](_0x1c6cb4[_0x2fda1b('0x24')],_0x232736['filters'])),_0x1c6cb4['query']['filter']&&(_0x147f38['where']=_[_0x2fda1b('0x4')](_0x147f38[_0x2fda1b('0x39')],{[Op['or']]:_['map'](_0x147f38[_0x2fda1b('0x17')],function(_0x344877){const _0x542ca2=_0x2fda1b,_0x4dd9f0={};return _0x4dd9f0[_0x344877]={[Op[_0x542ca2('0x10')]]:'%'+_0x1c6cb4[_0x542ca2('0x24')]['filter']+'%'},_0x4dd9f0;})})),_0x147f38=_[_0x2fda1b('0x4')]({},_0x147f38,_0x1c6cb4[_0x2fda1b('0xa')]),_0x46ffd1['getFields'](_0x147f38);})[_0x400caf('0x20')](function(_0x428c4d){const _0x5d0806=_0x400caf;if(_0x428c4d)return _0x2f80d8=_0x428c4d[_0x5d0806('0x1e')],typeof _0x1c6cb4[_0x5d0806('0x24')][_0x5d0806('0x2c')]===_0x5d0806('0x23')&&(_0x147f38[_0x5d0806('0x1')]=qs[_0x5d0806('0x1')](_0x1c6cb4[_0x5d0806('0x24')][_0x5d0806('0x1')]),_0x147f38['offset']=qs[_0x5d0806('0x3a')](_0x1c6cb4[_0x5d0806('0x24')][_0x5d0806('0x3a')])),_0x46ffd1['getFields'](_0x147f38);})['then'](function(_0x462878){if(_0x462878)return _0x462878?{'count':_0x2f80d8,'rows':_0x462878}:null;})[_0x400caf('0x20')](respondWithResult(_0xe42ae7,null))['catch'](handleError(_0xe42ae7,null));},exports[_0x5369fe('0x2f')]=function(_0xeedac,_0x4d9dcc){const _0x9adf38=_0x5369fe;let _0x30f444={};const _0x5f1235={};let _0xbdfd74,_0x403e10;return db['DeskConfiguration'][_0x9adf38('0x29')]({'where':{'id':_0xeedac[_0x9adf38('0x15')]['id']}})[_0x9adf38('0x20')](handleEntityNotFound(_0x4d9dcc,null))[_0x9adf38('0x20')](function(_0x4c42c1){const _0xf21769=_0x9adf38;if(_0x4c42c1)return _0xbdfd74=_0x4c42c1,_0x5f1235[_0xf21769('0x16')]=_[_0xf21769('0x5')](db[_0xf21769('0x14')][_0xf21769('0xb')]),_0x5f1235['query']=_[_0xf21769('0x5')](_0xeedac['query']),_0x5f1235['filters']=_['intersection'](_0x5f1235[_0xf21769('0x16')],_0x5f1235[_0xf21769('0x24')]),_0x30f444[_0xf21769('0x17')]=_[_0xf21769('0x38')](_0x5f1235[_0xf21769('0x16')],qs[_0xf21769('0x2d')](_0xeedac[_0xf21769('0x24')]['fields'])),_0x30f444[_0xf21769('0x17')]=_0x30f444[_0xf21769('0x17')][_0xf21769('0x1e')]?_0x30f444[_0xf21769('0x17')]:_0x5f1235[_0xf21769('0x16')],_0x30f444['order']=qs[_0xf21769('0x31')](_0xeedac[_0xf21769('0x24')][_0xf21769('0x31')]),_0x30f444[_0xf21769('0x39')]=qs['filters'](_['pick'](_0xeedac['query'],_0x5f1235[_0xf21769('0x18')])),_0xeedac[_0xf21769('0x24')][_0xf21769('0x13')]&&(_0x30f444[_0xf21769('0x39')]=_[_0xf21769('0x4')](_0x30f444[_0xf21769('0x39')],{[Op['or']]:_[_0xf21769('0x25')](_0x30f444['attributes'],function(_0x8a8bd6){const _0x3d6be5=_0xf21769,_0x56abbf={};return _0x56abbf[_0x8a8bd6]={[Op[_0x3d6be5('0x10')]]:'%'+_0xeedac[_0x3d6be5('0x24')]['filter']+'%'},_0x56abbf;})})),_0x30f444=_[_0xf21769('0x4')]({},_0x30f444,_0xeedac[_0xf21769('0xa')]),_0xbdfd74[_0xf21769('0x2f')](_0x30f444);})['then'](function(_0xf0978b){const _0xf9671d=_0x9adf38;if(_0xf0978b)return _0x403e10=_0xf0978b[_0xf9671d('0x1e')],typeof _0xeedac[_0xf9671d('0x24')]['nolimit']==='undefined'&&(_0x30f444[_0xf9671d('0x1')]=qs[_0xf9671d('0x1')](_0xeedac[_0xf9671d('0x24')][_0xf9671d('0x1')]),_0x30f444[_0xf9671d('0x3a')]=qs[_0xf9671d('0x3a')](_0xeedac[_0xf9671d('0x24')][_0xf9671d('0x3a')])),_0xbdfd74[_0xf9671d('0x2f')](_0x30f444);})['then'](function(_0x330f23){if(_0x330f23)return _0x330f23?{'count':_0x403e10,'rows':_0x330f23}:null;})[_0x9adf38('0x20')](respondWithResult(_0x4d9dcc,null))[_0x9adf38('0x1c')](handleError(_0x4d9dcc,null));},exports['getDescriptions']=function(_0x196398,_0x692c1){const _0x10a663=_0x5369fe;let _0x317a39={};const _0x4124f8={};let _0x1361be,_0x2717fd;return db[_0x10a663('0x3')][_0x10a663('0x29')]({'where':{'id':_0x196398[_0x10a663('0x15')]['id']}})[_0x10a663('0x20')](handleEntityNotFound(_0x692c1,null))['then'](function(_0x45a797){const _0x576a6=_0x10a663;if(_0x45a797)return _0x1361be=_0x45a797,_0x4124f8[_0x576a6('0x16')]=_[_0x576a6('0x5')](db[_0x576a6('0x14')][_0x576a6('0xb')]),_0x4124f8['query']=_['keys'](_0x196398[_0x576a6('0x24')]),_0x4124f8['filters']=_['intersection'](_0x4124f8[_0x576a6('0x16')],_0x4124f8[_0x576a6('0x24')]),_0x317a39[_0x576a6('0x17')]=_[_0x576a6('0x38')](_0x4124f8[_0x576a6('0x16')],qs[_0x576a6('0x2d')](_0x196398[_0x576a6('0x24')][_0x576a6('0x2d')])),_0x317a39[_0x576a6('0x17')]=_0x317a39[_0x576a6('0x17')][_0x576a6('0x1e')]?_0x317a39[_0x576a6('0x17')]:_0x4124f8[_0x576a6('0x16')],_0x317a39[_0x576a6('0xc')]=qs[_0x576a6('0x31')](_0x196398[_0x576a6('0x24')][_0x576a6('0x31')]),_0x317a39[_0x576a6('0x39')]=qs['filters'](_[_0x576a6('0x2')](_0x196398['query'],_0x4124f8['filters'])),_0x196398[_0x576a6('0x24')]['filter']&&(_0x317a39[_0x576a6('0x39')]=_[_0x576a6('0x4')](_0x317a39[_0x576a6('0x39')],{[Op['or']]:_[_0x576a6('0x25')](_0x317a39['attributes'],function(_0x268c9e){const _0x283d9c=_0x576a6,_0x2de8ae={};return _0x2de8ae[_0x268c9e]={[Op['like']]:'%'+_0x196398[_0x283d9c('0x24')][_0x283d9c('0x13')]+'%'},_0x2de8ae;})})),_0x317a39=_[_0x576a6('0x4')]({},_0x317a39,_0x196398[_0x576a6('0xa')]),_0x1361be[_0x576a6('0x34')](_0x317a39);})['then'](function(_0x4c8e57){const _0x3c1083=_0x10a663;if(_0x4c8e57)return _0x2717fd=_0x4c8e57[_0x3c1083('0x1e')],typeof _0x196398[_0x3c1083('0x24')][_0x3c1083('0x2c')]===_0x3c1083('0x23')&&(_0x317a39[_0x3c1083('0x1')]=qs[_0x3c1083('0x1')](_0x196398[_0x3c1083('0x24')][_0x3c1083('0x1')]),_0x317a39[_0x3c1083('0x3a')]=qs['offset'](_0x196398[_0x3c1083('0x24')][_0x3c1083('0x3a')])),_0x1361be[_0x3c1083('0x34')](_0x317a39);})[_0x10a663('0x20')](function(_0x55ccc6){if(_0x55ccc6)return _0x55ccc6?{'count':_0x2717fd,'rows':_0x55ccc6}:null;})['then'](respondWithResult(_0x692c1,null))[_0x10a663('0x1c')](handleError(_0x692c1,null));},exports[_0x5369fe('0x2b')]=function(_0x1b62cc,_0x4daa3a){const _0x5edf4b=_0x5369fe;let _0x6867ea={};const _0x16f721={};let _0x1fb742,_0x56c2a7;return db['DeskConfiguration'][_0x5edf4b('0x29')]({'where':{'id':_0x1b62cc[_0x5edf4b('0x15')]['id']}})[_0x5edf4b('0x20')](handleEntityNotFound(_0x4daa3a,null))[_0x5edf4b('0x20')](function(_0x215fa3){const _0x4ece38=_0x5edf4b;if(_0x215fa3)return _0x1fb742=_0x215fa3,_0x16f721[_0x4ece38('0x16')]=_['keys'](db[_0x4ece38('0x0')][_0x4ece38('0xb')]),_0x16f721[_0x4ece38('0x24')]=_[_0x4ece38('0x5')](_0x1b62cc['query']),_0x16f721[_0x4ece38('0x18')]=_['intersection'](_0x16f721['model'],_0x16f721['query']),_0x6867ea['attributes']=_[_0x4ece38('0x38')](_0x16f721[_0x4ece38('0x16')],qs['fields'](_0x1b62cc['query']['fields'])),_0x6867ea[_0x4ece38('0x17')]=_0x6867ea['attributes'][_0x4ece38('0x1e')]?_0x6867ea[_0x4ece38('0x17')]:_0x16f721['model'],_0x6867ea[_0x4ece38('0xc')]=qs[_0x4ece38('0x31')](_0x1b62cc[_0x4ece38('0x24')][_0x4ece38('0x31')]),_0x6867ea[_0x4ece38('0x39')]=qs[_0x4ece38('0x18')](_[_0x4ece38('0x2')](_0x1b62cc[_0x4ece38('0x24')],_0x16f721['filters'])),_0x1b62cc[_0x4ece38('0x24')][_0x4ece38('0x13')]&&(_0x6867ea[_0x4ece38('0x39')]=_[_0x4ece38('0x4')](_0x6867ea[_0x4ece38('0x39')],{[Op['or']]:_[_0x4ece38('0x25')](_0x6867ea[_0x4ece38('0x17')],function(_0x2df32d){const _0x508a4d=_0x4ece38,_0x5730b7={};return _0x5730b7[_0x2df32d]={[Op[_0x508a4d('0x10')]]:'%'+_0x1b62cc[_0x508a4d('0x24')][_0x508a4d('0x13')]+'%'},_0x5730b7;})})),_0x6867ea=_[_0x4ece38('0x4')]({},_0x6867ea,_0x1b62cc['options']),_0x1fb742[_0x4ece38('0x2b')](_0x6867ea);})[_0x5edf4b('0x20')](function(_0x2cb83a){const _0x2f655c=_0x5edf4b;if(_0x2cb83a)return _0x56c2a7=_0x2cb83a[_0x2f655c('0x1e')],typeof _0x1b62cc['query'][_0x2f655c('0x2c')]===_0x2f655c('0x23')&&(_0x6867ea[_0x2f655c('0x1')]=qs['limit'](_0x1b62cc[_0x2f655c('0x24')][_0x2f655c('0x1')]),_0x6867ea[_0x2f655c('0x3a')]=qs[_0x2f655c('0x3a')](_0x1b62cc[_0x2f655c('0x24')][_0x2f655c('0x3a')])),_0x1fb742[_0x2f655c('0x2b')](_0x6867ea);})[_0x5edf4b('0x20')](function(_0xa05aaf){if(_0xa05aaf)return _0xa05aaf?{'count':_0x56c2a7,'rows':_0xa05aaf}:null;})[_0x5edf4b('0x20')](respondWithResult(_0x4daa3a,null))[_0x5edf4b('0x1c')](handleError(_0x4daa3a,null));},exports['setTags']=function(_0x55d5ef,_0x362b94){const _0x3dc1ec=_0x5369fe;return _0x55d5ef['body']['id']&&delete _0x55d5ef['body']['id'],db['DeskConfiguration'][_0x3dc1ec('0x29')]({'where':{'id':_0x55d5ef['params']['id']}})[_0x3dc1ec('0x20')](handleEntityNotFound(_0x362b94,null))[_0x3dc1ec('0x20')](function(_0x4a201c){const _0x3c946d=_0x3dc1ec;if(_0x4a201c)return _0x4a201c[_0x3c946d('0x2e')](_0x55d5ef[_0x3c946d('0x27')][_0x3c946d('0x2a')]||[]);return null;})[_0x3dc1ec('0x20')](respondWithResult(_0x362b94,null))[_0x3dc1ec('0x1c')](handleError(_0x362b94,null));};