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