Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / api / trigger / index.js
index bc26774..8e4ddb9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8bf1=['addAnyCondition','addAction','put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get','isAuthenticated','/:id','show','/:id/all_conditions','/:id/actions','getActions','create','post'];(function(_0x288f5e,_0x205edd){var _0x476cc9=function(_0x796f53){while(--_0x796f53){_0x288f5e['push'](_0x288f5e['shift']());}};_0x476cc9(++_0x205edd);}(_0x8bf1,0xd5));var _0x18bf=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8bf1[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x18bf('0x0'));var util=require(_0x18bf('0x1'));var path=require(_0x18bf('0x2'));var timeout=require(_0x18bf('0x3'));var express=require(_0x18bf('0x4'));var router=express[_0x18bf('0x5')]();var fs_extra=require(_0x18bf('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x18bf('0x7'));var config=require('../../config/environment');var controller=require('./trigger.controller');router[_0x18bf('0x8')]('/',auth[_0x18bf('0x9')](),controller['index']);router[_0x18bf('0x8')](_0x18bf('0xa'),auth[_0x18bf('0x9')](),controller[_0x18bf('0xb')]);router['get'](_0x18bf('0xc'),auth['isAuthenticated'](),controller['getAllConditions']);router[_0x18bf('0x8')]('/:id/any_conditions',auth[_0x18bf('0x9')](),controller['getAnyConditions']);router['get'](_0x18bf('0xd'),auth[_0x18bf('0x9')](),controller[_0x18bf('0xe')]);router['post']('/',auth[_0x18bf('0x9')](),controller[_0x18bf('0xf')]);router['post'](_0x18bf('0xc'),auth['isAuthenticated'](),controller['addAllCondition']);router[_0x18bf('0x10')]('/:id/any_conditions',auth[_0x18bf('0x9')](),controller[_0x18bf('0x11')]);router[_0x18bf('0x10')]('/:id/actions',auth[_0x18bf('0x9')](),controller[_0x18bf('0x12')]);router[_0x18bf('0x13')](_0x18bf('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x18bf('0x14')](_0x18bf('0xa'),auth[_0x18bf('0x9')](),controller[_0x18bf('0x15')]);module[_0x18bf('0x16')]=router;
\ No newline at end of file
+var _0xc59f=['exports','multer','path','Router','../../components/auth/service','./trigger.controller','get','isAuthenticated','index','/:id','/:id/any_conditions','getAnyConditions','/:id/actions','getActions','post','create','addAllCondition','addAction','put','update','delete','destroy'];(function(_0x375676,_0x59d59f){var _0x31b3b7=function(_0x580eef){while(--_0x580eef){_0x375676['push'](_0x375676['shift']());}};_0x31b3b7(++_0x59d59f);}(_0xc59f,0x6f));var _0xfc59=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc59f[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xfc59('0x0'));var util=require('util');var path=require(_0xfc59('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xfc59('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xfc59('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xfc59('0x4'));router[_0xfc59('0x5')]('/',auth[_0xfc59('0x6')](),controller[_0xfc59('0x7')]);router[_0xfc59('0x5')](_0xfc59('0x8'),auth[_0xfc59('0x6')](),controller['show']);router[_0xfc59('0x5')]('/:id/all_conditions',auth[_0xfc59('0x6')](),controller['getAllConditions']);router[_0xfc59('0x5')](_0xfc59('0x9'),auth[_0xfc59('0x6')](),controller[_0xfc59('0xa')]);router[_0xfc59('0x5')](_0xfc59('0xb'),auth[_0xfc59('0x6')](),controller[_0xfc59('0xc')]);router[_0xfc59('0xd')]('/',auth[_0xfc59('0x6')](),controller[_0xfc59('0xe')]);router['post']('/:id/all_conditions',auth[_0xfc59('0x6')](),controller[_0xfc59('0xf')]);router['post'](_0xfc59('0x9'),auth['isAuthenticated'](),controller['addAnyCondition']);router[_0xfc59('0xd')](_0xfc59('0xb'),auth[_0xfc59('0x6')](),controller[_0xfc59('0x10')]);router[_0xfc59('0x11')](_0xfc59('0x8'),auth[_0xfc59('0x6')](),controller[_0xfc59('0x12')]);router[_0xfc59('0x13')](_0xfc59('0x8'),auth[_0xfc59('0x6')](),controller[_0xfc59('0x14')]);module[_0xfc59('0x15')]=router;
\ No newline at end of file