{
    "name": "MoodFactorLogsService",
    "connector": "rest",
    "baseURL": "",
    "crud": false,
    "options": {
        "baseUrl": "PATIENT_SERVICE_URL",
        "headers": {
            "accept": "application/json",
            "content-type": "application/json"
        }
    },
    "operations": [
        {
            "template": {
                "method": "POST",
                "url": "/mood-factor-logs",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{moodBody}"
            },
            "functions": {
                "logMoodFactors": [
                    "moodBody",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/mood-factor-logs",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "getMoodFactorsLog": [
                    "filter",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/mood-factor-logs/count",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "where": "{where}"
                }
            },
            "functions": {
                "getMoodFactorLogsCount": [
                    "where",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "POST",
                "url": "/sleep-logs",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{moodBody}"
            },
            "functions": {
                "logSleep": [
                    "moodBody",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/sleep-logs",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "getSleepLog": [
                    "filter",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/sleep-logs/count",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "where": "{where}"
                }
            },
            "functions": {
                "getSleepLogsCount": [
                    "where",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/patients/{id}/selfies",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "id": "{id}",
                    "offset": "{offset}",
                    "limit": "{limit}"
                }
            },
            "functions": {
                "getSefies": [
                    "id",
                    "token",
                    "limit",
                    "offset"
                ]
            }
        },
        {
            "template": {
                "method": "POST",
                "url": "/patients/{id}/selfies",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": "{id}",
                "body": "{imageUrl}"
            },
            "functions": {
                "addSelfi": [
                    "id",
                    "imageUrl",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "DELETE",
                "url": "/patients/{id}/selfies/{selfiId}",
                "headers": {
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "deleteSelfi": [
                    "id",
                    "selfiId",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "DELETE",
                "url": "/patients/{id}/selfies",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "id": "{id}",
                    "where": "{where}"
                }
            },
            "functions": {
                "deleteAllSelfi": [
                    "id",
                    "where",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/sentiment-analyses/sentiment",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "text": "{text}"
                }
            },
            "functions": {
                "getSentiment": [
                    "text",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/sentiment-analyses/sentiments",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "text": "{text}"
                }
            },
            "functions": {
                "getSentimentBatch": [
                    "text",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/sentiment-analyses/taxonomy",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "text": "{text}"
                }
            },
            "functions": {
                "getTaxonomy": [
                    "text",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/sentiment-analyses/taxonomies",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "text": "{text}"
                }
            },
            "functions": {
                "getTaxonomyBatch": [
                    "text",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/patients/{patientId}/follow-ups",
                "headers": {
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "getFollowups": [
                    "patientId",
                    "token",
                    "filter"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/patients/{id}/follow-ups/{followupId}",
                "headers": {
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "getFollowup": [
                    "id",
                    "followupId",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "DELETE",
                "url": "/patients/{id}/follow-ups/{followupId}",
                "headers": {
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "deleteFollowup": [
                    "id",
                    "followupId",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "PATCH",
                "url": "/patients/{id}/follow-ups/{followupId}",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{followup}"
            },
            "functions": {
                "updateFollowup": [
                    "id",
                    "followupId",
                    "followup",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "POST",
                "url": "/patients/{patientId}/follow-ups/",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{followup}"
            },
            "functions": {
                "addFollowup": [
                    "patientId",
                    "followup",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/follow-ups/",
                "headers": {
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "getFollowupAlerts": [
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/pending-tasks/",
                "headers": {
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "getPendingTasksAlerts": [
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "PATCH",
                "url": "/pending-tasks/{id}/status",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{pendingTask}"
            },
            "functions": {
                "updatePendingTasksAlerts": [
                    "id",
                    "pendingTask",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/patients/{patientId}/follow-ups/status-count",
                "headers": {
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "getPatientFollowupsCount": [
                    "patientId",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "PATCH",
                "url": "/follow-ups/{followupId}/status",
                "headers": {
                    "Authorization": "{token}"
                },
                "body": "{followupStatus}"
            },
            "functions": {
                "updatePatientFollowup": [
                    "followupId",
                    "followupStatus",
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/follow-ups/alert-count",
                "headers": {
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "getFollowupAlertCount": [
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/pending-tasks/alert-count",
                "headers": {
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "getPendingTasklAlertCount": [
                    "token"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/appoinments/alert-count",
                "headers": {
                    "Authorization": "{token}"
                }
            },
            "functions": {
                "getAppoinmentslAlertCount": [
                    "token"
                ]
            }
        }
    ]
}
