91d446e82dcb33b4efa45ee891b5a4a6273de980
[motion2.git] / server / api / team / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x50c4=['getQueues','/:id/users','create','post','addQueues','addAgents','update','delete','removeAgents','multer','connect-timeout','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/queues'];(function(_0x276063,_0x4c4fdb){var _0x147eab=function(_0xecc1b5){while(--_0xecc1b5){_0x276063['push'](_0x276063['shift']());}};_0x147eab(++_0x4c4fdb);}(_0x50c4,0x10d));var _0x450c=function(_0x459ee0,_0x1e950d){_0x459ee0=_0x459ee0-0x0;var _0x1b87c8=_0x50c4[_0x459ee0];return _0x1b87c8;};'use strict';var multer=require(_0x450c('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x450c('0x1'));var express=require('express');var router=express[_0x450c('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x450c('0x3'));var config=require(_0x450c('0x4'));var controller=require('./team.controller');router['get']('/',auth[_0x450c('0x5')](),controller[_0x450c('0x6')]);router[_0x450c('0x7')](_0x450c('0x8'),auth[_0x450c('0x5')](),controller[_0x450c('0x9')]);router[_0x450c('0x7')](_0x450c('0xa'),auth[_0x450c('0x5')](),controller[_0x450c('0xb')]);router['get'](_0x450c('0xc'),auth[_0x450c('0x5')](),controller['getAgents']);router['post']('/',auth['isAuthenticated'](),controller[_0x450c('0xd')]);router[_0x450c('0xe')](_0x450c('0xa'),auth[_0x450c('0x5')](),controller[_0x450c('0xf')]);router[_0x450c('0xe')]('/:id/users',auth[_0x450c('0x5')](),controller[_0x450c('0x10')]);router['put'](_0x450c('0x8'),auth[_0x450c('0x5')](),controller[_0x450c('0x11')]);router[_0x450c('0x12')]('/:id',auth[_0x450c('0x5')](),controller['destroy']);router[_0x450c('0x12')](_0x450c('0xa'),auth[_0x450c('0x5')](),controller['removeQueues']);router[_0x450c('0x12')](_0x450c('0xc'),auth[_0x450c('0x5')](),controller[_0x450c('0x13')]);module['exports']=router;