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