025bdb24d9ac3595cf2f736bf2175fd7216a8acd
[motion2.git] / server / api / chatQueue / 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 _0xbcd9=['getTeams','/:id/users','getAgents','post','create','addTeams','addAgents','update','destroy','delete','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./chatQueue.controller','isAuthenticated','index','get','describe','/:id','show','/:id/members','getMembers','/:id/teams'];(function(_0x5427c8,_0x18f384){var _0x33a129=function(_0x1940e8){while(--_0x1940e8){_0x5427c8['push'](_0x5427c8['shift']());}};_0x33a129(++_0x18f384);}(_0xbcd9,0x85));var _0x9bcd=function(_0x3e990e,_0x217278){_0x3e990e=_0x3e990e-0x0;var _0x3c95f5=_0xbcd9[_0x3e990e];return _0x3c95f5;};'use strict';var multer=require(_0x9bcd('0x0'));var util=require(_0x9bcd('0x1'));var path=require(_0x9bcd('0x2'));var timeout=require(_0x9bcd('0x3'));var express=require('express');var router=express[_0x9bcd('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x9bcd('0x5'));var config=require(_0x9bcd('0x6'));var controller=require(_0x9bcd('0x7'));router['get']('/',auth[_0x9bcd('0x8')](),controller[_0x9bcd('0x9')]);router[_0x9bcd('0xa')]('/describe',auth[_0x9bcd('0x8')](),controller[_0x9bcd('0xb')]);router[_0x9bcd('0xa')](_0x9bcd('0xc'),auth[_0x9bcd('0x8')](),controller[_0x9bcd('0xd')]);router[_0x9bcd('0xa')](_0x9bcd('0xe'),auth['isAuthenticated'](),controller[_0x9bcd('0xf')]);router['get'](_0x9bcd('0x10'),auth['isAuthenticated'](),controller[_0x9bcd('0x11')]);router[_0x9bcd('0xa')](_0x9bcd('0x12'),auth[_0x9bcd('0x8')](),controller[_0x9bcd('0x13')]);router[_0x9bcd('0x14')]('/',auth[_0x9bcd('0x8')](),controller[_0x9bcd('0x15')]);router['post']('/:id/teams',auth[_0x9bcd('0x8')](),controller[_0x9bcd('0x16')]);router[_0x9bcd('0x14')](_0x9bcd('0x12'),auth[_0x9bcd('0x8')](),controller[_0x9bcd('0x17')]);router['put'](_0x9bcd('0xc'),auth[_0x9bcd('0x8')](),controller[_0x9bcd('0x18')]);router['delete'](_0x9bcd('0xc'),auth['isAuthenticated'](),controller[_0x9bcd('0x19')]);router[_0x9bcd('0x1a')](_0x9bcd('0x10'),auth[_0x9bcd('0x8')](),controller[_0x9bcd('0x1b')]);router['delete']('/:id/users',auth[_0x9bcd('0x8')](),controller[_0x9bcd('0x1c')]);module[_0x9bcd('0x1d')]=router;