1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x67ae=['/:id','delete','destroy','exports','express','Router','../../components/auth/service','isAuthenticated','get','post','put'];(function(_0x2be967,_0xe799e5){var _0x430c79=function(_0x5f19f7){while(--_0x5f19f7){_0x2be967['push'](_0x2be967['shift']());}};_0x430c79(++_0xe799e5);}(_0x67ae,0x101));var _0xe67a=function(_0x45ed42,_0x334bdc){_0x45ed42=_0x45ed42-0x0;var _0x32e4e4=_0x67ae[_0x45ed42];return _0x32e4e4;};'use strict';var express=require(_0xe67a('0x0'));var router=express[_0xe67a('0x1')]();var auth=require(_0xe67a('0x2'));var controller=require('./pm2.controller');router['get']('/',auth[_0xe67a('0x3')](),controller['index']);router[_0xe67a('0x4')]('/:id',auth[_0xe67a('0x3')](),controller['show']);router[_0xe67a('0x5')]('/',auth['isAuthenticated'](),controller['create']);router[_0xe67a('0x6')](_0xe67a('0x7'),auth['isAuthenticated'](),controller['update']);router[_0xe67a('0x8')](_0xe67a('0x7'),auth[_0xe67a('0x3')](),controller[_0xe67a('0x9')]);module[_0xe67a('0xa')]=router;