0781b7b67a60d06341a39155b2f7c875ff81ba1c
[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 _0x2ba2=['path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./team.controller','get','isAuthenticated','show','/:id/queues','getQueues','/:id/users','getAgents','post','create','addQueues','put','/:id','update','delete','destroy','removeQueues','removeAgents','exports','multer','util'];(function(_0x3d627a,_0x7f0d5b){var _0x710e33=function(_0x49f67d){while(--_0x49f67d){_0x3d627a['push'](_0x3d627a['shift']());}};_0x710e33(++_0x7f0d5b);}(_0x2ba2,0xe8));var _0x22ba=function(_0x48999d,_0x1e02cb){_0x48999d=_0x48999d-0x0;var _0x1ad0d1=_0x2ba2[_0x48999d];return _0x1ad0d1;};'use strict';var multer=require(_0x22ba('0x0'));var util=require(_0x22ba('0x1'));var path=require(_0x22ba('0x2'));var timeout=require('connect-timeout');var express=require(_0x22ba('0x3'));var router=express['Router']();var auth=require(_0x22ba('0x4'));var interaction=require(_0x22ba('0x5'));var config=require(_0x22ba('0x6'));var controller=require(_0x22ba('0x7'));router[_0x22ba('0x8')]('/',auth[_0x22ba('0x9')](),controller['index']);router[_0x22ba('0x8')]('/:id',auth[_0x22ba('0x9')](),controller[_0x22ba('0xa')]);router[_0x22ba('0x8')](_0x22ba('0xb'),auth[_0x22ba('0x9')](),controller[_0x22ba('0xc')]);router['get'](_0x22ba('0xd'),auth['isAuthenticated'](),controller[_0x22ba('0xe')]);router[_0x22ba('0xf')]('/',auth[_0x22ba('0x9')](),controller[_0x22ba('0x10')]);router[_0x22ba('0xf')]('/:id/queues',auth[_0x22ba('0x9')](),controller[_0x22ba('0x11')]);router['post'](_0x22ba('0xd'),auth[_0x22ba('0x9')](),controller['addAgents']);router[_0x22ba('0x12')](_0x22ba('0x13'),auth['isAuthenticated'](),controller[_0x22ba('0x14')]);router[_0x22ba('0x15')](_0x22ba('0x13'),auth[_0x22ba('0x9')](),controller[_0x22ba('0x16')]);router['delete'](_0x22ba('0xb'),auth[_0x22ba('0x9')](),controller[_0x22ba('0x17')]);router[_0x22ba('0x15')](_0x22ba('0xd'),auth[_0x22ba('0x9')](),controller[_0x22ba('0x18')]);module[_0x22ba('0x19')]=router;