Built motion from commit (unavailable).|2.4.18
[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 _0x8151=['get','index','/:id','isAuthenticated','show','/:id/hoppers','getHoppers','/:id/hopper_histories','getHopperHistories','getHopperFinals','/:id/hopper_black','getHopperBlacks','getTeams','getAgents','/:id/members','/:id/lists','getLists','/:id/blacklists','getBlackLists','post','create','addTeams','/:id/users','addAgents','addLists','addBlackLists','put','update','delete','destroy','/:id/teams','removeTeams','removeAgents','removeLists','removeBlackLists','multer','util','express','Router','../../components/interaction/service','../../config/environment'];(function(_0x359681,_0x14b4e1){var _0x509eea=function(_0x2da226){while(--_0x2da226){_0x359681['push'](_0x359681['shift']());}};_0x509eea(++_0x14b4e1);}(_0x8151,0x142));var _0x1815=function(_0xdc5664,_0x4eef5a){_0xdc5664=_0xdc5664-0x0;var _0xd65a92=_0x8151[_0xdc5664];return _0xd65a92;};'use strict';var multer=require(_0x1815('0x0'));var util=require(_0x1815('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x1815('0x2'));var router=express[_0x1815('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x1815('0x4'));var config=require(_0x1815('0x5'));var controller=require('./voiceQueue.controller');router[_0x1815('0x6')]('/',auth['isAuthenticated'](),controller[_0x1815('0x7')]);router[_0x1815('0x6')](_0x1815('0x8'),auth[_0x1815('0x9')](),controller[_0x1815('0xa')]);router[_0x1815('0x6')](_0x1815('0xb'),auth[_0x1815('0x9')](),controller[_0x1815('0xc')]);router['get'](_0x1815('0xd'),auth[_0x1815('0x9')](),controller[_0x1815('0xe')]);router[_0x1815('0x6')]('/:id/hopper_finals',auth[_0x1815('0x9')](),controller[_0x1815('0xf')]);router[_0x1815('0x6')](_0x1815('0x10'),auth['isAuthenticated'](),controller[_0x1815('0x11')]);router[_0x1815('0x6')]('/:id/teams',auth[_0x1815('0x9')](),controller[_0x1815('0x12')]);router['get']('/:id/users',auth[_0x1815('0x9')](),controller[_0x1815('0x13')]);router[_0x1815('0x6')](_0x1815('0x14'),auth[_0x1815('0x9')](),controller['getMembers']);router[_0x1815('0x6')](_0x1815('0x15'),auth[_0x1815('0x9')](),controller[_0x1815('0x16')]);router[_0x1815('0x6')](_0x1815('0x17'),auth[_0x1815('0x9')](),controller[_0x1815('0x18')]);router[_0x1815('0x19')]('/',auth[_0x1815('0x9')](),controller[_0x1815('0x1a')]);router[_0x1815('0x19')]('/:id/clone',auth[_0x1815('0x9')](),controller['clone']);router[_0x1815('0x19')]('/:id/teams',auth[_0x1815('0x9')](),controller[_0x1815('0x1b')]);router[_0x1815('0x19')](_0x1815('0x1c'),auth[_0x1815('0x9')](),controller[_0x1815('0x1d')]);router[_0x1815('0x19')](_0x1815('0x15'),auth['isAuthenticated'](),controller[_0x1815('0x1e')]);router[_0x1815('0x19')]('/:id/blacklists',auth[_0x1815('0x9')](),controller[_0x1815('0x1f')]);router[_0x1815('0x20')](_0x1815('0x8'),auth[_0x1815('0x9')](),controller[_0x1815('0x21')]);router[_0x1815('0x22')](_0x1815('0x8'),auth['isAuthenticated'](),controller[_0x1815('0x23')]);router[_0x1815('0x22')](_0x1815('0x24'),auth[_0x1815('0x9')](),controller[_0x1815('0x25')]);router['delete'](_0x1815('0x1c'),auth['isAuthenticated'](),controller[_0x1815('0x26')]);router[_0x1815('0x22')](_0x1815('0x15'),auth['isAuthenticated'](),controller[_0x1815('0x27')]);router[_0x1815('0x22')](_0x1815('0x17'),auth['isAuthenticated'](),controller[_0x1815('0x28')]);module['exports']=router;