90ae5a5ad9bf3420b00057dc181d2885ee357983
[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 _0x4b47=['removeTeams','delete','removeAgents','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','describe','/:id','/:id/members','getTeams','/:id/users','getAgents','post','/:id/teams','addTeams','put','update'];(function(_0x46c555,_0x1607cd){var _0x4c39bd=function(_0x5593b2){while(--_0x5593b2){_0x46c555['push'](_0x46c555['shift']());}};_0x4c39bd(++_0x1607cd);}(_0x4b47,0x1b4));var _0x74b4=function(_0x6e1b57,_0x367393){_0x6e1b57=_0x6e1b57-0x0;var _0x40e558=_0x4b47[_0x6e1b57];return _0x40e558;};'use strict';var multer=require(_0x74b4('0x0'));var util=require('util');var path=require(_0x74b4('0x1'));var timeout=require(_0x74b4('0x2'));var express=require(_0x74b4('0x3'));var router=express[_0x74b4('0x4')]();var auth=require(_0x74b4('0x5'));var interaction=require(_0x74b4('0x6'));var config=require('../../config/environment');var controller=require('./openchannelQueue.controller');router[_0x74b4('0x7')]('/',auth[_0x74b4('0x8')](),controller['index']);router['get']('/describe',auth[_0x74b4('0x8')](),controller[_0x74b4('0x9')]);router[_0x74b4('0x7')](_0x74b4('0xa'),auth[_0x74b4('0x8')](),controller['show']);router['get'](_0x74b4('0xb'),auth[_0x74b4('0x8')](),controller['getMembers']);router['get']('/:id/teams',auth[_0x74b4('0x8')](),controller[_0x74b4('0xc')]);router[_0x74b4('0x7')](_0x74b4('0xd'),auth['isAuthenticated'](),controller[_0x74b4('0xe')]);router['post']('/',auth[_0x74b4('0x8')](),controller['create']);router[_0x74b4('0xf')](_0x74b4('0x10'),auth[_0x74b4('0x8')](),controller[_0x74b4('0x11')]);router['post'](_0x74b4('0xd'),auth[_0x74b4('0x8')](),controller['addAgents']);router[_0x74b4('0x12')](_0x74b4('0xa'),auth[_0x74b4('0x8')](),controller[_0x74b4('0x13')]);router['delete'](_0x74b4('0xa'),auth[_0x74b4('0x8')](),controller['destroy']);router['delete'](_0x74b4('0x10'),auth[_0x74b4('0x8')](),controller[_0x74b4('0x14')]);router[_0x74b4('0x15')](_0x74b4('0xd'),auth[_0x74b4('0x8')](),controller[_0x74b4('0x16')]);module[_0x74b4('0x17')]=router;