Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / automation / index.js
index 3c53b8a..d0f11bb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xff98=['/:id/conditions','getConditions','/:id/actions','getActions','post','addConditions','addActions','put','update','delete','destroy','exports','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','./automation.controller','isAuthenticated','index','get','/:id','show'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xff98,0x9c));var _0x8ff9=function(_0x11c8a5,_0x42f600){_0x11c8a5=_0x11c8a5-0x0;var _0x463084=_0xff98[_0x11c8a5];return _0x463084;};'use strict';var multer=require('multer');var util=require(_0x8ff9('0x0'));var path=require(_0x8ff9('0x1'));var timeout=require(_0x8ff9('0x2'));var express=require(_0x8ff9('0x3'));var router=express['Router']();var fs_extra=require(_0x8ff9('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x8ff9('0x5'));var config=require('../../config/environment');var controller=require(_0x8ff9('0x6'));router['get']('/',auth[_0x8ff9('0x7')](),controller[_0x8ff9('0x8')]);router[_0x8ff9('0x9')](_0x8ff9('0xa'),auth[_0x8ff9('0x7')](),controller[_0x8ff9('0xb')]);router[_0x8ff9('0x9')](_0x8ff9('0xc'),auth['isAuthenticated'](),controller[_0x8ff9('0xd')]);router[_0x8ff9('0x9')](_0x8ff9('0xe'),auth[_0x8ff9('0x7')](),controller[_0x8ff9('0xf')]);router[_0x8ff9('0x10')]('/',auth[_0x8ff9('0x7')](),controller['create']);router['post']('/:id/conditions',auth[_0x8ff9('0x7')](),controller[_0x8ff9('0x11')]);router[_0x8ff9('0x10')]('/:id/actions',auth[_0x8ff9('0x7')](),controller[_0x8ff9('0x12')]);router[_0x8ff9('0x13')](_0x8ff9('0xa'),auth[_0x8ff9('0x7')](),controller[_0x8ff9('0x14')]);router[_0x8ff9('0x15')]('/:id',auth[_0x8ff9('0x7')](),controller[_0x8ff9('0x16')]);module[_0x8ff9('0x17')]=router;
\ No newline at end of file
+var _0x49c4=['../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','/:id/conditions','getConditions','/:id/actions','getActions','create','post','addActions','update','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra'];(function(_0xe7895e,_0xc15331){var _0x387475=function(_0x247fc4){while(--_0x247fc4){_0xe7895e['push'](_0xe7895e['shift']());}};_0x387475(++_0xc15331);}(_0x49c4,0x9b));var _0x449c=function(_0x3511d3,_0x4107ae){_0x3511d3=_0x3511d3-0x0;var _0x5d6321=_0x49c4[_0x3511d3];return _0x5d6321;};'use strict';var multer=require(_0x449c('0x0'));var util=require('util');var path=require(_0x449c('0x1'));var timeout=require(_0x449c('0x2'));var express=require(_0x449c('0x3'));var router=express[_0x449c('0x4')]();var fs_extra=require(_0x449c('0x5'));var auth=require(_0x449c('0x6'));var interaction=require(_0x449c('0x7'));var config=require('../../config/environment');var controller=require('./automation.controller');router[_0x449c('0x8')]('/',auth[_0x449c('0x9')](),controller[_0x449c('0xa')]);router[_0x449c('0x8')](_0x449c('0xb'),auth[_0x449c('0x9')](),controller[_0x449c('0xc')]);router[_0x449c('0x8')](_0x449c('0xd'),auth[_0x449c('0x9')](),controller[_0x449c('0xe')]);router[_0x449c('0x8')](_0x449c('0xf'),auth[_0x449c('0x9')](),controller[_0x449c('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0x449c('0x11')]);router[_0x449c('0x12')]('/:id/conditions',auth['isAuthenticated'](),controller['addConditions']);router[_0x449c('0x12')](_0x449c('0xf'),auth[_0x449c('0x9')](),controller[_0x449c('0x13')]);router['put'](_0x449c('0xb'),auth['isAuthenticated'](),controller[_0x449c('0x14')]);router['delete'](_0x449c('0xb'),auth[_0x449c('0x9')](),controller[_0x449c('0x15')]);module[_0x449c('0x16')]=router;
\ No newline at end of file