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