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