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 _0x796d=['post','create','update','delete','exports','express','Router','../../components/auth/service','get','isAuthenticated','/:id','show'];(function(_0x152d99,_0x376969){var _0x44da06=function(_0x21ac25){while(--_0x21ac25){_0x152d99['push'](_0x152d99['shift']());}};_0x44da06(++_0x376969);}(_0x796d,0xf5));var _0xd796=function(_0x810e4d,_0x909ef4){_0x810e4d=_0x810e4d-0x0;var _0x13f01c=_0x796d[_0x810e4d];return _0x13f01c;};'use strict';var express=require(_0xd796('0x0'));var router=express[_0xd796('0x1')]();var auth=require(_0xd796('0x2'));var controller=require('./pm2.controller');router[_0xd796('0x3')]('/',auth[_0xd796('0x4')](),controller['index']);router[_0xd796('0x3')](_0xd796('0x5'),auth[_0xd796('0x4')](),controller[_0xd796('0x6')]);router[_0xd796('0x7')]('/',auth[_0xd796('0x4')](),controller[_0xd796('0x8')]);router['put']('/:id',auth[_0xd796('0x4')](),controller[_0xd796('0x9')]);router[_0xd796('0xa')](_0xd796('0x5'),auth[_0xd796('0x4')](),controller['destroy']);module[_0xd796('0xb')]=router;