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