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