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