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