Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / tag / tag.controller.js
index 070f3e6..e0f7185 100644 (file)
@@ -1 +1 @@
-const a744_0x12b4=['../../mysqldb','sort','then','rawAttributes','findOne','end','get','filter','nolimit','status','include','json','../../config/logger','stack','where','offset','../../components/parsers/qs','length','UserProfileSection','filters','query','includeAll','sendStatus','type','error','name','order','catch','create','limit','keys','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','merge','UserProfileResource','options','autoAssociation','body','update','Tag','count','Content-Range','params','map','intersection','attributes','destroy','like','fieldName','userProfileId','sequelize','lodash','model','user'];(function(_0x20a2d0,_0x4ebd1f){const _0x12b472=function(_0x78217b){while(--_0x78217b){_0x20a2d0['push'](_0x20a2d0['shift']());}};_0x12b472(++_0x4ebd1f);}(a744_0x12b4,0xa8));const a744_0x7821=function(_0x20a2d0,_0x4ebd1f){_0x20a2d0=_0x20a2d0-0xd7;let _0x12b472=a744_0x12b4[_0x20a2d0];return _0x12b472;};const a744_0x3c9d97=a744_0x7821;'use strict';const _=require(a744_0x3c9d97(0x100)),qs=require(a744_0x3c9d97(0xde)),logger=require(a744_0x3c9d97(0xda))('api'),{db}=require(a744_0x3c9d97(0x103)),{Op}=require(a744_0x3c9d97(0xff));function respondWithResult(_0x3e74ba,_0x173408){return _0x173408=_0x173408||0xc8,function(_0x47ab8a){const _0x5028ca=a744_0x7821;if(_0x47ab8a)return _0x3e74ba[_0x5028ca(0xd7)](_0x173408)[_0x5028ca(0xd9)](_0x47ab8a);};}function respondWithFilteredResult(_0x44812a,_0x500cc8){return function(_0x3e8194){const _0x35565b=a744_0x7821;if(_0x3e8194){const _0xd5b798=_0x3e8194[_0x35565b(0xf5)],_0x4033e1=_0x500cc8[_0x35565b(0xdd)];let _0xec8c5d=_0x500cc8[_0x35565b(0xdd)]+_0x500cc8[_0x35565b(0xeb)],_0x3da9e9;return _0xec8c5d>=_0xd5b798?(_0xec8c5d=_0xd5b798,_0x3da9e9=0xc8):_0x3da9e9=0xce,_0x44812a[_0x35565b(0xd7)](_0x3da9e9),_0x44812a['set'](_0x35565b(0xf6),_0x4033e1+'-'+_0xec8c5d+'/'+_0xd5b798)['json'](_0x3e8194);}return null;};}function saveUpdates(_0x190f67){return function(_0x1eddc9){const _0x3f7edb=a744_0x7821;if(_0x1eddc9)return _0x1eddc9[_0x3f7edb(0xf3)](_0x190f67)['then'](function(_0x28cba9){return _0x28cba9;});return null;};}function removeEntity(_0x3741cd){return function(_0x255779){const _0xe2ca64=a744_0x7821;if(_0x255779)return _0x255779[_0xe2ca64(0xfb)]()[_0xe2ca64(0x105)](function(){const _0x58ce8e=_0xe2ca64,_0x4828fa=_0x255779['get']({'plain':!![]}),_0x13e3c0='Tags';return db[_0x58ce8e(0xef)][_0x58ce8e(0xfb)]({'where':{'type':_0x13e3c0,'resourceId':_0x4828fa['id']}})['then'](function(){return _0x255779;});})[_0xe2ca64(0x105)](function(){const _0xee4e8e=_0xe2ca64;_0x3741cd['status'](0xcc)[_0xee4e8e(0x108)]();});};}function handleEntityNotFound(_0x28906f){return function(_0x586eea){const _0x4c2add=a744_0x7821;return!_0x586eea&&_0x28906f[_0x4c2add(0xe4)](0x194),_0x586eea;};}function handleError(_0x301eb2,_0x480bc2){return _0x480bc2=_0x480bc2||0x1f4,function(_0x2a2242){const _0x125d6d=a744_0x7821;logger['error'](_0x2a2242[_0x125d6d(0xdb)]),_0x2a2242[_0x125d6d(0xe7)]&&delete _0x2a2242[_0x125d6d(0xe7)],_0x301eb2[_0x125d6d(0xd7)](_0x480bc2)['send'](_0x2a2242);};}exports['index']=function(_0x57ceee,_0x394836){const _0x10ba33=a744_0x3c9d97;let _0x97ec4={};const _0x1ec71c={},_0x1a07d3={'count':0x0,'rows':[]},_0x173671=_[_0x10ba33(0xf8)](db['Tag'][_0x10ba33(0x106)],function(_0xdaec6f){const _0x35494a=_0x10ba33;return{'name':_0xdaec6f[_0x35494a(0xfd)],'type':_0xdaec6f[_0x35494a(0xe5)]['key']};});_0x1ec71c[_0x10ba33(0x101)]=_[_0x10ba33(0xf8)](_0x173671,_0x10ba33(0xe7)),_0x1ec71c[_0x10ba33(0xe2)]=_['keys'](_0x57ceee[_0x10ba33(0xe2)]),_0x1ec71c[_0x10ba33(0xe1)]=_['intersection'](_0x1ec71c[_0x10ba33(0x101)],_0x1ec71c['query']),_0x97ec4[_0x10ba33(0xfa)]=_['intersection'](_0x1ec71c[_0x10ba33(0x101)],qs['fields'](_0x57ceee[_0x10ba33(0xe2)]['fields'])),_0x97ec4[_0x10ba33(0xfa)]=_0x97ec4[_0x10ba33(0xfa)][_0x10ba33(0xdf)]?_0x97ec4[_0x10ba33(0xfa)]:_0x1ec71c['model'];typeof _0x57ceee[_0x10ba33(0xe2)][_0x10ba33(0x10b)]==='undefined'&&(_0x97ec4[_0x10ba33(0xeb)]=qs[_0x10ba33(0xeb)](_0x57ceee['query'][_0x10ba33(0xeb)]),_0x97ec4[_0x10ba33(0xdd)]=qs['offset'](_0x57ceee[_0x10ba33(0xe2)][_0x10ba33(0xdd)]));_0x97ec4[_0x10ba33(0xe8)]=qs[_0x10ba33(0x104)](_0x57ceee[_0x10ba33(0xe2)]['sort']),_0x97ec4[_0x10ba33(0xdc)]=qs['filters'](_['pick'](_0x57ceee[_0x10ba33(0xe2)],_0x1ec71c[_0x10ba33(0xe1)]),_0x173671);_0x57ceee['query'][_0x10ba33(0x10a)]&&(_0x97ec4[_0x10ba33(0xdc)]=_[_0x10ba33(0xee)](_0x97ec4[_0x10ba33(0xdc)],{[Op['or']]:_[_0x10ba33(0xf8)](_0x173671,function(_0x23d8ba){const _0x4cb54f=_0x10ba33;if(_0x23d8ba[_0x4cb54f(0xe5)]!=='VIRTUAL'){const _0x420e52={};return _0x420e52[_0x23d8ba['name']]={[Op[_0x4cb54f(0xfc)]]:'%'+_0x57ceee['query'][_0x4cb54f(0x10a)]+'%'},_0x420e52;}})}));_0x97ec4=_['merge']({},_0x97ec4,_0x57ceee[_0x10ba33(0xf0)]);const _0x6f8ac3={'where':_0x97ec4[_0x10ba33(0xdc)]};return db[_0x10ba33(0xf4)][_0x10ba33(0xf5)](_0x6f8ac3)[_0x10ba33(0x105)](function(_0x178188){const _0x24bf30=_0x10ba33;return _0x1a07d3[_0x24bf30(0xf5)]=_0x178188,_0x57ceee[_0x24bf30(0xe2)][_0x24bf30(0xe3)]&&(_0x97ec4[_0x24bf30(0xd8)]=[{'all':!![]}]),db[_0x24bf30(0xf4)]['findAll'](_0x97ec4);})[_0x10ba33(0x105)](function(_0x341577){return _0x1a07d3['rows']=_0x341577,_0x1a07d3;})[_0x10ba33(0x105)](respondWithFilteredResult(_0x394836,_0x97ec4))['catch'](handleError(_0x394836,null));},exports['show']=function(_0x44ff3e,_0x374a46){const _0x382b7c=a744_0x3c9d97;let _0x482206={'raw':!![],'where':{'id':_0x44ff3e[_0x382b7c(0xf7)]['id']}};const _0x309887={};return _0x309887[_0x382b7c(0x101)]=_[_0x382b7c(0xec)](db[_0x382b7c(0xf4)][_0x382b7c(0x106)]),_0x309887['query']=_[_0x382b7c(0xec)](_0x44ff3e['query']),_0x309887[_0x382b7c(0xe1)]=_[_0x382b7c(0xf9)](_0x309887[_0x382b7c(0x101)],_0x309887[_0x382b7c(0xe2)]),_0x482206[_0x382b7c(0xfa)]=_[_0x382b7c(0xf9)](_0x309887[_0x382b7c(0x101)],qs['fields'](_0x44ff3e[_0x382b7c(0xe2)]['fields'])),_0x482206['attributes']=_0x482206[_0x382b7c(0xfa)][_0x382b7c(0xdf)]?_0x482206[_0x382b7c(0xfa)]:_0x309887[_0x382b7c(0x101)],_0x44ff3e['query']['includeAll']&&(_0x482206[_0x382b7c(0xd8)]=[{'all':!![]}]),_0x482206=_['merge']({},_0x482206,_0x44ff3e[_0x382b7c(0xf0)]),db['Tag'][_0x382b7c(0x107)](_0x482206)['then'](handleEntityNotFound(_0x374a46,null))[_0x382b7c(0x105)](respondWithResult(_0x374a46,null))[_0x382b7c(0xe9)](handleError(_0x374a46,null));},exports[a744_0x3c9d97(0xea)]=function(_0x312133,_0x1445f6){const _0x5d2185=a744_0x3c9d97;return db[_0x5d2185(0xf4)][_0x5d2185(0xea)](_0x312133['body'],{})[_0x5d2185(0x105)](function(_0x744caf){const _0x21ebac=_0x5d2185,_0x25f9a4=_0x312133[_0x21ebac(0x102)][_0x21ebac(0x109)]({'plain':!![]});if(!_0x25f9a4)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x25f9a4['role']==='user'){const _0x247c02=_0x744caf[_0x21ebac(0x109)]({'plain':!![]}),_0x939ecb='Tags';return db[_0x21ebac(0xe0)][_0x21ebac(0x107)]({'where':{'name':_0x939ecb,'userProfileId':_0x25f9a4[_0x21ebac(0xfe)]},'raw':!![]})['then'](function(_0xef3237){const _0x3f1d40=_0x21ebac;return _0xef3237&&_0xef3237[_0x3f1d40(0xf1)]===0x0?db[_0x3f1d40(0xef)][_0x3f1d40(0xea)]({'name':_0x247c02[_0x3f1d40(0xe7)],'resourceId':_0x247c02['id'],'type':_0xef3237['name'],'sectionId':_0xef3237['id']},{})['then'](function(){return _0x744caf;}):_0x744caf;})[_0x21ebac(0xe9)](function(_0x1007a4){const _0xd3e8c1=_0x21ebac;logger[_0xd3e8c1(0xe6)](_0xd3e8c1(0xed),_0x1007a4);throw _0x1007a4;});}return _0x744caf;})['then'](respondWithResult(_0x1445f6,0xc9))['catch'](handleError(_0x1445f6,null));},exports['update']=function(_0x5d76a7,_0x2728bb){const _0x1314d7=a744_0x3c9d97;return _0x5d76a7[_0x1314d7(0xf2)]['id']&&delete _0x5d76a7['body']['id'],db[_0x1314d7(0xf4)]['findOne']({'where':{'id':_0x5d76a7[_0x1314d7(0xf7)]['id']}})[_0x1314d7(0x105)](handleEntityNotFound(_0x2728bb,null))[_0x1314d7(0x105)](saveUpdates(_0x5d76a7['body'],null))[_0x1314d7(0x105)](respondWithResult(_0x2728bb,null))[_0x1314d7(0xe9)](handleError(_0x2728bb,null));},exports['destroy']=function(_0x4fc869,_0x319ca2){const _0x28b7b8=a744_0x3c9d97;return db[_0x28b7b8(0xf4)]['findOne']({'where':{'id':_0x4fc869[_0x28b7b8(0xf7)]['id']}})[_0x28b7b8(0x105)](handleEntityNotFound(_0x319ca2,null))[_0x28b7b8(0x105)](removeEntity(_0x319ca2,null))[_0x28b7b8(0xe9)](handleError(_0x319ca2,null));};
\ No newline at end of file
+const a744_0x7601=['end','sort','../../components/parsers/qs','rows','destroy','map','merge','Unable\x20to\x20retrieve\x20the\x20current\x20user','query','like','type','json','name','findOne','key','create','where','Content-Range','fieldName','options','include','filters','body','model','sequelize','findAll','rawAttributes','status','api','intersection','sendStatus','order','lodash','UserProfileResource','role','Tag','count','../../config/logger','autoAssociation','keys','filter','Tags','error','offset','get','limit','length','then','catch','update','set','includeAll','pick','send','params','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','user','userProfileId','nolimit','../../mysqldb','fields','attributes','undefined'];(function(_0x21aa14,_0x2947b3){const _0x76015d=function(_0xfcd536){while(--_0xfcd536){_0x21aa14['push'](_0x21aa14['shift']());}};_0x76015d(++_0x2947b3);}(a744_0x7601,0x166));const a744_0xfcd5=function(_0x21aa14,_0x2947b3){_0x21aa14=_0x21aa14-0x88;let _0x76015d=a744_0x7601[_0x21aa14];return _0x76015d;};const a744_0xe09a1c=a744_0xfcd5;'use strict';const _=require(a744_0xe09a1c(0xbc)),qs=require(a744_0xe09a1c(0x9e)),logger=require(a744_0xe09a1c(0xc1))(a744_0xe09a1c(0xb8)),{db}=require(a744_0xe09a1c(0x98)),{Op}=require(a744_0xe09a1c(0xb4));function respondWithResult(_0x5170b9,_0x337c8a){return _0x337c8a=_0x337c8a||0xc8,function(_0x524e58){const _0x144d93=a744_0xfcd5;if(_0x524e58)return _0x5170b9[_0x144d93(0xb7)](_0x337c8a)[_0x144d93(0xa7)](_0x524e58);};}function respondWithFilteredResult(_0x288350,_0x4b2847){return function(_0x34a25e){const _0x55fbcb=a744_0xfcd5;if(_0x34a25e){const _0x3d84a8=_0x34a25e[_0x55fbcb(0xc0)],_0x3b2b0a=_0x4b2847[_0x55fbcb(0x88)];let _0x5d7ad5=_0x4b2847[_0x55fbcb(0x88)]+_0x4b2847[_0x55fbcb(0x8a)],_0x18b990;return _0x5d7ad5>=_0x3d84a8?(_0x5d7ad5=_0x3d84a8,_0x18b990=0xc8):_0x18b990=0xce,_0x288350['status'](_0x18b990),_0x288350[_0x55fbcb(0x8f)](_0x55fbcb(0xad),_0x3b2b0a+'-'+_0x5d7ad5+'/'+_0x3d84a8)[_0x55fbcb(0xa7)](_0x34a25e);}return null;};}function saveUpdates(_0x33bd9e){return function(_0x41176e){const _0x2c51d1=a744_0xfcd5;if(_0x41176e)return _0x41176e[_0x2c51d1(0x8e)](_0x33bd9e)['then'](function(_0x4f8fca){return _0x4f8fca;});return null;};}function removeEntity(_0x2f2727){return function(_0xf12077){const _0x13bf3c=a744_0xfcd5;if(_0xf12077)return _0xf12077[_0x13bf3c(0xa0)]()[_0x13bf3c(0x8c)](function(){const _0x4976a6=_0x13bf3c,_0x21ea89=_0xf12077[_0x4976a6(0x89)]({'plain':!![]}),_0x349144='Tags';return db['UserProfileResource'][_0x4976a6(0xa0)]({'where':{'type':_0x349144,'resourceId':_0x21ea89['id']}})[_0x4976a6(0x8c)](function(){return _0xf12077;});})[_0x13bf3c(0x8c)](function(){const _0x566c69=_0x13bf3c;_0x2f2727[_0x566c69(0xb7)](0xcc)[_0x566c69(0x9c)]();});};}function handleEntityNotFound(_0x3b04e9){return function(_0x5e0e3a){const _0x2724a3=a744_0xfcd5;return!_0x5e0e3a&&_0x3b04e9[_0x2724a3(0xba)](0x194),_0x5e0e3a;};}function handleError(_0x598964,_0x1dc45f){return _0x1dc45f=_0x1dc45f||0x1f4,function(_0x50798b){const _0x7cad25=a744_0xfcd5;logger[_0x7cad25(0xc6)](_0x50798b['stack']),_0x50798b['name']&&delete _0x50798b[_0x7cad25(0xa8)],_0x598964[_0x7cad25(0xb7)](_0x1dc45f)[_0x7cad25(0x92)](_0x50798b);};}exports['index']=function(_0x696a00,_0x1e7263){const _0x462388=a744_0xe09a1c;let _0x1972b5={};const _0x504601={},_0x1da3cb={'count':0x0,'rows':[]},_0x44aeb0=_['map'](db[_0x462388(0xbf)][_0x462388(0xb6)],function(_0x501adb){const _0x3fa625=_0x462388;return{'name':_0x501adb[_0x3fa625(0xae)],'type':_0x501adb[_0x3fa625(0xa6)][_0x3fa625(0xaa)]};});_0x504601['model']=_[_0x462388(0xa1)](_0x44aeb0,_0x462388(0xa8)),_0x504601[_0x462388(0xa4)]=_[_0x462388(0xc3)](_0x696a00[_0x462388(0xa4)]),_0x504601['filters']=_[_0x462388(0xb9)](_0x504601['model'],_0x504601[_0x462388(0xa4)]),_0x1972b5[_0x462388(0x9a)]=_['intersection'](_0x504601[_0x462388(0xb3)],qs[_0x462388(0x99)](_0x696a00[_0x462388(0xa4)][_0x462388(0x99)])),_0x1972b5[_0x462388(0x9a)]=_0x1972b5[_0x462388(0x9a)][_0x462388(0x8b)]?_0x1972b5['attributes']:_0x504601['model'];typeof _0x696a00['query'][_0x462388(0x97)]===_0x462388(0x9b)&&(_0x1972b5[_0x462388(0x8a)]=qs['limit'](_0x696a00['query'][_0x462388(0x8a)]),_0x1972b5[_0x462388(0x88)]=qs['offset'](_0x696a00[_0x462388(0xa4)][_0x462388(0x88)]));_0x1972b5[_0x462388(0xbb)]=qs[_0x462388(0x9d)](_0x696a00[_0x462388(0xa4)][_0x462388(0x9d)]),_0x1972b5['where']=qs[_0x462388(0xb1)](_[_0x462388(0x91)](_0x696a00[_0x462388(0xa4)],_0x504601[_0x462388(0xb1)]),_0x44aeb0);_0x696a00['query'][_0x462388(0xc4)]&&(_0x1972b5['where']=_['merge'](_0x1972b5['where'],{[Op['or']]:_[_0x462388(0xa1)](_0x44aeb0,function(_0x504003){const _0x1e0e82=_0x462388;if(_0x504003[_0x1e0e82(0xa6)]!=='VIRTUAL'){const _0x1b51cc={};return _0x1b51cc[_0x504003['name']]={[Op[_0x1e0e82(0xa5)]]:'%'+_0x696a00[_0x1e0e82(0xa4)][_0x1e0e82(0xc4)]+'%'},_0x1b51cc;}})}));_0x1972b5=_[_0x462388(0xa2)]({},_0x1972b5,_0x696a00[_0x462388(0xaf)]);const _0x16a695={'where':_0x1972b5[_0x462388(0xac)]};return db[_0x462388(0xbf)][_0x462388(0xc0)](_0x16a695)[_0x462388(0x8c)](function(_0x631963){const _0x418fb3=_0x462388;return _0x1da3cb[_0x418fb3(0xc0)]=_0x631963,_0x696a00['query']['includeAll']&&(_0x1972b5[_0x418fb3(0xb0)]=[{'all':!![]}]),db[_0x418fb3(0xbf)][_0x418fb3(0xb5)](_0x1972b5);})[_0x462388(0x8c)](function(_0x4e80b2){const _0x2ab2b3=_0x462388;return _0x1da3cb[_0x2ab2b3(0x9f)]=_0x4e80b2,_0x1da3cb;})['then'](respondWithFilteredResult(_0x1e7263,_0x1972b5))[_0x462388(0x8d)](handleError(_0x1e7263,null));},exports['show']=function(_0x50d90b,_0x3f1d7e){const _0x5bb0ea=a744_0xe09a1c;let _0x3c538a={'raw':!![],'where':{'id':_0x50d90b[_0x5bb0ea(0x93)]['id']}};const _0x834686={};return _0x834686[_0x5bb0ea(0xb3)]=_[_0x5bb0ea(0xc3)](db[_0x5bb0ea(0xbf)][_0x5bb0ea(0xb6)]),_0x834686[_0x5bb0ea(0xa4)]=_[_0x5bb0ea(0xc3)](_0x50d90b[_0x5bb0ea(0xa4)]),_0x834686[_0x5bb0ea(0xb1)]=_[_0x5bb0ea(0xb9)](_0x834686[_0x5bb0ea(0xb3)],_0x834686[_0x5bb0ea(0xa4)]),_0x3c538a[_0x5bb0ea(0x9a)]=_[_0x5bb0ea(0xb9)](_0x834686[_0x5bb0ea(0xb3)],qs[_0x5bb0ea(0x99)](_0x50d90b[_0x5bb0ea(0xa4)]['fields'])),_0x3c538a[_0x5bb0ea(0x9a)]=_0x3c538a[_0x5bb0ea(0x9a)][_0x5bb0ea(0x8b)]?_0x3c538a[_0x5bb0ea(0x9a)]:_0x834686[_0x5bb0ea(0xb3)],_0x50d90b[_0x5bb0ea(0xa4)][_0x5bb0ea(0x90)]&&(_0x3c538a[_0x5bb0ea(0xb0)]=[{'all':!![]}]),_0x3c538a=_[_0x5bb0ea(0xa2)]({},_0x3c538a,_0x50d90b['options']),db['Tag']['findOne'](_0x3c538a)[_0x5bb0ea(0x8c)](handleEntityNotFound(_0x3f1d7e,null))[_0x5bb0ea(0x8c)](respondWithResult(_0x3f1d7e,null))[_0x5bb0ea(0x8d)](handleError(_0x3f1d7e,null));},exports[a744_0xe09a1c(0xab)]=function(_0x16df8c,_0x436a60){const _0x21bcc6=a744_0xe09a1c;return db[_0x21bcc6(0xbf)][_0x21bcc6(0xab)](_0x16df8c['body'],{})[_0x21bcc6(0x8c)](function(_0x26e632){const _0x478e79=_0x21bcc6,_0x1ead62=_0x16df8c[_0x478e79(0x95)][_0x478e79(0x89)]({'plain':!![]});if(!_0x1ead62)throw new Error(_0x478e79(0xa3));if(_0x1ead62[_0x478e79(0xbe)]==='user'){const _0x2c5659=_0x26e632['get']({'plain':!![]}),_0x112c60=_0x478e79(0xc5);return db['UserProfileSection'][_0x478e79(0xa9)]({'where':{'name':_0x112c60,'userProfileId':_0x1ead62[_0x478e79(0x96)]},'raw':!![]})[_0x478e79(0x8c)](function(_0x22e680){const _0x2c6b14=_0x478e79;return _0x22e680&&_0x22e680[_0x2c6b14(0xc2)]===0x0?db[_0x2c6b14(0xbd)]['create']({'name':_0x2c5659['name'],'resourceId':_0x2c5659['id'],'type':_0x22e680[_0x2c6b14(0xa8)],'sectionId':_0x22e680['id']},{})[_0x2c6b14(0x8c)](function(){return _0x26e632;}):_0x26e632;})[_0x478e79(0x8d)](function(_0x1e9cf5){const _0x563c0d=_0x478e79;logger[_0x563c0d(0xc6)](_0x563c0d(0x94),_0x1e9cf5);throw _0x1e9cf5;});}return _0x26e632;})[_0x21bcc6(0x8c)](respondWithResult(_0x436a60,0xc9))[_0x21bcc6(0x8d)](handleError(_0x436a60,null));},exports[a744_0xe09a1c(0x8e)]=function(_0x5cfbb2,_0x828890){const _0x3e1716=a744_0xe09a1c;return _0x5cfbb2['body']['id']&&delete _0x5cfbb2[_0x3e1716(0xb2)]['id'],db[_0x3e1716(0xbf)][_0x3e1716(0xa9)]({'where':{'id':_0x5cfbb2[_0x3e1716(0x93)]['id']}})['then'](handleEntityNotFound(_0x828890,null))[_0x3e1716(0x8c)](saveUpdates(_0x5cfbb2[_0x3e1716(0xb2)],null))['then'](respondWithResult(_0x828890,null))[_0x3e1716(0x8d)](handleError(_0x828890,null));},exports[a744_0xe09a1c(0xa0)]=function(_0x53c62b,_0x3361e8){const _0x2a75ad=a744_0xe09a1c;return db['Tag'][_0x2a75ad(0xa9)]({'where':{'id':_0x53c62b['params']['id']}})['then'](handleEntityNotFound(_0x3361e8,null))[_0x2a75ad(0x8c)](removeEntity(_0x3361e8,null))[_0x2a75ad(0x8d)](handleError(_0x3361e8,null));};
\ No newline at end of file