3d77aaddfeb590dd46885e76ce91fb56f15f6cc6
[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 _0xdd61=['get','isAuthenticated','describe','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','getAgents','create','post','addTeams','/:id/users','addAgents','put','delete','destroy','removeTeams','removeAgents','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./chatQueue.controller'];(function(_0x13a0a3,_0xbb6a71){var _0x1fac00=function(_0xb250f8){while(--_0xb250f8){_0x13a0a3['push'](_0x13a0a3['shift']());}};_0x1fac00(++_0xbb6a71);}(_0xdd61,0x165));var _0x1dd6=function(_0x174ef5,_0x256e8e){_0x174ef5=_0x174ef5-0x0;var _0x1cc379=_0xdd61[_0x174ef5];return _0x1cc379;};'use strict';var multer=require(_0x1dd6('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x1dd6('0x1'));var express=require(_0x1dd6('0x2'));var router=express[_0x1dd6('0x3')]();var auth=require(_0x1dd6('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x1dd6('0x5'));var controller=require(_0x1dd6('0x6'));router[_0x1dd6('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/describe',auth[_0x1dd6('0x8')](),controller[_0x1dd6('0x9')]);router[_0x1dd6('0x7')](_0x1dd6('0xa'),auth[_0x1dd6('0x8')](),controller[_0x1dd6('0xb')]);router['get'](_0x1dd6('0xc'),auth[_0x1dd6('0x8')](),controller[_0x1dd6('0xd')]);router[_0x1dd6('0x7')](_0x1dd6('0xe'),auth[_0x1dd6('0x8')](),controller[_0x1dd6('0xf')]);router[_0x1dd6('0x7')]('/:id/users',auth[_0x1dd6('0x8')](),controller[_0x1dd6('0x10')]);router['post']('/',auth[_0x1dd6('0x8')](),controller[_0x1dd6('0x11')]);router[_0x1dd6('0x12')]('/:id/teams',auth[_0x1dd6('0x8')](),controller[_0x1dd6('0x13')]);router[_0x1dd6('0x12')](_0x1dd6('0x14'),auth[_0x1dd6('0x8')](),controller[_0x1dd6('0x15')]);router[_0x1dd6('0x16')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x1dd6('0x17')]('/:id',auth[_0x1dd6('0x8')](),controller[_0x1dd6('0x18')]);router['delete']('/:id/teams',auth[_0x1dd6('0x8')](),controller[_0x1dd6('0x19')]);router[_0x1dd6('0x17')]('/:id/users',auth[_0x1dd6('0x8')](),controller[_0x1dd6('0x1a')]);module[_0x1dd6('0x1b')]=router;