783eb9ae1f135e8cc06053ddce9b3950e67d69d6
[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 _0x20de=['fs-extra','../../components/interaction/service','./whatsappQueue.controller','get','isAuthenticated','index','/describe','describe','show','/:id/members','getTeams','/:id/users','getAgents','post','/:id/teams','addTeams','put','/:id','update','delete','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x501510,_0x61caa9){var _0x1e6ee5=function(_0x32845b){while(--_0x32845b){_0x501510['push'](_0x501510['shift']());}};_0x1e6ee5(++_0x61caa9);}(_0x20de,0x1ad));var _0xe20d=function(_0x17406a,_0x1e2320){_0x17406a=_0x17406a-0x0;var _0x1501ff=_0x20de[_0x17406a];return _0x1501ff;};'use strict';var multer=require(_0xe20d('0x0'));var util=require(_0xe20d('0x1'));var path=require(_0xe20d('0x2'));var timeout=require(_0xe20d('0x3'));var express=require(_0xe20d('0x4'));var router=express[_0xe20d('0x5')]();var fs_extra=require(_0xe20d('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xe20d('0x7'));var config=require('../../config/environment');var controller=require(_0xe20d('0x8'));router[_0xe20d('0x9')]('/',auth[_0xe20d('0xa')](),controller[_0xe20d('0xb')]);router['get'](_0xe20d('0xc'),auth['isAuthenticated'](),controller[_0xe20d('0xd')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xe20d('0xe')]);router[_0xe20d('0x9')](_0xe20d('0xf'),auth[_0xe20d('0xa')](),controller['getMembers']);router[_0xe20d('0x9')]('/:id/teams',auth['isAuthenticated'](),controller[_0xe20d('0x10')]);router[_0xe20d('0x9')](_0xe20d('0x11'),auth[_0xe20d('0xa')](),controller[_0xe20d('0x12')]);router[_0xe20d('0x13')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0xe20d('0x14'),auth[_0xe20d('0xa')](),controller[_0xe20d('0x15')]);router[_0xe20d('0x13')](_0xe20d('0x11'),auth[_0xe20d('0xa')](),controller['addAgents']);router[_0xe20d('0x16')](_0xe20d('0x17'),auth[_0xe20d('0xa')](),controller[_0xe20d('0x18')]);router[_0xe20d('0x19')](_0xe20d('0x17'),auth['isAuthenticated'](),controller['destroy']);router[_0xe20d('0x19')](_0xe20d('0x14'),auth[_0xe20d('0xa')](),controller[_0xe20d('0x1a')]);router[_0xe20d('0x19')](_0xe20d('0x11'),auth[_0xe20d('0xa')](),controller[_0xe20d('0x1b')]);module[_0xe20d('0x1c')]=router;