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 _0x37ba=['../../config/environment','get','index','isAuthenticated','describe','/:id','show','getAgents','post','create','/:id/users','addAgents','put','update','delete','destroy','removeAgents','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x422890,_0x434494){var _0x202cf0=function(_0x10e9f0){while(--_0x10e9f0){_0x422890['push'](_0x422890['shift']());}};_0x202cf0(++_0x434494);}(_0x37ba,0xda));var _0xa37b=function(_0x422905,_0x3bce3a){_0x422905=_0x422905-0x0;var _0x33dc6c=_0x37ba[_0x422905];return _0x33dc6c;};'use strict';var multer=require(_0xa37b('0x0'));var util=require(_0xa37b('0x1'));var path=require(_0xa37b('0x2'));var timeout=require('connect-timeout');var express=require(_0xa37b('0x3'));var router=express[_0xa37b('0x4')]();var auth=require(_0xa37b('0x5'));var interaction=require(_0xa37b('0x6'));var config=require(_0xa37b('0x7'));var controller=require('./voicePrefix.controller');router[_0xa37b('0x8')]('/',auth['isAuthenticated'](),controller[_0xa37b('0x9')]);router['get']('/describe',auth[_0xa37b('0xa')](),controller[_0xa37b('0xb')]);router[_0xa37b('0x8')](_0xa37b('0xc'),auth[_0xa37b('0xa')](),controller[_0xa37b('0xd')]);router[_0xa37b('0x8')]('/:id/users',auth[_0xa37b('0xa')](),controller[_0xa37b('0xe')]);router[_0xa37b('0xf')]('/',auth[_0xa37b('0xa')](),controller[_0xa37b('0x10')]);router[_0xa37b('0xf')](_0xa37b('0x11'),auth[_0xa37b('0xa')](),controller[_0xa37b('0x12')]);router[_0xa37b('0x13')](_0xa37b('0xc'),auth['isAuthenticated'](),controller[_0xa37b('0x14')]);router[_0xa37b('0x15')]('/:id',auth[_0xa37b('0xa')](),controller[_0xa37b('0x16')]);router['delete']('/:id/users',auth[_0xa37b('0xa')](),controller[_0xa37b('0x17')]);module[_0xa37b('0x18')]=router;