18cd3be8db79b7344a9d5ae2a6649f3b8e00b1a4
[motion2.git] / server / api / openchannelQueue / 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 _0xe9b6=['show','getMembers','getTeams','/:id/users','post','create','/:id/teams','addTeams','addAgents','put','/:id','delete','destroy','removeAgents','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','isAuthenticated','index','/describe','describe'];(function(_0x286726,_0x20a337){var _0xcd4fe9=function(_0x4d7da6){while(--_0x4d7da6){_0x286726['push'](_0x286726['shift']());}};_0xcd4fe9(++_0x20a337);}(_0xe9b6,0x177));var _0x6e9b=function(_0x18464f,_0xd2987){_0x18464f=_0x18464f-0x0;var _0x217a71=_0xe9b6[_0x18464f];return _0x217a71;};'use strict';var multer=require(_0x6e9b('0x0'));var util=require(_0x6e9b('0x1'));var path=require(_0x6e9b('0x2'));var timeout=require('connect-timeout');var express=require(_0x6e9b('0x3'));var router=express[_0x6e9b('0x4')]();var fs_extra=require(_0x6e9b('0x5'));var auth=require(_0x6e9b('0x6'));var interaction=require(_0x6e9b('0x7'));var config=require(_0x6e9b('0x8'));var controller=require(_0x6e9b('0x9'));router[_0x6e9b('0xa')]('/',auth[_0x6e9b('0xb')](),controller[_0x6e9b('0xc')]);router[_0x6e9b('0xa')](_0x6e9b('0xd'),auth[_0x6e9b('0xb')](),controller[_0x6e9b('0xe')]);router['get']('/:id',auth[_0x6e9b('0xb')](),controller[_0x6e9b('0xf')]);router[_0x6e9b('0xa')]('/:id/members',auth[_0x6e9b('0xb')](),controller[_0x6e9b('0x10')]);router[_0x6e9b('0xa')]('/:id/teams',auth['isAuthenticated'](),controller[_0x6e9b('0x11')]);router[_0x6e9b('0xa')](_0x6e9b('0x12'),auth[_0x6e9b('0xb')](),controller['getAgents']);router[_0x6e9b('0x13')]('/',auth[_0x6e9b('0xb')](),controller[_0x6e9b('0x14')]);router[_0x6e9b('0x13')](_0x6e9b('0x15'),auth[_0x6e9b('0xb')](),controller[_0x6e9b('0x16')]);router['post'](_0x6e9b('0x12'),auth[_0x6e9b('0xb')](),controller[_0x6e9b('0x17')]);router[_0x6e9b('0x18')](_0x6e9b('0x19'),auth[_0x6e9b('0xb')](),controller['update']);router[_0x6e9b('0x1a')](_0x6e9b('0x19'),auth[_0x6e9b('0xb')](),controller[_0x6e9b('0x1b')]);router[_0x6e9b('0x1a')]('/:id/teams',auth[_0x6e9b('0xb')](),controller['removeTeams']);router[_0x6e9b('0x1a')](_0x6e9b('0x12'),auth[_0x6e9b('0xb')](),controller[_0x6e9b('0x1c')]);module[_0x6e9b('0x1d')]=router;