Built motion from commit (unavailable).|2.5.8
[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 _0xb182=['isAuthenticated','index','/describe','describe','show','getTeams','/:id/users','getAgents','post','create','addTeams','addAgents','put','/:id','update','destroy','delete','/:id/teams','removeAgents','exports','util','path','express','../../components/interaction/service','../../config/environment','./chatQueue.controller','get'];(function(_0x2b0288,_0xefe3ed){var _0x4bd806=function(_0x564cba){while(--_0x564cba){_0x2b0288['push'](_0x2b0288['shift']());}};_0x4bd806(++_0xefe3ed);}(_0xb182,0x1c4));var _0x2b18=function(_0x340756,_0xad31ae){_0x340756=_0x340756-0x0;var _0x2ef745=_0xb182[_0x340756];return _0x2ef745;};'use strict';var multer=require('multer');var util=require(_0x2b18('0x0'));var path=require(_0x2b18('0x1'));var timeout=require('connect-timeout');var express=require(_0x2b18('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x2b18('0x3'));var config=require(_0x2b18('0x4'));var controller=require(_0x2b18('0x5'));router[_0x2b18('0x6')]('/',auth[_0x2b18('0x7')](),controller[_0x2b18('0x8')]);router[_0x2b18('0x6')](_0x2b18('0x9'),auth[_0x2b18('0x7')](),controller[_0x2b18('0xa')]);router['get']('/:id',auth[_0x2b18('0x7')](),controller[_0x2b18('0xb')]);router['get']('/:id/members',auth[_0x2b18('0x7')](),controller['getMembers']);router['get']('/:id/teams',auth[_0x2b18('0x7')](),controller[_0x2b18('0xc')]);router['get'](_0x2b18('0xd'),auth[_0x2b18('0x7')](),controller[_0x2b18('0xe')]);router[_0x2b18('0xf')]('/',auth[_0x2b18('0x7')](),controller[_0x2b18('0x10')]);router['post']('/:id/teams',auth[_0x2b18('0x7')](),controller[_0x2b18('0x11')]);router['post'](_0x2b18('0xd'),auth[_0x2b18('0x7')](),controller[_0x2b18('0x12')]);router[_0x2b18('0x13')](_0x2b18('0x14'),auth[_0x2b18('0x7')](),controller[_0x2b18('0x15')]);router['delete']('/:id',auth[_0x2b18('0x7')](),controller[_0x2b18('0x16')]);router[_0x2b18('0x17')](_0x2b18('0x18'),auth[_0x2b18('0x7')](),controller['removeTeams']);router[_0x2b18('0x17')](_0x2b18('0xd'),auth[_0x2b18('0x7')](),controller[_0x2b18('0x19')]);module[_0x2b18('0x1a')]=router;