a0790e243a2e2dfc13fd506dbafceadbb47e9d3f
[motion2.git] / server / api / voiceQueue / 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 _0xcf60=['/:id','show','/:id/hoppers','getHoppers','getHopperHistories','/:id/hopper_finals','getHopperFinals','getHopperBlacks','/:id/teams','/:id/users','/:id/members','getMembers','/:id/lists','getLists','post','create','clone','addLists','addBlackLists','put','update','delete','destroy','removeTeams','removeAgents','removeLists','multer','connect-timeout','express','Router','../../components/interaction/service','isAuthenticated','get'];(function(_0x36faba,_0x5b28ed){var _0x4f87a6=function(_0x4e5ebb){while(--_0x4e5ebb){_0x36faba['push'](_0x36faba['shift']());}};_0x4f87a6(++_0x5b28ed);}(_0xcf60,0x9e));var _0x0cf6=function(_0x566b2d,_0x63ba0e){_0x566b2d=_0x566b2d-0x0;var _0x59ab38=_0xcf60[_0x566b2d];return _0x59ab38;};'use strict';var multer=require(_0x0cf6('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x0cf6('0x1'));var express=require(_0x0cf6('0x2'));var router=express[_0x0cf6('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x0cf6('0x4'));var config=require('../../config/environment');var controller=require('./voiceQueue.controller');router['get']('/',auth[_0x0cf6('0x5')](),controller['index']);router[_0x0cf6('0x6')](_0x0cf6('0x7'),auth['isAuthenticated'](),controller[_0x0cf6('0x8')]);router[_0x0cf6('0x6')](_0x0cf6('0x9'),auth[_0x0cf6('0x5')](),controller[_0x0cf6('0xa')]);router[_0x0cf6('0x6')]('/:id/hopper_histories',auth[_0x0cf6('0x5')](),controller[_0x0cf6('0xb')]);router[_0x0cf6('0x6')](_0x0cf6('0xc'),auth[_0x0cf6('0x5')](),controller[_0x0cf6('0xd')]);router[_0x0cf6('0x6')]('/:id/hopper_black',auth[_0x0cf6('0x5')](),controller[_0x0cf6('0xe')]);router[_0x0cf6('0x6')](_0x0cf6('0xf'),auth[_0x0cf6('0x5')](),controller['getTeams']);router[_0x0cf6('0x6')](_0x0cf6('0x10'),auth['isAuthenticated'](),controller['getAgents']);router[_0x0cf6('0x6')](_0x0cf6('0x11'),auth[_0x0cf6('0x5')](),controller[_0x0cf6('0x12')]);router['get'](_0x0cf6('0x13'),auth[_0x0cf6('0x5')](),controller[_0x0cf6('0x14')]);router[_0x0cf6('0x6')]('/:id/blacklists',auth[_0x0cf6('0x5')](),controller['getBlackLists']);router[_0x0cf6('0x15')]('/',auth[_0x0cf6('0x5')](),controller[_0x0cf6('0x16')]);router[_0x0cf6('0x15')]('/:id/clone',auth['isAuthenticated'](),controller[_0x0cf6('0x17')]);router['post'](_0x0cf6('0xf'),auth[_0x0cf6('0x5')](),controller['addTeams']);router[_0x0cf6('0x15')](_0x0cf6('0x10'),auth[_0x0cf6('0x5')](),controller['addAgents']);router['post']('/:id/lists',auth['isAuthenticated'](),controller[_0x0cf6('0x18')]);router['post']('/:id/blacklists',auth[_0x0cf6('0x5')](),controller[_0x0cf6('0x19')]);router[_0x0cf6('0x1a')]('/:id',auth[_0x0cf6('0x5')](),controller[_0x0cf6('0x1b')]);router[_0x0cf6('0x1c')](_0x0cf6('0x7'),auth[_0x0cf6('0x5')](),controller[_0x0cf6('0x1d')]);router[_0x0cf6('0x1c')](_0x0cf6('0xf'),auth['isAuthenticated'](),controller[_0x0cf6('0x1e')]);router[_0x0cf6('0x1c')]('/:id/users',auth['isAuthenticated'](),controller[_0x0cf6('0x1f')]);router['delete']('/:id/lists',auth[_0x0cf6('0x5')](),controller[_0x0cf6('0x20')]);router['delete']('/:id/blacklists',auth['isAuthenticated'](),controller['removeBlackLists']);module['exports']=router;