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