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 _0xd35b=['post','create','put','update','delete','/:id','Router','../../components/auth/service','./pm2.controller','isAuthenticated','index','show'];(function(_0x4b7895,_0x3c4f5d){var _0x264180=function(_0xe0e861){while(--_0xe0e861){_0x4b7895['push'](_0x4b7895['shift']());}};_0x264180(++_0x3c4f5d);}(_0xd35b,0x1f2));var _0xbd35=function(_0x3ff085,_0x27c92e){_0x3ff085=_0x3ff085-0x0;var _0x2b68c3=_0xd35b[_0x3ff085];return _0x2b68c3;};'use strict';var express=require('express');var router=express[_0xbd35('0x0')]();var auth=require(_0xbd35('0x1'));var controller=require(_0xbd35('0x2'));router['get']('/',auth[_0xbd35('0x3')](),controller[_0xbd35('0x4')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xbd35('0x5')]);router[_0xbd35('0x6')]('/',auth[_0xbd35('0x3')](),controller[_0xbd35('0x7')]);router[_0xbd35('0x8')]('/:id',auth[_0xbd35('0x3')](),controller[_0xbd35('0x9')]);router[_0xbd35('0xa')](_0xbd35('0xb'),auth[_0xbd35('0x3')](),controller['destroy']);module['exports']=router;