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