/** ************************************************************************************************
*   Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.                             *
*   SPDX-License-Identifier: Apache-2.0                                                            *
 ************************************************************************************************ */

exports.defaultSettingsMock = JSON.stringify({
    "ENABLE_DEBUG_RESPONSES": "false",
    "ENABLE_DEBUG_LOGGING": "false",
    "ES_USE_KEYWORD_FILTERS": "true",
    "ES_EXPAND_CONTRACTIONS": "{\"you're\":\"you are\",\"I'm\":\"I am\",\"can't\":\"cannot\"}",
    "ES_KEYWORD_SYNTAX_TYPES": "NOUN,PROPN,VERB,INTJ",
    "ES_SYNTAX_CONFIDENCE_LIMIT": ".20",
    "ES_MINIMUM_SHOULD_MATCH": "2<75%",
    "ES_NO_HITS_QUESTION": "no_hits",
    "ES_USE_FUZZY_MATCH": "false",
    "ES_PHRASE_BOOST": "4",
    "ES_SCORE_ANSWER_FIELD": "false",
    "ENABLE_SENTIMENT_SUPPORT": "true",
    "ENABLE_MULTI_LANGUAGE_SUPPORT": "false",
    "ENABLE_CUSTOM_TERMINOLOGY": "false",
    "MINIMUM_CONFIDENCE_SCORE": 0.6,
    "ALT_SEARCH_KENDRA_FALLBACK_CONFIDENCE_SCORE": "HIGH",
    "ALT_SEARCH_KENDRA_FAQ_CONFIDENCE_SCORE": "HIGH",
    "ALT_SEARCH_KENDRA_INDEXES": "",
    "ALT_SEARCH_KENDRA_S3_SIGNED_URLS": "true",
    "ALT_SEARCH_KENDRA_S3_SIGNED_URL_EXPIRE_SECS": 300,
    "ALT_SEARCH_KENDRA_MAX_DOCUMENT_COUNT": 2,
    "ALT_SEARCH_KENDRA_TOP_ANSWER_MESSAGE": "Amazon Kendra suggested answer.",
    "ALT_SEARCH_KENDRA_FAQ_MESSAGE": "Answer from Amazon Kendra FAQ.",
    "ALT_SEARCH_KENDRA_ANSWER_MESSAGE": "While I did not find an exact answer, these search results from Amazon Kendra might be helpful.",
    "ALT_SEARCH_KENDRA_RESPONSE_TYPES": "ANSWER,DOCUMENT,QUESTION_ANSWER",
    "ALT_SEARCH_KENDRA_ABBREVIATE_MESSAGE_FOR_SSML": "true",
    "KENDRA_FAQ_INDEX": "",
    "KENDRA_FAQ_CONFIG_MAX_RETRIES": 8,
    "KENDRA_FAQ_CONFIG_RETRY_DELAY": 600,
    "KENDRA_FAQ_ES_FALLBACK": "true",
    "ENABLE_KENDRA_WEB_INDEXER": "false",
    "KENDRA_INDEXER_URLS": "",
    "KENDRA_INDEXER_CRAWL_DEPTH": 3,
    "KENDRA_INDEXER_CRAWL_MODE": "SUBDOMAINS",
    "KENDRA_INDEXER_SCHEDULE": "rate(1 day)",
    "KENDRA_WEB_PAGE_INDEX": "",
    "KENDRA_INDEXED_DOCUMENTS_LANGUAGES": "en",
    "ERRORMESSAGE": "Unfortunately I encountered an error when searching for your answer. Please ask me again later.",
    "EMPTYMESSAGE": "You stumped me! Sadly I do not know how to answer your question.",
    "DEFAULT_ALEXA_LAUNCH_MESSAGE": "Hello, Please ask a question",
    "DEFAULT_ALEXA_REPROMPT": "Please either answer the question, ask another question or say Goodbye to end the conversation.",
    "DEFAULT_ALEXA_STOP_MESSAGE": "Goodbye",
    "SMS_HINT_REMINDER_ENABLE": "true",
    "SMS_HINT_REMINDER": " (Feedback? Reply THUMBS UP or THUMBS DOWN. Ask HELP ME at any time)",
    "SMS_HINT_REMINDER_INTERVAL_HRS": 24,
    "IDENTITY_PROVIDER_JWKS_URLS": [],
    "ENFORCE_VERIFIED_IDENTITY": "false",
    "NO_VERIFIED_IDENTITY_QUESTION": "no_verified_identity",
    "ELICIT_RESPONSE_MAX_RETRIES": 3,
    "ELICIT_RESPONSE_RETRY_MESSAGE": "Please try again.",
    "ELICIT_RESPONSE_BOT_FAILURE_MESSAGE": "Your response was not understood. Please start again.",
    "ELICIT_RESPONSE_DEFAULT_MSG": "Ok. ",
    "CONNECT_IGNORE_WORDS": "",
    "CONNECT_ENABLE_VOICE_RESPONSE_INTERRUPT": "false",
    "CONNECT_NEXT_PROMPT_VARNAME": "connect_nextPrompt",
    "ENABLE_REDACTING": "false",
    "REDACTING_REGEX": "\\b\\d{4}\\b(?![-])|\\b\\d{9}\\b|\\b\\d{3}-\\d{2}-\\d{4}\\b",
    "ENABLE_REDACTING_WITH_COMPREHEND": "false",
    "COMPREHEND_REDACTING_CONFIDENCE_SCORE": "0.99",
    "COMPREHEND_REDACTING_ENTITY_TYPES": "ADDRESS,EMAIL,SSN,PHONE,PASSWORD,BANK_ACCOUNT_NUMBER,BANK_ROUTING,CREDIT_DEBIT_NUMBER",
    "PII_REJECTION_ENABLED": false,
    "PII_REJECTION_QUESTION": "pii_rejection_question",
    "PII_REJECTION_REGEX": "\\b\\d{4}\\b(?![-])|\\b\\d{9}\\b|\\b\\d{3}-\\d{2}-\\d{4}\\b",
    "PII_REJECTION_ENTITY_TYPES": "ADDRESS,EMAIL,SSN,PHONE,PASSWORD,BANK_ACCOUNT_NUMBER,BANK_ROUTING,CREDIT_DEBIT_NUMBER",
    "PII_REJECTION_CONFIDENCE_SCORE": '0.99',
    "DISABLE_CLOUDWATCH_LOGGING": "false",
    "MINIMAL_ES_LOGGING": "false",
    "S3_PUT_REQUEST_ENCRYPTION": "",
    "BOT_ROUTER_WELCOME_BACK_MSG": "Welcome back to QnABot.",
    "BOT_ROUTER_EXIT_MSGS": "exit,quit,goodbye,leave",
    "RUN_LAMBDAHOOK_FROM_QUERY_STEP": "true",
    "LAMBDA_PREPROCESS_HOOK": "",
    "LAMBDA_POSTPROCESS_HOOK": "",
    "SEARCH_REPLACE_QUESTION_SUBSTRINGS": ""
})

