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