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 _0x3dd6=['addTeams','update','delete','destroy','removeAgents','removeTeams','exports','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voicePrefix.controller','isAuthenticated','index','get','/describe','/:id','show','getAgents','/:id/teams','post','create','addAgents'];(function(_0x172747,_0x1732bd){var _0x509692=function(_0x448c56){while(--_0x448c56){_0x172747['push'](_0x172747['shift']());}};_0x509692(++_0x1732bd);}(_0x3dd6,0xcf));var _0x63dd=function(_0x450aaf,_0x1c1a8c){_0x450aaf=_0x450aaf-0x0;var _0x199a88=_0x3dd6[_0x450aaf];return _0x199a88;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x63dd('0x0'));var express=require(_0x63dd('0x1'));var router=express[_0x63dd('0x2')]();var fs_extra=require(_0x63dd('0x3'));var auth=require(_0x63dd('0x4'));var interaction=require(_0x63dd('0x5'));var config=require('../../config/environment');var controller=require(_0x63dd('0x6'));router['get']('/',auth[_0x63dd('0x7')](),controller[_0x63dd('0x8')]);router[_0x63dd('0x9')](_0x63dd('0xa'),auth[_0x63dd('0x7')](),controller['describe']);router[_0x63dd('0x9')](_0x63dd('0xb'),auth[_0x63dd('0x7')](),controller[_0x63dd('0xc')]);router['get']('/:id/users',auth[_0x63dd('0x7')](),controller[_0x63dd('0xd')]);router[_0x63dd('0x9')](_0x63dd('0xe'),auth[_0x63dd('0x7')](),controller['getTeams']);router[_0x63dd('0xf')]('/',auth[_0x63dd('0x7')](),controller[_0x63dd('0x10')]);router[_0x63dd('0xf')]('/:id/users',auth[_0x63dd('0x7')](),controller[_0x63dd('0x11')]);router[_0x63dd('0xf')](_0x63dd('0xe'),auth[_0x63dd('0x7')](),controller[_0x63dd('0x12')]);router['put']('/:id',auth[_0x63dd('0x7')](),controller[_0x63dd('0x13')]);router[_0x63dd('0x14')]('/:id',auth[_0x63dd('0x7')](),controller[_0x63dd('0x15')]);router[_0x63dd('0x14')]('/:id/users',auth[_0x63dd('0x7')](),controller[_0x63dd('0x16')]);router[_0x63dd('0x14')](_0x63dd('0xe'),auth[_0x63dd('0x7')](),controller[_0x63dd('0x17')]);module[_0x63dd('0x18')]=router;