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