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 _0xfed9=['update','destroy','exports','express','Router','../../components/auth/service','./pm2.controller','get','isAuthenticated','index','/:id','show','post'];(function(_0x1af187,_0x3c607){var _0x441a17=function(_0x33f044){while(--_0x33f044){_0x1af187['push'](_0x1af187['shift']());}};_0x441a17(++_0x3c607);}(_0xfed9,0x1b0));var _0x9fed=function(_0x347884,_0xd8ef37){_0x347884=_0x347884-0x0;var _0x2cd3fa=_0xfed9[_0x347884];return _0x2cd3fa;};'use strict';var express=require(_0x9fed('0x0'));var router=express[_0x9fed('0x1')]();var auth=require(_0x9fed('0x2'));var controller=require(_0x9fed('0x3'));router[_0x9fed('0x4')]('/',auth[_0x9fed('0x5')](),controller[_0x9fed('0x6')]);router[_0x9fed('0x4')](_0x9fed('0x7'),auth['isAuthenticated'](),controller[_0x9fed('0x8')]);router[_0x9fed('0x9')]('/',auth[_0x9fed('0x5')](),controller['create']);router['put'](_0x9fed('0x7'),auth[_0x9fed('0x5')](),controller[_0x9fed('0xa')]);router['delete'](_0x9fed('0x7'),auth[_0x9fed('0x5')](),controller[_0x9fed('0xb')]);module[_0x9fed('0xc')]=router;