X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2Fpm2%2Findex.js;h=755e755cf18c23776a09dff56692977e5f029328;hb=913cc995a38cf7bfbc27d325e09fc2b6ae2f632d;hp=558547fad90ca0c15dca4f90f7bdaa826cb4e93b;hpb=da8b5d32823ad8783d3c47a738f61aa66e32f99c;p=motion2.git diff --git a/server/api/pm2/index.js b/server/api/pm2/index.js index 558547f..755e755 100644 --- a/server/api/pm2/index.js +++ b/server/api/pm2/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xb3d0=['index','/:id','isAuthenticated','post','create','update','destroy','express','Router','../../components/auth/service','./pm2.controller','get'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0xb3d0,0x127));var _0x0b3d=function(_0x25c787,_0x5a02d4){_0x25c787=_0x25c787-0x0;var _0x428aba=_0xb3d0[_0x25c787];return _0x428aba;};'use strict';var express=require(_0x0b3d('0x0'));var router=express[_0x0b3d('0x1')]();var auth=require(_0x0b3d('0x2'));var controller=require(_0x0b3d('0x3'));router[_0x0b3d('0x4')]('/',auth['isAuthenticated'](),controller[_0x0b3d('0x5')]);router['get'](_0x0b3d('0x6'),auth[_0x0b3d('0x7')](),controller['show']);router[_0x0b3d('0x8')]('/',auth[_0x0b3d('0x7')](),controller[_0x0b3d('0x9')]);router['put'](_0x0b3d('0x6'),auth['isAuthenticated'](),controller[_0x0b3d('0xa')]);router['delete']('/:id',auth[_0x0b3d('0x7')](),controller[_0x0b3d('0xb')]);module['exports']=router; \ No newline at end of file +var _0x6e19=['delete','destroy','exports','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','index','create','put','/:id','update'];(function(_0x923ab6,_0x200ec5){var _0x484752=function(_0x266328){while(--_0x266328){_0x923ab6['push'](_0x923ab6['shift']());}};_0x484752(++_0x200ec5);}(_0x6e19,0xe0));var _0x96e1=function(_0x447140,_0x207ce8){_0x447140=_0x447140-0x0;var _0x2b8453=_0x6e19[_0x447140];return _0x2b8453;};'use strict';var express=require('express');var router=express[_0x96e1('0x0')]();var auth=require(_0x96e1('0x1'));var controller=require(_0x96e1('0x2'));router[_0x96e1('0x3')]('/',auth[_0x96e1('0x4')](),controller[_0x96e1('0x5')]);router[_0x96e1('0x3')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x96e1('0x4')](),controller[_0x96e1('0x6')]);router[_0x96e1('0x7')](_0x96e1('0x8'),auth[_0x96e1('0x4')](),controller[_0x96e1('0x9')]);router[_0x96e1('0xa')]('/:id',auth[_0x96e1('0x4')](),controller[_0x96e1('0xb')]);module[_0x96e1('0xc')]=router; \ No newline at end of file