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