Built motion from commit 9d0783e6.|2.6.13
[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 _0xa2d2=['removeTeams','removeAgents','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappQueue.controller','get','isAuthenticated','index','/describe','describe','/:id','/:id/members','getMembers','/:id/users','getAgents','post','create','/:id/teams','addAgents','update','delete'];(function(_0x40bffc,_0x3a45d7){var _0x3007e9=function(_0x4c8fda){while(--_0x4c8fda){_0x40bffc['push'](_0x40bffc['shift']());}};_0x3007e9(++_0x3a45d7);}(_0xa2d2,0x16e));var _0x2a2d=function(_0x1ee6fd,_0x2a8151){_0x1ee6fd=_0x1ee6fd-0x0;var _0x4c27ee=_0xa2d2[_0x1ee6fd];return _0x4c27ee;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2a2d('0x0'));var timeout=require(_0x2a2d('0x1'));var express=require(_0x2a2d('0x2'));var router=express[_0x2a2d('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x2a2d('0x4'));var interaction=require(_0x2a2d('0x5'));var config=require(_0x2a2d('0x6'));var controller=require(_0x2a2d('0x7'));router[_0x2a2d('0x8')]('/',auth[_0x2a2d('0x9')](),controller[_0x2a2d('0xa')]);router[_0x2a2d('0x8')](_0x2a2d('0xb'),auth['isAuthenticated'](),controller[_0x2a2d('0xc')]);router[_0x2a2d('0x8')](_0x2a2d('0xd'),auth[_0x2a2d('0x9')](),controller['show']);router[_0x2a2d('0x8')](_0x2a2d('0xe'),auth[_0x2a2d('0x9')](),controller[_0x2a2d('0xf')]);router[_0x2a2d('0x8')]('/:id/teams',auth[_0x2a2d('0x9')](),controller['getTeams']);router[_0x2a2d('0x8')](_0x2a2d('0x10'),auth['isAuthenticated'](),controller[_0x2a2d('0x11')]);router[_0x2a2d('0x12')]('/',auth['isAuthenticated'](),controller[_0x2a2d('0x13')]);router[_0x2a2d('0x12')](_0x2a2d('0x14'),auth['isAuthenticated'](),controller['addTeams']);router[_0x2a2d('0x12')]('/:id/users',auth[_0x2a2d('0x9')](),controller[_0x2a2d('0x15')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x2a2d('0x16')]);router[_0x2a2d('0x17')](_0x2a2d('0xd'),auth[_0x2a2d('0x9')](),controller['destroy']);router[_0x2a2d('0x17')](_0x2a2d('0x14'),auth[_0x2a2d('0x9')](),controller[_0x2a2d('0x18')]);router[_0x2a2d('0x17')](_0x2a2d('0x10'),auth[_0x2a2d('0x9')](),controller[_0x2a2d('0x19')]);module['exports']=router;