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 _0x968e=['index','isAuthenticated','post','create','put','/:id','update','delete','destroy','exports','Router','./pm2.controller','get'];(function(_0x54c72b,_0x54886f){var _0x44c17a=function(_0x1b22fc){while(--_0x1b22fc){_0x54c72b['push'](_0x54c72b['shift']());}};_0x44c17a(++_0x54886f);}(_0x968e,0x1c4));var _0xe968=function(_0x482598,_0x54c1cf){_0x482598=_0x482598-0x0;var _0x4c9aae=_0x968e[_0x482598];return _0x4c9aae;};'use strict';var express=require('express');var router=express[_0xe968('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0xe968('0x1'));router[_0xe968('0x2')]('/',auth['isAuthenticated'](),controller[_0xe968('0x3')]);router['get']('/:id',auth[_0xe968('0x4')](),controller['show']);router[_0xe968('0x5')]('/',auth[_0xe968('0x4')](),controller[_0xe968('0x6')]);router[_0xe968('0x7')](_0xe968('0x8'),auth[_0xe968('0x4')](),controller[_0xe968('0x9')]);router[_0xe968('0xa')](_0xe968('0x8'),auth[_0xe968('0x4')](),controller[_0xe968('0xb')]);module[_0xe968('0xc')]=router;