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