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