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