ab3a11a5d0842a71e18a01898e088a25b67f40e4
[motion-next.git] / server / api / automation / index.js
1 const a40_0x4f6d=['/:id','create','put','/:id/actions','./automation.controller','express','exports','get','addConditions','destroy','update','Router','/:id/conditions','delete','addActions','isAuthenticated','index','post','getConditions'];(function(_0x559943,_0x4f6dc9){const _0xd8114d=function(_0x2e5c5d){while(--_0x2e5c5d){_0x559943['push'](_0x559943['shift']());}};_0xd8114d(++_0x4f6dc9);}(a40_0x4f6d,0x177));const a40_0xd811=function(_0x559943,_0x4f6dc9){_0x559943=_0x559943-0x0;let _0xd8114d=a40_0x4f6d[_0x559943];return _0xd8114d;};const _0x153e60=a40_0xd811;'use strict';const express=require(_0x153e60('0xa')),router=express[_0x153e60('0x10')](),auth=require('../../components/auth/service'),controller=require(_0x153e60('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x153e60('0x2')]),router[_0x153e60('0xc')](_0x153e60('0x5'),auth[_0x153e60('0x1')](),controller['show']),router[_0x153e60('0xc')]('/:id/conditions',auth['isAuthenticated'](),controller[_0x153e60('0x4')]),router[_0x153e60('0xc')]('/:id/actions',auth[_0x153e60('0x1')](),controller['getActions']),router['post']('/',auth[_0x153e60('0x1')](),controller[_0x153e60('0x6')]),router[_0x153e60('0x3')](_0x153e60('0x11'),auth[_0x153e60('0x1')](),controller[_0x153e60('0xd')]),router[_0x153e60('0x3')](_0x153e60('0x8'),auth[_0x153e60('0x1')](),controller[_0x153e60('0x0')]),router[_0x153e60('0x7')](_0x153e60('0x5'),auth[_0x153e60('0x1')](),controller[_0x153e60('0xf')]),router[_0x153e60('0x12')]('/:id',auth[_0x153e60('0x1')](),controller[_0x153e60('0xe')]),module[_0x153e60('0xb')]=router;