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