Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / trigger / index.js
index e92016e..c1cef1a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb9b4=['util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','getAnyConditions','getActions','post','/:id/all_conditions','addAllCondition','addAnyCondition','/:id/actions','addAction','put','/:id','update','delete','exports','multer'];(function(_0x7b58c,_0x2a0465){var _0x112123=function(_0x5162ff){while(--_0x5162ff){_0x7b58c['push'](_0x7b58c['shift']());}};_0x112123(++_0x2a0465);}(_0xb9b4,0x137));var _0x4b9b=function(_0x57025d,_0x4bbb9a){_0x57025d=_0x57025d-0x0;var _0x35d08d=_0xb9b4[_0x57025d];return _0x35d08d;};'use strict';var multer=require(_0x4b9b('0x0'));var util=require(_0x4b9b('0x1'));var path=require(_0x4b9b('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x4b9b('0x3')]();var fs_extra=require(_0x4b9b('0x4'));var auth=require(_0x4b9b('0x5'));var interaction=require(_0x4b9b('0x6'));var config=require('../../config/environment');var controller=require('./trigger.controller');router[_0x4b9b('0x7')]('/',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0x9')]);router['get']('/:id',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0xa')]);router[_0x4b9b('0x7')]('/:id/all_conditions',auth[_0x4b9b('0x8')](),controller['getAllConditions']);router['get']('/:id/any_conditions',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0xb')]);router['get']('/:id/actions',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0xc')]);router[_0x4b9b('0xd')]('/',auth[_0x4b9b('0x8')](),controller['create']);router[_0x4b9b('0xd')](_0x4b9b('0xe'),auth['isAuthenticated'](),controller[_0x4b9b('0xf')]);router[_0x4b9b('0xd')]('/:id/any_conditions',auth[_0x4b9b('0x8')](),controller[_0x4b9b('0x10')]);router['post'](_0x4b9b('0x11'),auth[_0x4b9b('0x8')](),controller[_0x4b9b('0x12')]);router[_0x4b9b('0x13')](_0x4b9b('0x14'),auth['isAuthenticated'](),controller[_0x4b9b('0x15')]);router[_0x4b9b('0x16')](_0x4b9b('0x14'),auth[_0x4b9b('0x8')](),controller['destroy']);module[_0x4b9b('0x17')]=router;
\ No newline at end of file
+var _0xb1ef=['getAllConditions','/:id/any_conditions','getAnyConditions','/:id/actions','getActions','create','post','addAnyCondition','addAction','put','update','delete','destroy','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./trigger.controller','get','isAuthenticated','index','show','/:id/all_conditions'];(function(_0x2a2b35,_0x4ca8da){var _0x5d1bd6=function(_0x4bd0ed){while(--_0x4bd0ed){_0x2a2b35['push'](_0x2a2b35['shift']());}};_0x5d1bd6(++_0x4ca8da);}(_0xb1ef,0x107));var _0xfb1e=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xb1ef[_0x122ef9];return _0x42fba0;};'use strict';var multer=require('multer');var util=require(_0xfb1e('0x0'));var path=require('path');var timeout=require(_0xfb1e('0x1'));var express=require(_0xfb1e('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xfb1e('0x3'));var interaction=require(_0xfb1e('0x4'));var config=require(_0xfb1e('0x5'));var controller=require(_0xfb1e('0x6'));router[_0xfb1e('0x7')]('/',auth[_0xfb1e('0x8')](),controller[_0xfb1e('0x9')]);router['get']('/:id',auth[_0xfb1e('0x8')](),controller[_0xfb1e('0xa')]);router[_0xfb1e('0x7')](_0xfb1e('0xb'),auth[_0xfb1e('0x8')](),controller[_0xfb1e('0xc')]);router[_0xfb1e('0x7')](_0xfb1e('0xd'),auth['isAuthenticated'](),controller[_0xfb1e('0xe')]);router[_0xfb1e('0x7')](_0xfb1e('0xf'),auth[_0xfb1e('0x8')](),controller[_0xfb1e('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0xfb1e('0x11')]);router[_0xfb1e('0x12')](_0xfb1e('0xb'),auth[_0xfb1e('0x8')](),controller['addAllCondition']);router[_0xfb1e('0x12')](_0xfb1e('0xd'),auth[_0xfb1e('0x8')](),controller[_0xfb1e('0x13')]);router[_0xfb1e('0x12')](_0xfb1e('0xf'),auth[_0xfb1e('0x8')](),controller[_0xfb1e('0x14')]);router[_0xfb1e('0x15')]('/:id',auth['isAuthenticated'](),controller[_0xfb1e('0x16')]);router[_0xfb1e('0x17')]('/:id',auth[_0xfb1e('0x8')](),controller[_0xfb1e('0x18')]);module['exports']=router;
\ No newline at end of file