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