aba644e8e9bf30555b1ebc36e19d896e2fae3266
[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 _0x64f0=['express','Router','../../components/auth/service','../../components/interaction/service','./team.controller','get','index','show','/:id/queues','isAuthenticated','getAgents','post','create','addQueues','/:id/users','addAgents','put','/:id','update','destroy','delete','removeAgents','exports','multer','util','path','connect-timeout'];(function(_0x54f07f,_0x1f8b48){var _0xd866f7=function(_0x555f18){while(--_0x555f18){_0x54f07f['push'](_0x54f07f['shift']());}};_0xd866f7(++_0x1f8b48);}(_0x64f0,0xef));var _0x064f=function(_0x50e40b,_0x338d17){_0x50e40b=_0x50e40b-0x0;var _0x2608b7=_0x64f0[_0x50e40b];return _0x2608b7;};'use strict';var multer=require(_0x064f('0x0'));var util=require(_0x064f('0x1'));var path=require(_0x064f('0x2'));var timeout=require(_0x064f('0x3'));var express=require(_0x064f('0x4'));var router=express[_0x064f('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x064f('0x6'));var interaction=require(_0x064f('0x7'));var config=require('../../config/environment');var controller=require(_0x064f('0x8'));router[_0x064f('0x9')]('/',auth['isAuthenticated'](),controller[_0x064f('0xa')]);router[_0x064f('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x064f('0xb')]);router[_0x064f('0x9')](_0x064f('0xc'),auth['isAuthenticated'](),controller['getQueues']);router[_0x064f('0x9')]('/:id/users',auth[_0x064f('0xd')](),controller[_0x064f('0xe')]);router[_0x064f('0xf')]('/',auth[_0x064f('0xd')](),controller[_0x064f('0x10')]);router[_0x064f('0xf')](_0x064f('0xc'),auth[_0x064f('0xd')](),controller[_0x064f('0x11')]);router[_0x064f('0xf')](_0x064f('0x12'),auth['isAuthenticated'](),controller[_0x064f('0x13')]);router[_0x064f('0x14')](_0x064f('0x15'),auth[_0x064f('0xd')](),controller[_0x064f('0x16')]);router['delete']('/:id',auth[_0x064f('0xd')](),controller[_0x064f('0x17')]);router[_0x064f('0x18')](_0x064f('0xc'),auth['isAuthenticated'](),controller['removeQueues']);router[_0x064f('0x18')](_0x064f('0x12'),auth[_0x064f('0xd')](),controller[_0x064f('0x19')]);module[_0x064f('0x1a')]=router;