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 _0xcf5a=['index','/:id','post','create','put','delete','destroy','exports','./pm2.controller','get','isAuthenticated'];(function(_0x2e7439,_0x69de48){var _0x246b18=function(_0x325915){while(--_0x325915){_0x2e7439['push'](_0x2e7439['shift']());}};_0x246b18(++_0x69de48);}(_0xcf5a,0x8c));var _0xacf5=function(_0x133dfa,_0x438843){_0x133dfa=_0x133dfa-0x0;var _0x2f16f6=_0xcf5a[_0x133dfa];return _0x2f16f6;};'use strict';var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var controller=require(_0xacf5('0x0'));router[_0xacf5('0x1')]('/',auth[_0xacf5('0x2')](),controller[_0xacf5('0x3')]);router[_0xacf5('0x1')](_0xacf5('0x4'),auth['isAuthenticated'](),controller['show']);router[_0xacf5('0x5')]('/',auth['isAuthenticated'](),controller[_0xacf5('0x6')]);router[_0xacf5('0x7')](_0xacf5('0x4'),auth[_0xacf5('0x2')](),controller['update']);router[_0xacf5('0x8')](_0xacf5('0x4'),auth[_0xacf5('0x2')](),controller[_0xacf5('0x9')]);module[_0xacf5('0xa')]=router;