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