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 _0x2fab=['exports','express','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','index','create','/:id','update','delete'];(function(_0x532d24,_0x5cac73){var _0x1a905f=function(_0x188678){while(--_0x188678){_0x532d24['push'](_0x532d24['shift']());}};_0x1a905f(++_0x5cac73);}(_0x2fab,0xb5));var _0xb2fa=function(_0x55202e,_0x32bc76){_0x55202e=_0x55202e-0x0;var _0x5cc059=_0x2fab[_0x55202e];return _0x5cc059;};'use strict';var express=require(_0xb2fa('0x0'));var router=express[_0xb2fa('0x1')]();var auth=require(_0xb2fa('0x2'));var controller=require(_0xb2fa('0x3'));router[_0xb2fa('0x4')]('/',auth[_0xb2fa('0x5')](),controller[_0xb2fa('0x6')]);router[_0xb2fa('0x4')]('/:id',auth[_0xb2fa('0x5')](),controller['show']);router['post']('/',auth[_0xb2fa('0x5')](),controller[_0xb2fa('0x7')]);router['put'](_0xb2fa('0x8'),auth[_0xb2fa('0x5')](),controller[_0xb2fa('0x9')]);router[_0xb2fa('0xa')](_0xb2fa('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0xb2fa('0xb')]=router;