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 _0x68e2=['create','/:id','update','delete','destroy','exports','Router','get','isAuthenticated','index'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x68e2,0x92));var _0x268e=function(_0x19d093,_0x5a9c7d){_0x19d093=_0x19d093-0x0;var _0x497f44=_0x68e2[_0x19d093];return _0x497f44;};'use strict';var express=require('express');var router=express[_0x268e('0x0')]();var auth=require('../../components/auth/service');var controller=require('./pm2.controller');router[_0x268e('0x1')]('/',auth[_0x268e('0x2')](),controller[_0x268e('0x3')]);router[_0x268e('0x1')]('/:id',auth[_0x268e('0x2')](),controller['show']);router['post']('/',auth[_0x268e('0x2')](),controller[_0x268e('0x4')]);router['put'](_0x268e('0x5'),auth['isAuthenticated'](),controller[_0x268e('0x6')]);router[_0x268e('0x7')]('/:id',auth[_0x268e('0x2')](),controller[_0x268e('0x8')]);module[_0x268e('0x9')]=router;