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