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