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