"""
Views for integrations.
"""
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework import status


@api_view(['GET', 'POST'])
@permission_classes([IsAuthenticated])
def salesforce_integration(request):
    """Salesforce integration endpoints."""
    if request.method == 'GET':
        return Response({'message': 'Salesforce integration status'})
    else:
        return Response({'message': 'Salesforce sync initiated'})


@api_view(['GET', 'POST'])
@permission_classes([IsAuthenticated])
def dubai_pulse_integration(request):
    """Dubai Pulse integration endpoints."""
    if request.method == 'GET':
        return Response({'message': 'Dubai Pulse integration status'})
    else:
        return Response({'message': 'Dubai Pulse sync initiated'})

