Built motion from commit (unavailable).|2.5.19
[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 _0xf0ae=['../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id/teams','getTeams','/:id/users','post','addTeams','put','update','delete','/:id','destroy','removeTeams','removeAgents','exports','multer','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x14ceb5,_0x177a36){var _0x414f6a=function(_0xc67a33){while(--_0xc67a33){_0x14ceb5['push'](_0x14ceb5['shift']());}};_0x414f6a(++_0x177a36);}(_0xf0ae,0x96));var _0xef0a=function(_0x1f9f37,_0x18776e){_0x1f9f37=_0x1f9f37-0x0;var _0x21c080=_0xf0ae[_0x1f9f37];return _0x21c080;};'use strict';var multer=require(_0xef0a('0x0'));var util=require('util');var path=require(_0xef0a('0x1'));var timeout=require(_0xef0a('0x2'));var express=require(_0xef0a('0x3'));var router=express[_0xef0a('0x4')]();var auth=require(_0xef0a('0x5'));var interaction=require(_0xef0a('0x6'));var config=require(_0xef0a('0x7'));var controller=require('./whatsappQueue.controller');router['get']('/',auth[_0xef0a('0x8')](),controller[_0xef0a('0x9')]);router[_0xef0a('0xa')](_0xef0a('0xb'),auth['isAuthenticated'](),controller[_0xef0a('0xc')]);router[_0xef0a('0xa')]('/:id',auth[_0xef0a('0x8')](),controller['show']);router[_0xef0a('0xa')]('/:id/members',auth[_0xef0a('0x8')](),controller['getMembers']);router[_0xef0a('0xa')](_0xef0a('0xd'),auth[_0xef0a('0x8')](),controller[_0xef0a('0xe')]);router[_0xef0a('0xa')](_0xef0a('0xf'),auth[_0xef0a('0x8')](),controller['getAgents']);router[_0xef0a('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0xef0a('0x10')](_0xef0a('0xd'),auth['isAuthenticated'](),controller[_0xef0a('0x11')]);router[_0xef0a('0x10')](_0xef0a('0xf'),auth['isAuthenticated'](),controller['addAgents']);router[_0xef0a('0x12')]('/:id',auth['isAuthenticated'](),controller[_0xef0a('0x13')]);router[_0xef0a('0x14')](_0xef0a('0x15'),auth[_0xef0a('0x8')](),controller[_0xef0a('0x16')]);router[_0xef0a('0x14')](_0xef0a('0xd'),auth[_0xef0a('0x8')](),controller[_0xef0a('0x17')]);router['delete'](_0xef0a('0xf'),auth[_0xef0a('0x8')](),controller[_0xef0a('0x18')]);module[_0xef0a('0x19')]=router;