06bb5f63f053a936a47720639fc2f85c6a27a25b
[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 _0x22f3=['/:id/users','getAgents','post','create','addTeams','addAgents','delete','destroy','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./whatsappQueue.controller','get','isAuthenticated','describe','/:id','/:id/members','/:id/teams','getTeams'];(function(_0x5a320e,_0x1fbfac){var _0x2ac62b=function(_0x4f6ab4){while(--_0x4f6ab4){_0x5a320e['push'](_0x5a320e['shift']());}};_0x2ac62b(++_0x1fbfac);}(_0x22f3,0xc8));var _0x322f=function(_0x4df0ac,_0x18f735){_0x4df0ac=_0x4df0ac-0x0;var _0x1683d7=_0x22f3[_0x4df0ac];return _0x1683d7;};'use strict';var multer=require(_0x322f('0x0'));var util=require(_0x322f('0x1'));var path=require(_0x322f('0x2'));var timeout=require(_0x322f('0x3'));var express=require(_0x322f('0x4'));var router=express['Router']();var fs_extra=require(_0x322f('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x322f('0x6'));var config=require(_0x322f('0x7'));var controller=require(_0x322f('0x8'));router[_0x322f('0x9')]('/',auth[_0x322f('0xa')](),controller['index']);router[_0x322f('0x9')]('/describe',auth[_0x322f('0xa')](),controller[_0x322f('0xb')]);router['get'](_0x322f('0xc'),auth[_0x322f('0xa')](),controller['show']);router[_0x322f('0x9')](_0x322f('0xd'),auth['isAuthenticated'](),controller['getMembers']);router[_0x322f('0x9')](_0x322f('0xe'),auth[_0x322f('0xa')](),controller[_0x322f('0xf')]);router[_0x322f('0x9')](_0x322f('0x10'),auth[_0x322f('0xa')](),controller[_0x322f('0x11')]);router[_0x322f('0x12')]('/',auth[_0x322f('0xa')](),controller[_0x322f('0x13')]);router[_0x322f('0x12')]('/:id/teams',auth['isAuthenticated'](),controller[_0x322f('0x14')]);router['post'](_0x322f('0x10'),auth[_0x322f('0xa')](),controller[_0x322f('0x15')]);router['put'](_0x322f('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x322f('0x16')](_0x322f('0xc'),auth[_0x322f('0xa')](),controller[_0x322f('0x17')]);router['delete'](_0x322f('0xe'),auth[_0x322f('0xa')](),controller[_0x322f('0x18')]);router['delete'](_0x322f('0x10'),auth[_0x322f('0xa')](),controller[_0x322f('0x19')]);module[_0x322f('0x1a')]=router;