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 _0xb74b=['../../components/auth/service','get','isAuthenticated','/:id','show','post','update','exports'];(function(_0x246e11,_0x125838){var _0x4c6c5b=function(_0x467c9a){while(--_0x467c9a){_0x246e11['push'](_0x246e11['shift']());}};_0x4c6c5b(++_0x125838);}(_0xb74b,0x188));var _0xbb74=function(_0x3ebbd2,_0x18293c){_0x3ebbd2=_0x3ebbd2-0x0;var _0x5cc1ba=_0xb74b[_0x3ebbd2];return _0x5cc1ba;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0xbb74('0x0'));var controller=require('./pm2.controller');router[_0xbb74('0x1')]('/',auth[_0xbb74('0x2')](),controller['index']);router[_0xbb74('0x1')](_0xbb74('0x3'),auth[_0xbb74('0x2')](),controller[_0xbb74('0x4')]);router[_0xbb74('0x5')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xbb74('0x3'),auth[_0xbb74('0x2')](),controller[_0xbb74('0x6')]);router['delete'](_0xbb74('0x3'),auth[_0xbb74('0x2')](),controller['destroy']);module[_0xbb74('0x7')]=router;