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