012a6c253c16d1a0afd30d4f6f3d456b93bdd420
[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 _0x2f89=['put','update','delete','destroy','/:id/queues','removeQueues','removeAgents','exports','multer','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','show','/:id/users','getAgents','post','isAuthenticated','create','addQueues','addAgents'];(function(_0x42f009,_0x5e27b1){var _0x22a1e0=function(_0x297993){while(--_0x297993){_0x42f009['push'](_0x42f009['shift']());}};_0x22a1e0(++_0x5e27b1);}(_0x2f89,0x158));var _0x92f8=function(_0x45e08a,_0xe4cd73){_0x45e08a=_0x45e08a-0x0;var _0x4d6a55=_0x2f89[_0x45e08a];return _0x4d6a55;};'use strict';var multer=require(_0x92f8('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x92f8('0x1'));var router=express['Router']();var fs_extra=require(_0x92f8('0x2'));var auth=require(_0x92f8('0x3'));var interaction=require(_0x92f8('0x4'));var config=require(_0x92f8('0x5'));var controller=require('./team.controller');router[_0x92f8('0x6')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x92f8('0x7'),auth['isAuthenticated'](),controller[_0x92f8('0x8')]);router[_0x92f8('0x6')]('/:id/queues',auth['isAuthenticated'](),controller['getQueues']);router[_0x92f8('0x6')](_0x92f8('0x9'),auth['isAuthenticated'](),controller[_0x92f8('0xa')]);router[_0x92f8('0xb')]('/',auth[_0x92f8('0xc')](),controller[_0x92f8('0xd')]);router[_0x92f8('0xb')]('/:id/queues',auth[_0x92f8('0xc')](),controller[_0x92f8('0xe')]);router[_0x92f8('0xb')]('/:id/users',auth[_0x92f8('0xc')](),controller[_0x92f8('0xf')]);router[_0x92f8('0x10')]('/:id',auth[_0x92f8('0xc')](),controller[_0x92f8('0x11')]);router[_0x92f8('0x12')](_0x92f8('0x7'),auth[_0x92f8('0xc')](),controller[_0x92f8('0x13')]);router[_0x92f8('0x12')](_0x92f8('0x14'),auth[_0x92f8('0xc')](),controller[_0x92f8('0x15')]);router['delete']('/:id/users',auth[_0x92f8('0xc')](),controller[_0x92f8('0x16')]);module[_0x92f8('0x17')]=router;