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