exports.customSettingsMock = JSON.stringify({
    "ENABLE_DEBUG_RESPONSES": "true",
    "ENABLE_DEBUG_LOGGING": "true",
    "ES_EXPAND_CONTRACTIONS": "{\"you're\":\"you are\",\"I'm\":\"I am\",\"can't\":\"cannot\", \"didn't\":\"did not\"}",
    "ES_SYNTAX_CONFIDENCE_LIMIT": .30,
    "ES_USE_FUZZY_MATCH": "true",
    "ENABLE_MULTI_LANGUAGE_SUPPORT": "true",
    "MINIMUM_CONFIDENCE_SCORE": "0.5",
    "ALT_SEARCH_KENDRA_FAQ_CONFIDENCE_SCORE": "MEDIUM",
    "ALT_SEARCH_KENDRA_ANSWER_MESSAGE": "These search results from Amazon Kendra might be helpful.",
    "KENDRA_FAQ_INDEX": "5b5fa0b2-2591-482f-8bb7-fb8103498709",
    "KENDRA_INDEXER_URLS": "https://aws.amazon.com/lex/faqs/,https://aws.amazon.com/kendra/faqs/",
    "ELICIT_RESPONSE_MAX_RETRIES": "4",
    "ELICIT_RESPONSE_BOT_FAILURE_MESSAGE": "Your response was not understood. Please try again.",
    "REDACTING_REGEX": "\\d{4}\\b(?![-])|\\b\\d{9}\\b|\\b\\d{3}-\\d{2}-\\d{4}",
    "PII_REJECTION_ENTITY_TYPES": "ADDRESS,EMAIL,SSN,PHONE,PASSWORD,BANK_ACCOUNT_NUMBER,CREDIT_DEBIT_NUMBER"
})

