45c51115e4cde3df6e10e1304b015319f655f867
[motion-next.git] / server / api / template / index.js
1 const a631_0x73d2=['update','destroy','./template.controller','Router','/:id','delete','create','exports','put','express','get','index','isAuthenticated'];(function(_0x1677f6,_0x73d21f){const _0x1b5775=function(_0xb255c6){while(--_0xb255c6){_0x1677f6['push'](_0x1677f6['shift']());}};_0x1b5775(++_0x73d21f);}(a631_0x73d2,0x77));const a631_0x1b57=function(_0x1677f6,_0x73d21f){_0x1677f6=_0x1677f6-0x0;let _0x1b5775=a631_0x73d2[_0x1677f6];return _0x1b5775;};const _0xba0078=a631_0x1b57;'use strict';const express=require(_0xba0078('0x7')),router=express[_0xba0078('0x1')](),auth=require('../../components/auth/service'),controller=require(_0xba0078('0x0'));router[_0xba0078('0x8')]('/',auth[_0xba0078('0xa')](),controller[_0xba0078('0x9')]),router[_0xba0078('0x8')](_0xba0078('0x2'),auth['isAuthenticated'](),controller['show']),router['post']('/',auth[_0xba0078('0xa')](),controller[_0xba0078('0x4')]),router[_0xba0078('0x6')](_0xba0078('0x2'),auth[_0xba0078('0xa')](),controller[_0xba0078('0xb')]),router[_0xba0078('0x3')](_0xba0078('0x2'),auth['isAuthenticated'](),controller[_0xba0078('0xc')]),module[_0xba0078('0x5')]=router;