X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2Ftemplate%2Findex.js;h=a18dd7b19dbec472d013275a2e3b2961c0a29a52;hb=c593ef5de079879fb7bfbdd8f8d4d8640e684821;hp=e53d6588a89b0696390c7320082aed439c9b5ece;hpb=7b947914a77b8347fb1d6de0275fa1bbfcdf6ff9;p=motion2.git diff --git a/server/api/template/index.js b/server/api/template/index.js index e53d658..a18dd7b 100644 --- a/server/api/template/index.js +++ b/server/api/template/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x6bab=['util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','create','put','destroy','exports','multer'];(function(_0x2ae599,_0x1f1616){var _0x3ed695=function(_0x1d1cdd){while(--_0x1d1cdd){_0x2ae599['push'](_0x2ae599['shift']());}};_0x3ed695(++_0x1f1616);}(_0x6bab,0x1c7));var _0xb6ba=function(_0x500c0,_0xdb6a03){_0x500c0=_0x500c0-0x0;var _0xdd146f=_0x6bab[_0x500c0];return _0xdd146f;};'use strict';var multer=require(_0xb6ba('0x0'));var util=require(_0xb6ba('0x1'));var path=require(_0xb6ba('0x2'));var timeout=require(_0xb6ba('0x3'));var express=require('express');var router=express[_0xb6ba('0x4')]();var fs_extra=require(_0xb6ba('0x5'));var auth=require(_0xb6ba('0x6'));var interaction=require(_0xb6ba('0x7'));var config=require(_0xb6ba('0x8'));var controller=require('./template.controller');router[_0xb6ba('0x9')]('/',auth['isAuthenticated'](),controller[_0xb6ba('0xa')]);router[_0xb6ba('0x9')](_0xb6ba('0xb'),auth[_0xb6ba('0xc')](),controller[_0xb6ba('0xd')]);router[_0xb6ba('0xe')]('/',auth[_0xb6ba('0xc')](),controller[_0xb6ba('0xf')]);router[_0xb6ba('0x10')]('/:id',auth[_0xb6ba('0xc')](),controller['update']);router['delete']('/:id',auth[_0xb6ba('0xc')](),controller[_0xb6ba('0x11')]);module[_0xb6ba('0x12')]=router; \ No newline at end of file +var _0x4c99=['../../config/environment','./template.controller','isAuthenticated','show','post','create','put','/:id','update','delete','destroy','exports','multer','path','fs-extra','../../components/auth/service'];(function(_0x25bab9,_0x27d7a0){var _0x4a33e9=function(_0x21020e){while(--_0x21020e){_0x25bab9['push'](_0x25bab9['shift']());}};_0x4a33e9(++_0x27d7a0);}(_0x4c99,0x1ec));var _0x94c9=function(_0x1928c9,_0x13a6d1){_0x1928c9=_0x1928c9-0x0;var _0x51b5fb=_0x4c99[_0x1928c9];return _0x51b5fb;};'use strict';var multer=require(_0x94c9('0x0'));var util=require('util');var path=require(_0x94c9('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x94c9('0x2'));var auth=require(_0x94c9('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x94c9('0x4'));var controller=require(_0x94c9('0x5'));router['get']('/',auth[_0x94c9('0x6')](),controller['index']);router['get']('/:id',auth[_0x94c9('0x6')](),controller[_0x94c9('0x7')]);router[_0x94c9('0x8')]('/',auth[_0x94c9('0x6')](),controller[_0x94c9('0x9')]);router[_0x94c9('0xa')](_0x94c9('0xb'),auth[_0x94c9('0x6')](),controller[_0x94c9('0xc')]);router[_0x94c9('0xd')]('/:id',auth[_0x94c9('0x6')](),controller[_0x94c9('0xe')]);module[_0x94c9('0xf')]=router; \ No newline at end of file