exports.mergedSettings = {
    ES_USE_KEYWORD_FILTERS: true,
    ES_KEYWORD_SYNTAX_TYPES: "NOUN,PROPN,VERB,INTJ",
    ES_MINIMUM_SHOULD_MATCH: "2<75%",
    ES_NO_HITS_QUESTION: "no_hits",
    ES_PHRASE_BOOST: 4,
    ES_SCORE_ANSWER_FIELD: false,
    ENABLE_SENTIMENT_SUPPORT: true,
    ENABLE_CUSTOM_TERMINOLOGY: false,
    ALT_SEARCH_KENDRA_FALLBACK_CONFIDENCE_SCORE: "HIGH",
    ALT_SEARCH_KENDRA_INDEXES: "",
    ALT_SEARCH_KENDRA_S3_SIGNED_URLS: true,
    ALT_SEARCH_KENDRA_S3_SIGNED_URL_EXPIRE_SECS: 300,
    ALT_SEARCH_KENDRA_MAX_DOCUMENT_COUNT: 2,
    ALT_SEARCH_KENDRA_TOP_ANSWER_MESSAGE: "Amazon Kendra suggested answer.",
    ALT_SEARCH_KENDRA_FAQ_MESSAGE: "Answer from Amazon Kendra FAQ.",
    ALT_SEARCH_KENDRA_RESPONSE_TYPES: "ANSWER,DOCUMENT,QUESTION_ANSWER",
    ALT_SEARCH_KENDRA_ABBREVIATE_MESSAGE_FOR_SSML: true,
    KENDRA_FAQ_CONFIG_MAX_RETRIES: 8,
    KENDRA_FAQ_CONFIG_RETRY_DELAY: 600,
    KENDRA_FAQ_ES_FALLBACK: true,
    ENABLE_KENDRA_WEB_INDEXER: false,
    KENDRA_INDEXER_CRAWL_DEPTH: 3,
    KENDRA_INDEXER_CRAWL_MODE: "SUBDOMAINS",
    KENDRA_INDEXER_SCHEDULE: "rate(1 day)",
    KENDRA_WEB_PAGE_INDEX: "",
    KENDRA_INDEXED_DOCUMENTS_LANGUAGES: "en",
    ERRORMESSAGE: "Unfortunately I encountered an error when searching for your answer. Please ask me again later.",
    EMPTYMESSAGE: "You stumped me! Sadly I do not know how to answer your question.",
    DEFAULT_ALEXA_LAUNCH_MESSAGE: "Hello, Please ask a question",
    DEFAULT_ALEXA_REPROMPT: "Please either answer the question, ask another question or say Goodbye to end the conversation.",
    DEFAULT_ALEXA_STOP_MESSAGE: "Goodbye",
    SMS_HINT_REMINDER_ENABLE: true,
    SMS_HINT_REMINDER: " (Feedback? Reply THUMBS UP or THUMBS DOWN. Ask HELP ME at any time)",
    SMS_HINT_REMINDER_INTERVAL_HRS: 24,
    IDENTITY_PROVIDER_JWKS_URLS: [],
    ENFORCE_VERIFIED_IDENTITY: false,
    NO_VERIFIED_IDENTITY_QUESTION: "no_verified_identity",
    ELICIT_RESPONSE_RETRY_MESSAGE: "Please try again.",
    ELICIT_RESPONSE_DEFAULT_MSG: "Ok. ",
    CONNECT_IGNORE_WORDS: "",
    CONNECT_ENABLE_VOICE_RESPONSE_INTERRUPT: false,
    CONNECT_NEXT_PROMPT_VARNAME: "connect_nextPrompt",
    ENABLE_REDACTING: false,
    ENABLE_REDACTING_WITH_COMPREHEND: false,
    COMPREHEND_REDACTING_CONFIDENCE_SCORE: 0.99,
    COMPREHEND_REDACTING_ENTITY_TYPES: "ADDRESS,EMAIL,SSN,PHONE,PASSWORD,BANK_ACCOUNT_NUMBER,BANK_ROUTING,CREDIT_DEBIT_NUMBER",
    PII_REJECTION_ENABLED: false,
    PII_REJECTION_QUESTION: "pii_rejection_question",
    PII_REJECTION_REGEX: "\\b\\d{4}\\b(?![-])|\\b\\d{9}\\b|\\b\\d{3}-\\d{2}-\\d{4}\\b",
    PII_REJECTION_CONFIDENCE_SCORE: 0.99,
    DISABLE_CLOUDWATCH_LOGGING: false,
    MINIMAL_ES_LOGGING: false,
    S3_PUT_REQUEST_ENCRYPTION: "",
    BOT_ROUTER_WELCOME_BACK_MSG: "Welcome back to QnABot.",
    BOT_ROUTER_EXIT_MSGS: "exit,quit,goodbye,leave",
    RUN_LAMBDAHOOK_FROM_QUERY_STEP: true,
    LAMBDA_PREPROCESS_HOOK: "",
    LAMBDA_POSTPROCESS_HOOK: "",
    SEARCH_REPLACE_QUESTION_SUBSTRINGS: "",
    ENABLE_DEBUG_RESPONSES: true,
    ENABLE_DEBUG_LOGGING: true,
    ES_EXPAND_CONTRACTIONS: "{\"you're\":\"you are\",\"I'm\":\"I am\",\"can't\":\"cannot\", \"didn't\":\"did not\"}",
    ES_SYNTAX_CONFIDENCE_LIMIT: .30,
    ES_USE_FUZZY_MATCH: true,
    ENABLE_MULTI_LANGUAGE_SUPPORT: true,
    MINIMUM_CONFIDENCE_SCORE: 0.5,
    ALT_SEARCH_KENDRA_FAQ_CONFIDENCE_SCORE: "MEDIUM",
    ALT_SEARCH_KENDRA_ANSWER_MESSAGE: "These search results from Amazon Kendra might be helpful.",
    KENDRA_FAQ_INDEX: "5b5fa0b2-2591-482f-8bb7-fb8103498709",
    KENDRA_INDEXER_URLS: "https://aws.amazon.com/lex/faqs/,https://aws.amazon.com/kendra/faqs/",
    ELICIT_RESPONSE_MAX_RETRIES: 4,
    ELICIT_RESPONSE_BOT_FAILURE_MESSAGE: "Your response was not understood. Please try again.",
    REDACTING_REGEX: "\\d{4}\\b(?![-])|\\b\\d{9}\\b|\\b\\d{3}-\\d{2}-\\d{4}",
    PII_REJECTION_ENTITY_TYPES: "ADDRESS,EMAIL,SSN,PHONE,PASSWORD,BANK_ACCOUNT_NUMBER,CREDIT_DEBIT_NUMBER"
}