Built motion from commit (unavailable).|2.5.6
[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 _0xca4b=['/:id/users','getAgents','post','create','addQueues','put','/:id','delete','/:id/queues','removeQueues','removeAgents','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xca4b,0x123));var _0xbca4=function(_0xc32171,_0x5dfdf0){_0xc32171=_0xc32171-0x0;var _0x3d77aa=_0xca4b[_0xc32171];return _0x3d77aa;};'use strict';var multer=require(_0xbca4('0x0'));var util=require(_0xbca4('0x1'));var path=require(_0xbca4('0x2'));var timeout=require(_0xbca4('0x3'));var express=require(_0xbca4('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xbca4('0x5'));var config=require(_0xbca4('0x6'));var controller=require('./team.controller');router[_0xbca4('0x7')]('/',auth[_0xbca4('0x8')](),controller['index']);router[_0xbca4('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xbca4('0x7')]('/:id/queues',auth[_0xbca4('0x8')](),controller['getQueues']);router[_0xbca4('0x7')](_0xbca4('0x9'),auth[_0xbca4('0x8')](),controller[_0xbca4('0xa')]);router[_0xbca4('0xb')]('/',auth[_0xbca4('0x8')](),controller[_0xbca4('0xc')]);router[_0xbca4('0xb')]('/:id/queues',auth[_0xbca4('0x8')](),controller[_0xbca4('0xd')]);router[_0xbca4('0xb')](_0xbca4('0x9'),auth[_0xbca4('0x8')](),controller['addAgents']);router[_0xbca4('0xe')](_0xbca4('0xf'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xbca4('0xf'),auth[_0xbca4('0x8')](),controller['destroy']);router[_0xbca4('0x10')](_0xbca4('0x11'),auth[_0xbca4('0x8')](),controller[_0xbca4('0x12')]);router[_0xbca4('0x10')](_0xbca4('0x9'),auth[_0xbca4('0x8')](),controller[_0xbca4('0x13')]);module['exports']=router;