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