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 _0x847f=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/describe','describe','show','/:id/teams','post','create','/:id/users','addAgents','addTeams','put','/:id','update','destroy','removeAgents','removeTeams','exports','multer','util','path','express'];(function(_0x4cf86e,_0x2856df){var _0x31bfe0=function(_0x5e1648){while(--_0x5e1648){_0x4cf86e['push'](_0x4cf86e['shift']());}};_0x31bfe0(++_0x2856df);}(_0x847f,0x182));var _0xf847=function(_0x1c2051,_0x4cb6b9){_0x1c2051=_0x1c2051-0x0;var _0x2b58a0=_0x847f[_0x1c2051];return _0x2b58a0;};'use strict';var multer=require(_0xf847('0x0'));var util=require(_0xf847('0x1'));var path=require(_0xf847('0x2'));var timeout=require('connect-timeout');var express=require(_0xf847('0x3'));var router=express[_0xf847('0x4')]();var fs_extra=require(_0xf847('0x5'));var auth=require(_0xf847('0x6'));var interaction=require(_0xf847('0x7'));var config=require('../../config/environment');var controller=require('./voicePrefix.controller');router[_0xf847('0x8')]('/',auth[_0xf847('0x9')](),controller['index']);router['get'](_0xf847('0xa'),auth[_0xf847('0x9')](),controller[_0xf847('0xb')]);router[_0xf847('0x8')]('/:id',auth[_0xf847('0x9')](),controller[_0xf847('0xc')]);router[_0xf847('0x8')]('/:id/users',auth[_0xf847('0x9')](),controller['getAgents']);router[_0xf847('0x8')](_0xf847('0xd'),auth[_0xf847('0x9')](),controller['getTeams']);router[_0xf847('0xe')]('/',auth['isAuthenticated'](),controller[_0xf847('0xf')]);router[_0xf847('0xe')](_0xf847('0x10'),auth[_0xf847('0x9')](),controller[_0xf847('0x11')]);router[_0xf847('0xe')](_0xf847('0xd'),auth[_0xf847('0x9')](),controller[_0xf847('0x12')]);router[_0xf847('0x13')](_0xf847('0x14'),auth[_0xf847('0x9')](),controller[_0xf847('0x15')]);router['delete'](_0xf847('0x14'),auth[_0xf847('0x9')](),controller[_0xf847('0x16')]);router['delete']('/:id/users',auth[_0xf847('0x9')](),controller[_0xf847('0x17')]);router['delete'](_0xf847('0xd'),auth[_0xf847('0x9')](),controller[_0xf847('0x18')]);module[_0xf847('0x19')]=router;