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