0a30aad79ed3b4febe94bd9a34f72efc63102838
[motion-next.git] / server / api / interval / index.js
1 const a365_0x210e=['post','get','/:id/sub_intervals','index','exports','isAuthenticated','show','Router','addInterval','addIntervals','/:id/sub_intervals/create_many','../../components/auth/service','destroy','express','update','put','/:id','create'];(function(_0x2bf1b7,_0x210e05){const _0x22ea86=function(_0x3d8a3f){while(--_0x3d8a3f){_0x2bf1b7['push'](_0x2bf1b7['shift']());}};_0x22ea86(++_0x210e05);}(a365_0x210e,0xca));const a365_0x22ea=function(_0x2bf1b7,_0x210e05){_0x2bf1b7=_0x2bf1b7-0x0;let _0x22ea86=a365_0x210e[_0x2bf1b7];return _0x22ea86;};const _0xce330b=a365_0x22ea;'use strict';const express=require(_0xce330b('0x9')),router=express[_0xce330b('0x3')](),auth=require(_0xce330b('0x7')),controller=require('./interval.controller');router[_0xce330b('0xf')]('/',auth['isAuthenticated'](),controller[_0xce330b('0x11')]),router[_0xce330b('0xf')](_0xce330b('0xc'),auth[_0xce330b('0x1')](),controller[_0xce330b('0x2')]),router[_0xce330b('0xf')]('/:id/sub_intervals',auth[_0xce330b('0x1')](),controller['getIntervals']),router[_0xce330b('0xe')]('/',auth[_0xce330b('0x1')](),controller[_0xce330b('0xd')]),router[_0xce330b('0xe')](_0xce330b('0x10'),auth['isAuthenticated'](),controller[_0xce330b('0x4')]),router['post'](_0xce330b('0x6'),auth[_0xce330b('0x1')](),controller[_0xce330b('0x5')]),router[_0xce330b('0xb')](_0xce330b('0xc'),auth[_0xce330b('0x1')](),controller[_0xce330b('0xa')]),router['delete']('/:id',auth[_0xce330b('0x1')](),controller[_0xce330b('0x8')]),module[_0xce330b('0x0')]=router;