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