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