Built motion from commit 52c8a02d.|2.6.29
[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 _0x5380=['/:id/teams','getTeams','/:id/users','getAgents','post','create','addTeams','addAgents','delete','destroy','removeTeams','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','/:id/members'];(function(_0x2b49bc,_0x47b636){var _0x43cc65=function(_0x236ec3){while(--_0x236ec3){_0x2b49bc['push'](_0x2b49bc['shift']());}};_0x43cc65(++_0x47b636);}(_0x5380,0xe4));var _0x0538=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x5380[_0x2c91e9];return _0x13f0ff;};'use strict';var multer=require(_0x0538('0x0'));var util=require(_0x0538('0x1'));var path=require(_0x0538('0x2'));var timeout=require(_0x0538('0x3'));var express=require('express');var router=express[_0x0538('0x4')]();var fs_extra=require(_0x0538('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x0538('0x6'));var config=require(_0x0538('0x7'));var controller=require('./whatsappQueue.controller');router['get']('/',auth[_0x0538('0x8')](),controller[_0x0538('0x9')]);router[_0x0538('0xa')](_0x0538('0xb'),auth[_0x0538('0x8')](),controller[_0x0538('0xc')]);router[_0x0538('0xa')](_0x0538('0xd'),auth[_0x0538('0x8')](),controller['show']);router[_0x0538('0xa')](_0x0538('0xe'),auth[_0x0538('0x8')](),controller['getMembers']);router['get'](_0x0538('0xf'),auth[_0x0538('0x8')](),controller[_0x0538('0x10')]);router[_0x0538('0xa')](_0x0538('0x11'),auth[_0x0538('0x8')](),controller[_0x0538('0x12')]);router[_0x0538('0x13')]('/',auth[_0x0538('0x8')](),controller[_0x0538('0x14')]);router['post'](_0x0538('0xf'),auth[_0x0538('0x8')](),controller[_0x0538('0x15')]);router[_0x0538('0x13')]('/:id/users',auth[_0x0538('0x8')](),controller[_0x0538('0x16')]);router['put']('/:id',auth[_0x0538('0x8')](),controller['update']);router[_0x0538('0x17')](_0x0538('0xd'),auth[_0x0538('0x8')](),controller[_0x0538('0x18')]);router['delete'](_0x0538('0xf'),auth[_0x0538('0x8')](),controller[_0x0538('0x19')]);router[_0x0538('0x17')](_0x0538('0x11'),auth[_0x0538('0x8')](),controller['removeAgents']);module[_0x0538('0x1a')]=router;