X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2Fautomation%2Findex.js;h=ca5d941ccf45767c84b0c5038695b32c10d56f96;hb=6154c6759c55056c3b23ea2e885ab9e551bbdf0c;hp=e53c292d3877601daa6b9cb6296a601a3dea2aca;hpb=180439628549c979093908f0b833833689fb8374;p=motion2.git diff --git a/server/api/automation/index.js b/server/api/automation/index.js index e53c292..ca5d941 100644 --- a/server/api/automation/index.js +++ b/server/api/automation/index.js @@ -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 _0xfc7c=['Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/conditions','getConditions','/:id/actions','getActions','post','create','addConditions','addActions','update','util','connect-timeout','express'];(function(_0x105d67,_0x2c68cf){var _0x2cb749=function(_0x20b735){while(--_0x20b735){_0x105d67['push'](_0x105d67['shift']());}};_0x2cb749(++_0x2c68cf);}(_0xfc7c,0x18d));var _0xcfc7=function(_0xa48e4f,_0x442ba4){_0xa48e4f=_0xa48e4f-0x0;var _0x483abf=_0xfc7c[_0xa48e4f];return _0x483abf;};'use strict';var multer=require('multer');var util=require(_0xcfc7('0x0'));var path=require('path');var timeout=require(_0xcfc7('0x1'));var express=require(_0xcfc7('0x2'));var router=express[_0xcfc7('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xcfc7('0x4'));var config=require(_0xcfc7('0x5'));var controller=require('./automation.controller');router['get']('/',auth[_0xcfc7('0x6')](),controller[_0xcfc7('0x7')]);router[_0xcfc7('0x8')](_0xcfc7('0x9'),auth[_0xcfc7('0x6')](),controller[_0xcfc7('0xa')]);router[_0xcfc7('0x8')](_0xcfc7('0xb'),auth[_0xcfc7('0x6')](),controller[_0xcfc7('0xc')]);router[_0xcfc7('0x8')](_0xcfc7('0xd'),auth[_0xcfc7('0x6')](),controller[_0xcfc7('0xe')]);router[_0xcfc7('0xf')]('/',auth[_0xcfc7('0x6')](),controller[_0xcfc7('0x10')]);router['post'](_0xcfc7('0xb'),auth['isAuthenticated'](),controller[_0xcfc7('0x11')]);router[_0xcfc7('0xf')](_0xcfc7('0xd'),auth[_0xcfc7('0x6')](),controller[_0xcfc7('0x12')]);router['put'](_0xcfc7('0x9'),auth[_0xcfc7('0x6')](),controller[_0xcfc7('0x13')]);router['delete'](_0xcfc7('0x9'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router; \ No newline at end of file