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