Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / automation / index.js
index e53c292..43c45bf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4eb1=['/:id/actions','getActions','post','addConditions','addActions','update','destroy','exports','multer','util','path','connect-timeout','express','../../components/interaction/service','get','isAuthenticated','index','/:id','show','/:id/conditions','getConditions'];(function(_0x2350bd,_0x1297df){var _0x491cbf=function(_0xdd8e87){while(--_0xdd8e87){_0x2350bd['push'](_0x2350bd['shift']());}};_0x491cbf(++_0x1297df);}(_0x4eb1,0x71));var _0x14eb=function(_0x58f942,_0x1cfa53){_0x58f942=_0x58f942-0x0;var _0x516129=_0x4eb1[_0x58f942];return _0x516129;};'use strict';var multer=require(_0x14eb('0x0'));var util=require(_0x14eb('0x1'));var path=require(_0x14eb('0x2'));var timeout=require(_0x14eb('0x3'));var express=require(_0x14eb('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x14eb('0x5'));var config=require('../../config/environment');var controller=require('./automation.controller');router[_0x14eb('0x6')]('/',auth[_0x14eb('0x7')](),controller[_0x14eb('0x8')]);router[_0x14eb('0x6')](_0x14eb('0x9'),auth['isAuthenticated'](),controller[_0x14eb('0xa')]);router[_0x14eb('0x6')](_0x14eb('0xb'),auth['isAuthenticated'](),controller[_0x14eb('0xc')]);router[_0x14eb('0x6')](_0x14eb('0xd'),auth[_0x14eb('0x7')](),controller[_0x14eb('0xe')]);router[_0x14eb('0xf')]('/',auth[_0x14eb('0x7')](),controller['create']);router[_0x14eb('0xf')](_0x14eb('0xb'),auth[_0x14eb('0x7')](),controller[_0x14eb('0x10')]);router['post']('/:id/actions',auth[_0x14eb('0x7')](),controller[_0x14eb('0x11')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x14eb('0x12')]);router['delete'](_0x14eb('0x9'),auth['isAuthenticated'](),controller[_0x14eb('0x13')]);module[_0x14eb('0x14')]=router;
\ No newline at end of file
+var _0x202c=['isAuthenticated','index','/:id','show','get','/:id/conditions','getConditions','/:id/actions','getActions','post','create','addConditions','addActions','put','update','destroy','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./automation.controller'];(function(_0x3b5894,_0x23f484){var _0x358d4c=function(_0x3ed01e){while(--_0x3ed01e){_0x3b5894['push'](_0x3b5894['shift']());}};_0x358d4c(++_0x23f484);}(_0x202c,0x178));var _0xc202=function(_0x25057a,_0x43a0fd){_0x25057a=_0x25057a-0x0;var _0x408369=_0x202c[_0x25057a];return _0x408369;};'use strict';var multer=require(_0xc202('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xc202('0x1'));var express=require(_0xc202('0x2'));var router=express[_0xc202('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xc202('0x4'));var interaction=require(_0xc202('0x5'));var config=require(_0xc202('0x6'));var controller=require(_0xc202('0x7'));router['get']('/',auth[_0xc202('0x8')](),controller[_0xc202('0x9')]);router['get'](_0xc202('0xa'),auth['isAuthenticated'](),controller[_0xc202('0xb')]);router[_0xc202('0xc')](_0xc202('0xd'),auth[_0xc202('0x8')](),controller[_0xc202('0xe')]);router[_0xc202('0xc')](_0xc202('0xf'),auth[_0xc202('0x8')](),controller[_0xc202('0x10')]);router[_0xc202('0x11')]('/',auth[_0xc202('0x8')](),controller[_0xc202('0x12')]);router[_0xc202('0x11')]('/:id/conditions',auth[_0xc202('0x8')](),controller[_0xc202('0x13')]);router[_0xc202('0x11')](_0xc202('0xf'),auth[_0xc202('0x8')](),controller[_0xc202('0x14')]);router[_0xc202('0x15')]('/:id',auth[_0xc202('0x8')](),controller[_0xc202('0x16')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xc202('0x17')]);module['exports']=router;
\ No newline at end of file