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