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