35658bcefc9a8f01a3474b074810f2a14b1198ba
[motion2.git] / server / api / whatsappQueue / 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 _0x05ab=['delete','destroy','removeTeams','removeAgents','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappQueue.controller','isAuthenticated','index','get','/describe','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','post','create','addTeams','addAgents','put','update'];(function(_0x2ddc4a,_0xdcf87){var _0x44bd44=function(_0x3e8b79){while(--_0x3e8b79){_0x2ddc4a['push'](_0x2ddc4a['shift']());}};_0x44bd44(++_0xdcf87);}(_0x05ab,0x1e4));var _0xb05a=function(_0x2b7764,_0x2606f1){_0x2b7764=_0x2b7764-0x0;var _0x848dcb=_0x05ab[_0x2b7764];return _0x848dcb;};'use strict';var multer=require(_0xb05a('0x0'));var util=require(_0xb05a('0x1'));var path=require(_0xb05a('0x2'));var timeout=require('connect-timeout');var express=require(_0xb05a('0x3'));var router=express[_0xb05a('0x4')]();var auth=require(_0xb05a('0x5'));var interaction=require(_0xb05a('0x6'));var config=require(_0xb05a('0x7'));var controller=require(_0xb05a('0x8'));router['get']('/',auth[_0xb05a('0x9')](),controller[_0xb05a('0xa')]);router[_0xb05a('0xb')](_0xb05a('0xc'),auth[_0xb05a('0x9')](),controller['describe']);router[_0xb05a('0xb')](_0xb05a('0xd'),auth[_0xb05a('0x9')](),controller[_0xb05a('0xe')]);router[_0xb05a('0xb')](_0xb05a('0xf'),auth[_0xb05a('0x9')](),controller[_0xb05a('0x10')]);router[_0xb05a('0xb')](_0xb05a('0x11'),auth[_0xb05a('0x9')](),controller[_0xb05a('0x12')]);router['get'](_0xb05a('0x13'),auth['isAuthenticated'](),controller['getAgents']);router[_0xb05a('0x14')]('/',auth[_0xb05a('0x9')](),controller[_0xb05a('0x15')]);router['post']('/:id/teams',auth[_0xb05a('0x9')](),controller[_0xb05a('0x16')]);router[_0xb05a('0x14')]('/:id/users',auth[_0xb05a('0x9')](),controller[_0xb05a('0x17')]);router[_0xb05a('0x18')]('/:id',auth[_0xb05a('0x9')](),controller[_0xb05a('0x19')]);router[_0xb05a('0x1a')](_0xb05a('0xd'),auth[_0xb05a('0x9')](),controller[_0xb05a('0x1b')]);router[_0xb05a('0x1a')](_0xb05a('0x11'),auth[_0xb05a('0x9')](),controller[_0xb05a('0x1c')]);router[_0xb05a('0x1a')](_0xb05a('0x13'),auth[_0xb05a('0x9')](),controller[_0xb05a('0x1d')]);module['exports']=router;