X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2Fschedule%2Findex.js;h=c0ca56aae2ba31f37d8243475c82546c0dc975da;hb=d2fd33d6b242a53e18c7b82fe692ff8c6c0965a8;hp=b61c07fedaba02ce17bb426d6e2b4b597e9d51a8;hpb=adb8f006f81edb620408176c5eb5832d5db4e6db;p=motion2.git diff --git a/server/api/schedule/index.js b/server/api/schedule/index.js index b61c07f..c0ca56a 100644 --- a/server/api/schedule/index.js +++ b/server/api/schedule/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x125e=['update','delete','/:id','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./schedule.controller','get','isAuthenticated','index','run','post','create'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0x125e,0x1b4));var _0xe125=function(_0x2525f1,_0x47034f){_0x2525f1=_0x2525f1-0x0;var _0x13c1b5=_0x125e[_0x2525f1];return _0x13c1b5;};'use strict';var multer=require('multer');var util=require(_0xe125('0x0'));var path=require(_0xe125('0x1'));var timeout=require(_0xe125('0x2'));var express=require('express');var router=express[_0xe125('0x3')]();var auth=require(_0xe125('0x4'));var interaction=require(_0xe125('0x5'));var config=require(_0xe125('0x6'));var controller=require(_0xe125('0x7'));router[_0xe125('0x8')]('/',auth[_0xe125('0x9')](),controller[_0xe125('0xa')]);router[_0xe125('0x8')]('/:id',auth[_0xe125('0x9')](),controller['show']);router[_0xe125('0x8')]('/:id/run',auth[_0xe125('0x9')](),controller[_0xe125('0xb')]);router[_0xe125('0xc')]('/',auth[_0xe125('0x9')](),controller[_0xe125('0xd')]);router['put']('/:id',auth[_0xe125('0x9')](),controller[_0xe125('0xe')]);router[_0xe125('0xf')](_0xe125('0x10'),auth[_0xe125('0x9')](),controller['destroy']);module[_0xe125('0x11')]=router; \ No newline at end of file +var _0xe217=['util','path','connect-timeout','express','Router','fs-extra','../../config/environment','./schedule.controller','index','get','isAuthenticated','show','/:id/run','run','post','create','put','/:id','destroy','exports','multer'];(function(_0x196346,_0xabe496){var _0x8548b5=function(_0x10f8f4){while(--_0x10f8f4){_0x196346['push'](_0x196346['shift']());}};_0x8548b5(++_0xabe496);}(_0xe217,0x1cd));var _0x7e21=function(_0x327d30,_0x4fe81c){_0x327d30=_0x327d30-0x0;var _0x5121f9=_0xe217[_0x327d30];return _0x5121f9;};'use strict';var multer=require(_0x7e21('0x0'));var util=require(_0x7e21('0x1'));var path=require(_0x7e21('0x2'));var timeout=require(_0x7e21('0x3'));var express=require(_0x7e21('0x4'));var router=express[_0x7e21('0x5')]();var fs_extra=require(_0x7e21('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7e21('0x7'));var controller=require(_0x7e21('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x7e21('0x9')]);router[_0x7e21('0xa')]('/:id',auth[_0x7e21('0xb')](),controller[_0x7e21('0xc')]);router[_0x7e21('0xa')](_0x7e21('0xd'),auth[_0x7e21('0xb')](),controller[_0x7e21('0xe')]);router[_0x7e21('0xf')]('/',auth[_0x7e21('0xb')](),controller[_0x7e21('0x10')]);router[_0x7e21('0x11')](_0x7e21('0x12'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x7e21('0x12'),auth['isAuthenticated'](),controller[_0x7e21('0x13')]);module[_0x7e21('0x14')]=router; \ No newline at end of file