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 _0xbb6f=['put','update','destroy','exports','Router','./pm2.controller','get','isAuthenticated','index','/:id','show','create'];(function(_0x77ba7,_0x2e7705){var _0x50d606=function(_0x15c898){while(--_0x15c898){_0x77ba7['push'](_0x77ba7['shift']());}};_0x50d606(++_0x2e7705);}(_0xbb6f,0xac));var _0xfbb6=function(_0x2e8ce2,_0x1e3109){_0x2e8ce2=_0x2e8ce2-0x0;var _0x44ca16=_0xbb6f[_0x2e8ce2];return _0x44ca16;};'use strict';var express=require('express');var router=express[_0xfbb6('0x0')]();var auth=require('../../components/auth/service');var controller=require(_0xfbb6('0x1'));router[_0xfbb6('0x2')]('/',auth[_0xfbb6('0x3')](),controller[_0xfbb6('0x4')]);router[_0xfbb6('0x2')](_0xfbb6('0x5'),auth[_0xfbb6('0x3')](),controller[_0xfbb6('0x6')]);router['post']('/',auth[_0xfbb6('0x3')](),controller[_0xfbb6('0x7')]);router[_0xfbb6('0x8')](_0xfbb6('0x5'),auth[_0xfbb6('0x3')](),controller[_0xfbb6('0x9')]);router['delete'](_0xfbb6('0x5'),auth['isAuthenticated'](),controller[_0xfbb6('0xa')]);module[_0xfbb6('0xb')]=router;