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