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