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