e510a8767895e9da967e9c7bc7b97a18b9590e79
[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 _0x193d=['destroy','removeTeams','removeAgents','exports','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./whatsappQueue.controller','isAuthenticated','index','get','/describe','describe','/:id','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','addTeams','addAgents','put','update','delete'];(function(_0x277af0,_0x1f0361){var _0x43bd7c=function(_0x3ad480){while(--_0x3ad480){_0x277af0['push'](_0x277af0['shift']());}};_0x43bd7c(++_0x1f0361);}(_0x193d,0xdc));var _0xd193=function(_0x36ed48,_0x1ee0d4){_0x36ed48=_0x36ed48-0x0;var _0x51c63a=_0x193d[_0x36ed48];return _0x51c63a;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xd193('0x0'));var timeout=require(_0xd193('0x1'));var express=require('express');var router=express[_0xd193('0x2')]();var auth=require(_0xd193('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xd193('0x4'));var controller=require(_0xd193('0x5'));router['get']('/',auth[_0xd193('0x6')](),controller[_0xd193('0x7')]);router[_0xd193('0x8')](_0xd193('0x9'),auth[_0xd193('0x6')](),controller[_0xd193('0xa')]);router[_0xd193('0x8')](_0xd193('0xb'),auth['isAuthenticated'](),controller['show']);router[_0xd193('0x8')]('/:id/members',auth['isAuthenticated'](),controller[_0xd193('0xc')]);router[_0xd193('0x8')](_0xd193('0xd'),auth[_0xd193('0x6')](),controller[_0xd193('0xe')]);router[_0xd193('0x8')](_0xd193('0xf'),auth[_0xd193('0x6')](),controller[_0xd193('0x10')]);router[_0xd193('0x11')]('/',auth['isAuthenticated'](),controller['create']);router[_0xd193('0x11')](_0xd193('0xd'),auth[_0xd193('0x6')](),controller[_0xd193('0x12')]);router[_0xd193('0x11')](_0xd193('0xf'),auth[_0xd193('0x6')](),controller[_0xd193('0x13')]);router[_0xd193('0x14')]('/:id',auth[_0xd193('0x6')](),controller[_0xd193('0x15')]);router[_0xd193('0x16')](_0xd193('0xb'),auth[_0xd193('0x6')](),controller[_0xd193('0x17')]);router['delete'](_0xd193('0xd'),auth[_0xd193('0x6')](),controller[_0xd193('0x18')]);router[_0xd193('0x16')](_0xd193('0xf'),auth[_0xd193('0x6')](),controller[_0xd193('0x19')]);module[_0xd193('0x1a')]=router;