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 _0x47e5=['./pm2.controller','get','isAuthenticated','index','/:id','create','put','update','delete','exports','express','../../components/auth/service'];(function(_0x52a58c,_0x102224){var _0x3e826a=function(_0x26fc10){while(--_0x26fc10){_0x52a58c['push'](_0x52a58c['shift']());}};_0x3e826a(++_0x102224);}(_0x47e5,0x9a));var _0x547e=function(_0x5516c7,_0x3d46e4){_0x5516c7=_0x5516c7-0x0;var _0x314076=_0x47e5[_0x5516c7];return _0x314076;};'use strict';var express=require(_0x547e('0x0'));var router=express['Router']();var auth=require(_0x547e('0x1'));var controller=require(_0x547e('0x2'));router[_0x547e('0x3')]('/',auth[_0x547e('0x4')](),controller[_0x547e('0x5')]);router[_0x547e('0x3')](_0x547e('0x6'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x547e('0x4')](),controller[_0x547e('0x7')]);router[_0x547e('0x8')](_0x547e('0x6'),auth[_0x547e('0x4')](),controller[_0x547e('0x9')]);router[_0x547e('0xa')]('/:id',auth[_0x547e('0x4')](),controller['destroy']);module[_0x547e('0xb')]=router;