b66cf8af5bf81538480207c7b9830670bdd01286
[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 _0xa879=['connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','index','isAuthenticated','describe','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','post','create','addTeams','put','/:id','update','delete','destroy','removeTeams','removeAgents','exports','util','path'];(function(_0x4a5cce,_0x34265f){var _0x347252=function(_0x7d6755){while(--_0x7d6755){_0x4a5cce['push'](_0x4a5cce['shift']());}};_0x347252(++_0x34265f);}(_0xa879,0xde));var _0x9a87=function(_0x126bab,_0x8ea151){_0x126bab=_0x126bab-0x0;var _0x446d6d=_0xa879[_0x126bab];return _0x446d6d;};'use strict';var multer=require('multer');var util=require(_0x9a87('0x0'));var path=require(_0x9a87('0x1'));var timeout=require(_0x9a87('0x2'));var express=require(_0x9a87('0x3'));var router=express[_0x9a87('0x4')]();var auth=require(_0x9a87('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x9a87('0x6'));var controller=require('./chatQueue.controller');router[_0x9a87('0x7')]('/',auth['isAuthenticated'](),controller[_0x9a87('0x8')]);router[_0x9a87('0x7')]('/describe',auth[_0x9a87('0x9')](),controller[_0x9a87('0xa')]);router[_0x9a87('0x7')]('/:id',auth[_0x9a87('0x9')](),controller[_0x9a87('0xb')]);router[_0x9a87('0x7')](_0x9a87('0xc'),auth[_0x9a87('0x9')](),controller[_0x9a87('0xd')]);router[_0x9a87('0x7')](_0x9a87('0xe'),auth[_0x9a87('0x9')](),controller[_0x9a87('0xf')]);router[_0x9a87('0x7')](_0x9a87('0x10'),auth[_0x9a87('0x9')](),controller['getAgents']);router[_0x9a87('0x11')]('/',auth['isAuthenticated'](),controller[_0x9a87('0x12')]);router[_0x9a87('0x11')]('/:id/teams',auth['isAuthenticated'](),controller[_0x9a87('0x13')]);router[_0x9a87('0x11')](_0x9a87('0x10'),auth[_0x9a87('0x9')](),controller['addAgents']);router[_0x9a87('0x14')](_0x9a87('0x15'),auth[_0x9a87('0x9')](),controller[_0x9a87('0x16')]);router[_0x9a87('0x17')]('/:id',auth['isAuthenticated'](),controller[_0x9a87('0x18')]);router[_0x9a87('0x17')](_0x9a87('0xe'),auth[_0x9a87('0x9')](),controller[_0x9a87('0x19')]);router[_0x9a87('0x17')](_0x9a87('0x10'),auth[_0x9a87('0x9')](),controller[_0x9a87('0x1a')]);module[_0x9a87('0x1b')]=router;