Built motion from commit 1fa89557.|2.6.10
[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 _0xa683=['removeAgents','exports','multer','path','Router','fs-extra','../../components/auth/service','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getMembers','getTeams','/:id/users','getAgents','post','create','addAgents','put','update','delete','/:id/teams','removeTeams'];(function(_0xe34e95,_0x5b0f87){var _0x15ba48=function(_0x3bf99b){while(--_0x3bf99b){_0xe34e95['push'](_0xe34e95['shift']());}};_0x15ba48(++_0x5b0f87);}(_0xa683,0xda));var _0x3a68=function(_0x51f3ff,_0x134155){_0x51f3ff=_0x51f3ff-0x0;var _0x4db8e3=_0xa683[_0x51f3ff];return _0x4db8e3;};'use strict';var multer=require(_0x3a68('0x0'));var util=require('util');var path=require(_0x3a68('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3a68('0x2')]();var fs_extra=require(_0x3a68('0x3'));var auth=require(_0x3a68('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./whatsappQueue.controller');router[_0x3a68('0x5')]('/',auth[_0x3a68('0x6')](),controller[_0x3a68('0x7')]);router['get'](_0x3a68('0x8'),auth[_0x3a68('0x6')](),controller[_0x3a68('0x9')]);router[_0x3a68('0x5')](_0x3a68('0xa'),auth[_0x3a68('0x6')](),controller[_0x3a68('0xb')]);router[_0x3a68('0x5')](_0x3a68('0xc'),auth[_0x3a68('0x6')](),controller[_0x3a68('0xd')]);router[_0x3a68('0x5')]('/:id/teams',auth[_0x3a68('0x6')](),controller[_0x3a68('0xe')]);router['get'](_0x3a68('0xf'),auth[_0x3a68('0x6')](),controller[_0x3a68('0x10')]);router[_0x3a68('0x11')]('/',auth[_0x3a68('0x6')](),controller[_0x3a68('0x12')]);router[_0x3a68('0x11')]('/:id/teams',auth[_0x3a68('0x6')](),controller['addTeams']);router[_0x3a68('0x11')](_0x3a68('0xf'),auth['isAuthenticated'](),controller[_0x3a68('0x13')]);router[_0x3a68('0x14')]('/:id',auth[_0x3a68('0x6')](),controller[_0x3a68('0x15')]);router[_0x3a68('0x16')](_0x3a68('0xa'),auth[_0x3a68('0x6')](),controller['destroy']);router[_0x3a68('0x16')](_0x3a68('0x17'),auth[_0x3a68('0x6')](),controller[_0x3a68('0x18')]);router[_0x3a68('0x16')](_0x3a68('0xf'),auth[_0x3a68('0x6')](),controller[_0x3a68('0x19')]);module[_0x3a68('0x1a')]=router;