6cc7540e073f836cf6841116b8a697cf1d40d440
[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 _0x4af9=['destroy','removeTeams','removeAgents','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','index','/describe','isAuthenticated','/:id','/:id/members','getMembers','/:id/teams','/:id/users','getAgents','post','create','addAgents','put','update','delete'];(function(_0x10bc4b,_0x400589){var _0x25e298=function(_0xf69786){while(--_0xf69786){_0x10bc4b['push'](_0x10bc4b['shift']());}};_0x25e298(++_0x400589);}(_0x4af9,0x12c));var _0x94af=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x4af9[_0x397e5f];return _0x5302b8;};'use strict';var multer=require(_0x94af('0x0'));var util=require(_0x94af('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x94af('0x2'));var router=express[_0x94af('0x3')]();var auth=require(_0x94af('0x4'));var interaction=require(_0x94af('0x5'));var config=require(_0x94af('0x6'));var controller=require(_0x94af('0x7'));router[_0x94af('0x8')]('/',auth['isAuthenticated'](),controller[_0x94af('0x9')]);router[_0x94af('0x8')](_0x94af('0xa'),auth[_0x94af('0xb')](),controller['describe']);router[_0x94af('0x8')](_0x94af('0xc'),auth[_0x94af('0xb')](),controller['show']);router['get'](_0x94af('0xd'),auth[_0x94af('0xb')](),controller[_0x94af('0xe')]);router[_0x94af('0x8')](_0x94af('0xf'),auth[_0x94af('0xb')](),controller['getTeams']);router[_0x94af('0x8')](_0x94af('0x10'),auth['isAuthenticated'](),controller[_0x94af('0x11')]);router[_0x94af('0x12')]('/',auth[_0x94af('0xb')](),controller[_0x94af('0x13')]);router[_0x94af('0x12')]('/:id/teams',auth[_0x94af('0xb')](),controller['addTeams']);router['post']('/:id/users',auth[_0x94af('0xb')](),controller[_0x94af('0x14')]);router[_0x94af('0x15')](_0x94af('0xc'),auth['isAuthenticated'](),controller[_0x94af('0x16')]);router[_0x94af('0x17')]('/:id',auth[_0x94af('0xb')](),controller[_0x94af('0x18')]);router[_0x94af('0x17')](_0x94af('0xf'),auth[_0x94af('0xb')](),controller[_0x94af('0x19')]);router[_0x94af('0x17')](_0x94af('0x10'),auth[_0x94af('0xb')](),controller[_0x94af('0x1a')]);module['exports']=router;