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