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