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 _0x2900=['post','create','update','delete','exports','express','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','/:id','show'];(function(_0x4f72d4,_0x416985){var _0xe6d78b=function(_0x9e2161){while(--_0x9e2161){_0x4f72d4['push'](_0x4f72d4['shift']());}};_0xe6d78b(++_0x416985);}(_0x2900,0xfc));var _0x0290=function(_0x37a9d7,_0x2b6fde){_0x37a9d7=_0x37a9d7-0x0;var _0x1343d3=_0x2900[_0x37a9d7];return _0x1343d3;};'use strict';var express=require(_0x0290('0x0'));var router=express[_0x0290('0x1')]();var auth=require(_0x0290('0x2'));var controller=require(_0x0290('0x3'));router[_0x0290('0x4')]('/',auth[_0x0290('0x5')](),controller['index']);router[_0x0290('0x4')](_0x0290('0x6'),auth[_0x0290('0x5')](),controller[_0x0290('0x7')]);router[_0x0290('0x8')]('/',auth['isAuthenticated'](),controller[_0x0290('0x9')]);router['put'](_0x0290('0x6'),auth[_0x0290('0x5')](),controller[_0x0290('0xa')]);router[_0x0290('0xb')](_0x0290('0x6'),auth[_0x0290('0x5')](),controller['destroy']);module[_0x0290('0xc')]=router;