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