391fbef3b13a62ab177a165db354783bc75e4198
[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 _0x8a38=['/:id/users','getAgents','post','addTeams','addAgents','put','update','delete','destroy','removeTeams','removeAgents','exports','multer','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','/describe','isAuthenticated','/:id','show','/:id/members','getMembers','/:id/teams','getTeams'];(function(_0x285cf1,_0x47e330){var _0x2fea93=function(_0x4129d6){while(--_0x4129d6){_0x285cf1['push'](_0x285cf1['shift']());}};_0x2fea93(++_0x47e330);}(_0x8a38,0x1a2));var _0x88a3=function(_0xc66af2,_0x14f6d8){_0xc66af2=_0xc66af2-0x0;var _0x38d439=_0x8a38[_0xc66af2];return _0x38d439;};'use strict';var multer=require(_0x88a3('0x0'));var util=require('util');var path=require(_0x88a3('0x1'));var timeout=require('connect-timeout');var express=require(_0x88a3('0x2'));var router=express[_0x88a3('0x3')]();var fs_extra=require(_0x88a3('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x88a3('0x5'));var config=require(_0x88a3('0x6'));var controller=require(_0x88a3('0x7'));router[_0x88a3('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x88a3('0x8')](_0x88a3('0x9'),auth[_0x88a3('0xa')](),controller['describe']);router[_0x88a3('0x8')](_0x88a3('0xb'),auth[_0x88a3('0xa')](),controller[_0x88a3('0xc')]);router['get'](_0x88a3('0xd'),auth[_0x88a3('0xa')](),controller[_0x88a3('0xe')]);router[_0x88a3('0x8')](_0x88a3('0xf'),auth[_0x88a3('0xa')](),controller[_0x88a3('0x10')]);router[_0x88a3('0x8')](_0x88a3('0x11'),auth[_0x88a3('0xa')](),controller[_0x88a3('0x12')]);router[_0x88a3('0x13')]('/',auth[_0x88a3('0xa')](),controller['create']);router[_0x88a3('0x13')](_0x88a3('0xf'),auth[_0x88a3('0xa')](),controller[_0x88a3('0x14')]);router[_0x88a3('0x13')](_0x88a3('0x11'),auth['isAuthenticated'](),controller[_0x88a3('0x15')]);router[_0x88a3('0x16')](_0x88a3('0xb'),auth[_0x88a3('0xa')](),controller[_0x88a3('0x17')]);router[_0x88a3('0x18')](_0x88a3('0xb'),auth[_0x88a3('0xa')](),controller[_0x88a3('0x19')]);router[_0x88a3('0x18')]('/:id/teams',auth['isAuthenticated'](),controller[_0x88a3('0x1a')]);router[_0x88a3('0x18')]('/:id/users',auth[_0x88a3('0xa')](),controller[_0x88a3('0x1b')]);module[_0x88a3('0x1c')]=router;