bf972847d330eabccd1b33c362007c9be88e8935
[motion-next.git] / server / api / action / index.js
1 const a3_0x1d56=['express','exports','delete','update','destroy','Router','/:id','../../components/auth/service'];(function(_0x5e7ba3,_0x1d563c){const _0x25754e=function(_0x446e91){while(--_0x446e91){_0x5e7ba3['push'](_0x5e7ba3['shift']());}};_0x25754e(++_0x1d563c);}(a3_0x1d56,0x1e0));const a3_0x2575=function(_0x5e7ba3,_0x1d563c){_0x5e7ba3=_0x5e7ba3-0x0;let _0x25754e=a3_0x1d56[_0x5e7ba3];return _0x25754e;};const _0x1beed1=a3_0x2575;'use strict';const express=require(_0x1beed1('0x0')),router=express[_0x1beed1('0x5')](),auth=require(_0x1beed1('0x7')),controller=require('./action.controller');router['put'](_0x1beed1('0x6'),auth['isAuthenticated'](),controller[_0x1beed1('0x3')]),router[_0x1beed1('0x2')]('/:id',auth['isAuthenticated'](),controller[_0x1beed1('0x4')]),module[_0x1beed1('0x1')]=router;