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