Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / pm2 / index.js
index d2fe0f9..5a7654f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x13d3=['get','isAuthenticated','show','post','create','put','/:id','exports','express','Router','./pm2.controller'];(function(_0x20c74d,_0x11a4a2){var _0xebf8db=function(_0x199496){while(--_0x199496){_0x20c74d['push'](_0x20c74d['shift']());}};_0xebf8db(++_0x11a4a2);}(_0x13d3,0x1d6));var _0x313d=function(_0x46eb54,_0x4f1eac){_0x46eb54=_0x46eb54-0x0;var _0x3902b2=_0x13d3[_0x46eb54];return _0x3902b2;};'use strict';var express=require(_0x313d('0x0'));var router=express[_0x313d('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0x313d('0x2'));router[_0x313d('0x3')]('/',auth[_0x313d('0x4')](),controller['index']);router[_0x313d('0x3')]('/:id',auth['isAuthenticated'](),controller[_0x313d('0x5')]);router[_0x313d('0x6')]('/',auth['isAuthenticated'](),controller[_0x313d('0x7')]);router[_0x313d('0x8')](_0x313d('0x9'),auth[_0x313d('0x4')](),controller['update']);router['delete'](_0x313d('0x9'),auth[_0x313d('0x4')](),controller['destroy']);module[_0x313d('0xa')]=router;
\ No newline at end of file
+var _0xb74b=['../../components/auth/service','get','isAuthenticated','/:id','show','post','update','exports'];(function(_0x246e11,_0x125838){var _0x4c6c5b=function(_0x467c9a){while(--_0x467c9a){_0x246e11['push'](_0x246e11['shift']());}};_0x4c6c5b(++_0x125838);}(_0xb74b,0x188));var _0xbb74=function(_0x3ebbd2,_0x18293c){_0x3ebbd2=_0x3ebbd2-0x0;var _0x5cc1ba=_0xb74b[_0x3ebbd2];return _0x5cc1ba;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0xbb74('0x0'));var controller=require('./pm2.controller');router[_0xbb74('0x1')]('/',auth[_0xbb74('0x2')](),controller['index']);router[_0xbb74('0x1')](_0xbb74('0x3'),auth[_0xbb74('0x2')](),controller[_0xbb74('0x4')]);router[_0xbb74('0x5')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xbb74('0x3'),auth[_0xbb74('0x2')](),controller[_0xbb74('0x6')]);router['delete'](_0xbb74('0x3'),auth[_0xbb74('0x2')](),controller['destroy']);module[_0xbb74('0x7')]=router;
\ No newline at end of file