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 _0x3d16=['index','get','/:id','show','create','update','delete','destroy','express','Router','../../components/auth/service','./pm2.controller','isAuthenticated'];(function(_0x4fb6b6,_0x5eb1c7){var _0x3ea470=function(_0x26228c){while(--_0x26228c){_0x4fb6b6['push'](_0x4fb6b6['shift']());}};_0x3ea470(++_0x5eb1c7);}(_0x3d16,0x133));var _0x63d1=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3d16[_0x3dd15e];return _0x231fd0;};'use strict';var express=require(_0x63d1('0x0'));var router=express[_0x63d1('0x1')]();var auth=require(_0x63d1('0x2'));var controller=require(_0x63d1('0x3'));router['get']('/',auth[_0x63d1('0x4')](),controller[_0x63d1('0x5')]);router[_0x63d1('0x6')](_0x63d1('0x7'),auth[_0x63d1('0x4')](),controller[_0x63d1('0x8')]);router['post']('/',auth[_0x63d1('0x4')](),controller[_0x63d1('0x9')]);router['put'](_0x63d1('0x7'),auth['isAuthenticated'](),controller[_0x63d1('0xa')]);router[_0x63d1('0xb')](_0x63d1('0x7'),auth[_0x63d1('0x4')](),controller[_0x63d1('0xc')]);module['exports']=router;