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 _0xedf0=['exports','Router','./pm2.controller','get','isAuthenticated','/:id','post','create','update','destroy'];(function(_0x1526a9,_0x48fb64){var _0x9f4049=function(_0x13271a){while(--_0x13271a){_0x1526a9['push'](_0x1526a9['shift']());}};_0x9f4049(++_0x48fb64);}(_0xedf0,0xf1));var _0x0edf=function(_0x37fa4f,_0x379eb2){_0x37fa4f=_0x37fa4f-0x0;var _0x17133f=_0xedf0[_0x37fa4f];return _0x17133f;};'use strict';var express=require('express');var router=express[_0x0edf('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0x0edf('0x1'));router[_0x0edf('0x2')]('/',auth[_0x0edf('0x3')](),controller['index']);router[_0x0edf('0x2')](_0x0edf('0x4'),auth[_0x0edf('0x3')](),controller['show']);router[_0x0edf('0x5')]('/',auth[_0x0edf('0x3')](),controller[_0x0edf('0x6')]);router['put'](_0x0edf('0x4'),auth[_0x0edf('0x3')](),controller[_0x0edf('0x7')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x0edf('0x8')]);module[_0x0edf('0x9')]=router;