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 _0x1261=['../../components/auth/service','../../components/interaction/service','../../config/environment','./voicePrefix.controller','index','get','isAuthenticated','describe','/:id','/:id/users','post','addAgents','put','update','delete','removeAgents','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0x1261,0x144));var _0x1126=function(_0x190dbd,_0x24a507){_0x190dbd=_0x190dbd-0x0;var _0x868d27=_0x1261[_0x190dbd];return _0x868d27;};'use strict';var multer=require('multer');var util=require(_0x1126('0x0'));var path=require(_0x1126('0x1'));var timeout=require(_0x1126('0x2'));var express=require(_0x1126('0x3'));var router=express[_0x1126('0x4')]();var fs_extra=require(_0x1126('0x5'));var auth=require(_0x1126('0x6'));var interaction=require(_0x1126('0x7'));var config=require(_0x1126('0x8'));var controller=require(_0x1126('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x1126('0xa')]);router[_0x1126('0xb')]('/describe',auth[_0x1126('0xc')](),controller[_0x1126('0xd')]);router[_0x1126('0xb')](_0x1126('0xe'),auth[_0x1126('0xc')](),controller['show']);router[_0x1126('0xb')](_0x1126('0xf'),auth[_0x1126('0xc')](),controller['getAgents']);router[_0x1126('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0x1126('0x10')]('/:id/users',auth[_0x1126('0xc')](),controller[_0x1126('0x11')]);router[_0x1126('0x12')](_0x1126('0xe'),auth[_0x1126('0xc')](),controller[_0x1126('0x13')]);router[_0x1126('0x14')](_0x1126('0xe'),auth[_0x1126('0xc')](),controller['destroy']);router['delete'](_0x1126('0xf'),auth[_0x1126('0xc')](),controller[_0x1126('0x15')]);module['exports']=router;