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