Built motion from commit (unavailable).|2.4.11
[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 _0x4b43=['exports','multer','util','path','connect-timeout','express','Router','../../config/environment','./team.controller','get','isAuthenticated','index','/:id','show','/:id/queues','getQueues','/:id/users','getAgents','post','addQueues','addAgents','put','delete','removeAgents'];(function(_0x2d3da2,_0x2172f7){var _0x5c1e7f=function(_0x296f9f){while(--_0x296f9f){_0x2d3da2['push'](_0x2d3da2['shift']());}};_0x5c1e7f(++_0x2172f7);}(_0x4b43,0x199));var _0x34b4=function(_0x3a3da9,_0x135bb5){_0x3a3da9=_0x3a3da9-0x0;var _0x51f13a=_0x4b43[_0x3a3da9];return _0x51f13a;};'use strict';var multer=require(_0x34b4('0x0'));var util=require(_0x34b4('0x1'));var path=require(_0x34b4('0x2'));var timeout=require(_0x34b4('0x3'));var express=require(_0x34b4('0x4'));var router=express[_0x34b4('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x34b4('0x6'));var controller=require(_0x34b4('0x7'));router[_0x34b4('0x8')]('/',auth[_0x34b4('0x9')](),controller[_0x34b4('0xa')]);router[_0x34b4('0x8')](_0x34b4('0xb'),auth[_0x34b4('0x9')](),controller[_0x34b4('0xc')]);router[_0x34b4('0x8')](_0x34b4('0xd'),auth[_0x34b4('0x9')](),controller[_0x34b4('0xe')]);router[_0x34b4('0x8')](_0x34b4('0xf'),auth[_0x34b4('0x9')](),controller[_0x34b4('0x10')]);router[_0x34b4('0x11')]('/',auth[_0x34b4('0x9')](),controller['create']);router[_0x34b4('0x11')](_0x34b4('0xd'),auth[_0x34b4('0x9')](),controller[_0x34b4('0x12')]);router[_0x34b4('0x11')](_0x34b4('0xf'),auth['isAuthenticated'](),controller[_0x34b4('0x13')]);router[_0x34b4('0x14')](_0x34b4('0xb'),auth[_0x34b4('0x9')](),controller['update']);router['delete'](_0x34b4('0xb'),auth[_0x34b4('0x9')](),controller['destroy']);router['delete'](_0x34b4('0xd'),auth[_0x34b4('0x9')](),controller['removeQueues']);router[_0x34b4('0x15')](_0x34b4('0xf'),auth['isAuthenticated'](),controller[_0x34b4('0x16')]);module[_0x34b4('0x17')]=router;