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