5ae6bea21868745282e574a14750b1ad7d6377b6
[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 _0x6c51=['multer','path','express','Router','../../components/auth/service','./chatQueue.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getMembers','getTeams','/:id/users','getAgents','post','create','addTeams','addAgents','delete','/:id/teams','removeTeams','removeAgents','exports'];(function(_0x2beba9,_0x304957){var _0xfb6f7e=function(_0x331689){while(--_0x331689){_0x2beba9['push'](_0x2beba9['shift']());}};_0xfb6f7e(++_0x304957);}(_0x6c51,0xa2));var _0x16c5=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x6c51[_0xa464c9];return _0x3d73c4;};'use strict';var multer=require(_0x16c5('0x0'));var util=require('util');var path=require(_0x16c5('0x1'));var timeout=require('connect-timeout');var express=require(_0x16c5('0x2'));var router=express[_0x16c5('0x3')]();var auth=require(_0x16c5('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x16c5('0x5'));router[_0x16c5('0x6')]('/',auth[_0x16c5('0x7')](),controller[_0x16c5('0x8')]);router['get'](_0x16c5('0x9'),auth[_0x16c5('0x7')](),controller[_0x16c5('0xa')]);router[_0x16c5('0x6')](_0x16c5('0xb'),auth[_0x16c5('0x7')](),controller[_0x16c5('0xc')]);router[_0x16c5('0x6')](_0x16c5('0xd'),auth[_0x16c5('0x7')](),controller[_0x16c5('0xe')]);router[_0x16c5('0x6')]('/:id/teams',auth[_0x16c5('0x7')](),controller[_0x16c5('0xf')]);router[_0x16c5('0x6')](_0x16c5('0x10'),auth['isAuthenticated'](),controller[_0x16c5('0x11')]);router[_0x16c5('0x12')]('/',auth['isAuthenticated'](),controller[_0x16c5('0x13')]);router[_0x16c5('0x12')]('/:id/teams',auth[_0x16c5('0x7')](),controller[_0x16c5('0x14')]);router[_0x16c5('0x12')]('/:id/users',auth[_0x16c5('0x7')](),controller[_0x16c5('0x15')]);router['put']('/:id',auth[_0x16c5('0x7')](),controller['update']);router[_0x16c5('0x16')](_0x16c5('0xb'),auth['isAuthenticated'](),controller['destroy']);router[_0x16c5('0x16')](_0x16c5('0x17'),auth['isAuthenticated'](),controller[_0x16c5('0x18')]);router[_0x16c5('0x16')](_0x16c5('0x10'),auth[_0x16c5('0x7')](),controller[_0x16c5('0x19')]);module[_0x16c5('0x1a')]=router;