Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / api / chatQueue / 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 _0x62c3=['getMembers','/:id/teams','getTeams','/:id/users','create','post','addTeams','addAgents','put','update','delete','removeTeams','removeAgents','exports','multer','path','../../components/interaction/service','../../config/environment','./chatQueue.controller','get','index','isAuthenticated','describe','/:id','show','/:id/members'];(function(_0x3ce7f3,_0x520831){var _0x5b5cd7=function(_0x1e8c22){while(--_0x1e8c22){_0x3ce7f3['push'](_0x3ce7f3['shift']());}};_0x5b5cd7(++_0x520831);}(_0x62c3,0xc4));var _0x362c=function(_0x1a0daa,_0x2a4634){_0x1a0daa=_0x1a0daa-0x0;var _0x1dbe15=_0x62c3[_0x1a0daa];return _0x1dbe15;};'use strict';var multer=require(_0x362c('0x0'));var util=require('util');var path=require(_0x362c('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x362c('0x2'));var config=require(_0x362c('0x3'));var controller=require(_0x362c('0x4'));router[_0x362c('0x5')]('/',auth['isAuthenticated'](),controller[_0x362c('0x6')]);router['get']('/describe',auth[_0x362c('0x7')](),controller[_0x362c('0x8')]);router['get'](_0x362c('0x9'),auth[_0x362c('0x7')](),controller[_0x362c('0xa')]);router['get'](_0x362c('0xb'),auth[_0x362c('0x7')](),controller[_0x362c('0xc')]);router['get'](_0x362c('0xd'),auth['isAuthenticated'](),controller[_0x362c('0xe')]);router[_0x362c('0x5')](_0x362c('0xf'),auth[_0x362c('0x7')](),controller['getAgents']);router['post']('/',auth[_0x362c('0x7')](),controller[_0x362c('0x10')]);router[_0x362c('0x11')](_0x362c('0xd'),auth['isAuthenticated'](),controller[_0x362c('0x12')]);router[_0x362c('0x11')]('/:id/users',auth[_0x362c('0x7')](),controller[_0x362c('0x13')]);router[_0x362c('0x14')](_0x362c('0x9'),auth[_0x362c('0x7')](),controller[_0x362c('0x15')]);router[_0x362c('0x16')](_0x362c('0x9'),auth[_0x362c('0x7')](),controller['destroy']);router[_0x362c('0x16')](_0x362c('0xd'),auth['isAuthenticated'](),controller[_0x362c('0x17')]);router[_0x362c('0x16')](_0x362c('0xf'),auth[_0x362c('0x7')](),controller[_0x362c('0x18')]);module[_0x362c('0x19')]=router;