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