Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / pm2 / index.js
index cec2441..8dc85b8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa6ef=['index','/:id','show','create','put','delete','destroy','express','Router','./pm2.controller','isAuthenticated'];(function(_0x256999,_0x1ce6c4){var _0x19f229=function(_0x46c153){while(--_0x46c153){_0x256999['push'](_0x256999['shift']());}};_0x19f229(++_0x1ce6c4);}(_0xa6ef,0x1d5));var _0xfa6e=function(_0x5e3dc3,_0x59c4c6){_0x5e3dc3=_0x5e3dc3-0x0;var _0x5da4a7=_0xa6ef[_0x5e3dc3];return _0x5da4a7;};'use strict';var express=require(_0xfa6e('0x0'));var router=express[_0xfa6e('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0xfa6e('0x2'));router['get']('/',auth[_0xfa6e('0x3')](),controller[_0xfa6e('0x4')]);router['get'](_0xfa6e('0x5'),auth[_0xfa6e('0x3')](),controller[_0xfa6e('0x6')]);router['post']('/',auth[_0xfa6e('0x3')](),controller[_0xfa6e('0x7')]);router[_0xfa6e('0x8')](_0xfa6e('0x5'),auth[_0xfa6e('0x3')](),controller['update']);router[_0xfa6e('0x9')]('/:id',auth[_0xfa6e('0x3')](),controller[_0xfa6e('0xa')]);module['exports']=router;
\ No newline at end of file
+var _0xa9e0=['create','put','delete','destroy','exports','express','Router','../../components/auth/service','isAuthenticated','get','/:id','show','post'];(function(_0x3430aa,_0x57cd92){var _0x2ac5c=function(_0x3068dd){while(--_0x3068dd){_0x3430aa['push'](_0x3430aa['shift']());}};_0x2ac5c(++_0x57cd92);}(_0xa9e0,0x123));var _0x0a9e=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0xa9e0[_0x2b4411];return _0x8e41ef;};'use strict';var express=require(_0x0a9e('0x0'));var router=express[_0x0a9e('0x1')]();var auth=require(_0x0a9e('0x2'));var controller=require('./pm2.controller');router['get']('/',auth[_0x0a9e('0x3')](),controller['index']);router[_0x0a9e('0x4')](_0x0a9e('0x5'),auth[_0x0a9e('0x3')](),controller[_0x0a9e('0x6')]);router[_0x0a9e('0x7')]('/',auth['isAuthenticated'](),controller[_0x0a9e('0x8')]);router[_0x0a9e('0x9')](_0x0a9e('0x5'),auth['isAuthenticated'](),controller['update']);router[_0x0a9e('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x0a9e('0xb')]);module[_0x0a9e('0xc')]=router;
\ No newline at end of file