32a89f331154d1281cebe4f5c7bfb4af5a588c97
[motion-next.git] / server / api / action / index.js
1 const a3_0x1ff7=['destroy','put','update','/:id','isAuthenticated','Router','../../components/auth/service','exports'];(function(_0x2388ad,_0x1ff7f3){const _0x287955=function(_0x562afa){while(--_0x562afa){_0x2388ad['push'](_0x2388ad['shift']());}};_0x287955(++_0x1ff7f3);}(a3_0x1ff7,0x93));const a3_0x2879=function(_0x2388ad,_0x1ff7f3){_0x2388ad=_0x2388ad-0x0;let _0x287955=a3_0x1ff7[_0x2388ad];return _0x287955;};const _0x440ab4=a3_0x2879;'use strict';const express=require('express'),router=express[_0x440ab4('0x2')](),auth=require(_0x440ab4('0x3')),controller=require('./action.controller');router[_0x440ab4('0x6')](_0x440ab4('0x0'),auth[_0x440ab4('0x1')](),controller[_0x440ab4('0x7')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x440ab4('0x5')]),module[_0x440ab4('0x4')]=router;