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