819e458d660e6e6e53c5b402529f6788f8520b66
[motion2.git] / server / api / pm2 / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x6dcf=['../../components/auth/service','isAuthenticated','get','/:id','post','put','update','delete','destroy','exports','express','Router'];(function(_0x4cde9e,_0x57150a){var _0x38df0c=function(_0x50cdb6){while(--_0x50cdb6){_0x4cde9e['push'](_0x4cde9e['shift']());}};_0x38df0c(++_0x57150a);}(_0x6dcf,0x1d2));var _0xf6dc=function(_0x321c4e,_0x153c41){_0x321c4e=_0x321c4e-0x0;var _0x5436c3=_0x6dcf[_0x321c4e];return _0x5436c3;};'use strict';var express=require(_0xf6dc('0x0'));var router=express[_0xf6dc('0x1')]();var auth=require(_0xf6dc('0x2'));var controller=require('./pm2.controller');router['get']('/',auth[_0xf6dc('0x3')](),controller['index']);router[_0xf6dc('0x4')](_0xf6dc('0x5'),auth[_0xf6dc('0x3')](),controller['show']);router[_0xf6dc('0x6')]('/',auth[_0xf6dc('0x3')](),controller['create']);router[_0xf6dc('0x7')]('/:id',auth['isAuthenticated'](),controller[_0xf6dc('0x8')]);router[_0xf6dc('0x9')](_0xf6dc('0x5'),auth['isAuthenticated'](),controller[_0xf6dc('0xa')]);module[_0xf6dc('0xb')]=router;