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