Built motion from commit (unavailable).|2.5.2
[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 _0x8c6a=['create','post','/:id/queues','addQueues','addAgents','update','destroy','delete','removeQueues','removeAgents','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./team.controller','get','index','/:id','isAuthenticated','getQueues','/:id/users','getAgents'];(function(_0x33852e,_0x3e1253){var _0x212d76=function(_0x4bca81){while(--_0x4bca81){_0x33852e['push'](_0x33852e['shift']());}};_0x212d76(++_0x3e1253);}(_0x8c6a,0x123));var _0xa8c6=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0x8c6a[_0x46698a];return _0x356db0;};'use strict';var multer=require(_0xa8c6('0x0'));var util=require(_0xa8c6('0x1'));var path=require(_0xa8c6('0x2'));var timeout=require(_0xa8c6('0x3'));var express=require(_0xa8c6('0x4'));var router=express[_0xa8c6('0x5')]();var auth=require(_0xa8c6('0x6'));var interaction=require(_0xa8c6('0x7'));var config=require(_0xa8c6('0x8'));var controller=require(_0xa8c6('0x9'));router[_0xa8c6('0xa')]('/',auth['isAuthenticated'](),controller[_0xa8c6('0xb')]);router['get'](_0xa8c6('0xc'),auth[_0xa8c6('0xd')](),controller['show']);router[_0xa8c6('0xa')]('/:id/queues',auth[_0xa8c6('0xd')](),controller[_0xa8c6('0xe')]);router['get'](_0xa8c6('0xf'),auth[_0xa8c6('0xd')](),controller[_0xa8c6('0x10')]);router['post']('/',auth[_0xa8c6('0xd')](),controller[_0xa8c6('0x11')]);router[_0xa8c6('0x12')](_0xa8c6('0x13'),auth[_0xa8c6('0xd')](),controller[_0xa8c6('0x14')]);router[_0xa8c6('0x12')](_0xa8c6('0xf'),auth[_0xa8c6('0xd')](),controller[_0xa8c6('0x15')]);router['put']('/:id',auth[_0xa8c6('0xd')](),controller[_0xa8c6('0x16')]);router['delete'](_0xa8c6('0xc'),auth[_0xa8c6('0xd')](),controller[_0xa8c6('0x17')]);router[_0xa8c6('0x18')]('/:id/queues',auth[_0xa8c6('0xd')](),controller[_0xa8c6('0x19')]);router[_0xa8c6('0x18')](_0xa8c6('0xf'),auth['isAuthenticated'](),controller[_0xa8c6('0x1a')]);module[_0xa8c6('0x1b')]=router;