353a5fceb17b5f33ff14d6a46a8b06b125978187
[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 _0x5c1f=['/:id/teams','getTeams','getAgents','post','create','addTeams','/:id/users','addAgents','put','/:id','delete','destroy','removeTeams','removeAgents','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','/describe','describe','get','/:id/members','getMembers'];(function(_0x1488cd,_0x25a893){var _0x63fa13=function(_0x57dd1c){while(--_0x57dd1c){_0x1488cd['push'](_0x1488cd['shift']());}};_0x63fa13(++_0x25a893);}(_0x5c1f,0x1b3));var _0xf5c1=function(_0x35bd6c,_0x585087){_0x35bd6c=_0x35bd6c-0x0;var _0x2f421d=_0x5c1f[_0x35bd6c];return _0x2f421d;};'use strict';var multer=require(_0xf5c1('0x0'));var util=require('util');var path=require(_0xf5c1('0x1'));var timeout=require(_0xf5c1('0x2'));var express=require('express');var router=express[_0xf5c1('0x3')]();var auth=require(_0xf5c1('0x4'));var interaction=require(_0xf5c1('0x5'));var config=require('../../config/environment');var controller=require('./openchannelQueue.controller');router['get']('/',auth[_0xf5c1('0x6')](),controller[_0xf5c1('0x7')]);router['get'](_0xf5c1('0x8'),auth[_0xf5c1('0x6')](),controller[_0xf5c1('0x9')]);router[_0xf5c1('0xa')]('/:id',auth['isAuthenticated'](),controller['show']);router['get'](_0xf5c1('0xb'),auth[_0xf5c1('0x6')](),controller[_0xf5c1('0xc')]);router[_0xf5c1('0xa')](_0xf5c1('0xd'),auth[_0xf5c1('0x6')](),controller[_0xf5c1('0xe')]);router[_0xf5c1('0xa')]('/:id/users',auth[_0xf5c1('0x6')](),controller[_0xf5c1('0xf')]);router[_0xf5c1('0x10')]('/',auth[_0xf5c1('0x6')](),controller[_0xf5c1('0x11')]);router['post'](_0xf5c1('0xd'),auth['isAuthenticated'](),controller[_0xf5c1('0x12')]);router[_0xf5c1('0x10')](_0xf5c1('0x13'),auth['isAuthenticated'](),controller[_0xf5c1('0x14')]);router[_0xf5c1('0x15')](_0xf5c1('0x16'),auth[_0xf5c1('0x6')](),controller['update']);router[_0xf5c1('0x17')](_0xf5c1('0x16'),auth[_0xf5c1('0x6')](),controller[_0xf5c1('0x18')]);router[_0xf5c1('0x17')]('/:id/teams',auth[_0xf5c1('0x6')](),controller[_0xf5c1('0x19')]);router[_0xf5c1('0x17')](_0xf5c1('0x13'),auth[_0xf5c1('0x6')](),controller[_0xf5c1('0x1a')]);module[_0xf5c1('0x1b')]=router;