// Path: src/main/java/com/membaza/api/users/service/text/TextService.java
// public interface TextService {
// 
//     Map<String, String> EMPTY = emptyMap();
// 
//     boolean has(String language);
// 
//     default String get(String key, String language) {
//         return get(key, language, EMPTY);
//     }
// 
//     String get(String key, String language, Map<String, String> args);
// 
//     default String format(String text, String language) {
//         return format(text, language, EMPTY);
//     }
// 
//     String format(String text, String language, Map<String, String> args);
// 
// }


import com.membaza.api.users.service.text.TextService;
import lombok.Data;
import org.springframework.core.env.Environment;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.support.BasicAuthorizationInterceptor;
import org.springframework.http.converter.FormHttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.stereotype.Service;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Map;
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import static java.util.Objects.requireNonNull;
import static java.util.stream.Collectors.joining;
package com.membaza.api.users.service.email;




/**
 * @author Emil Forslund
 * @since  1.0.0
 */
@Service
public final class EmailServiceImpl implements EmailService {

    private static final String EMAIL_FILE = "/mail/*.html";

    private final Environment env;
    private final TextService text;
    private final RestTemplate mailgun;

    EmailServiceImpl(Environment env,
// Path: src/main/java/com/membaza/api/users/service/text/TextService.java
// public interface TextService {
// 
//     Map<String, String> EMPTY = emptyMap();
// 
//     boolean has(String language);
// 
//     default String get(String key, String language) {
//         return get(key, language, EMPTY);
//     }
// 
//     String get(String key, String language, Map<String, String> args);
// 
//     default String format(String text, String language) {
//         return format(text, language, EMPTY);
//     }
// 
//     String format(String text, String language, Map<String, String> args);
// 
// }


// Path: src/main/java/com/membaza/api/users/service/email/EmailServiceImpl.java
import com.membaza.api.users.service.text.TextService;
import lombok.Data;
import org.springframework.core.env.Environment;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.support.BasicAuthorizationInterceptor;
import org.springframework.http.converter.FormHttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.stereotype.Service;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Map;
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import static java.util.Objects.requireNonNull;
import static java.util.stream.Collectors.joining;

package com.membaza.api.users.service.email;




/**
 * @author Emil Forslund
 * @since  1.0.0
 */
@Service
public final class EmailServiceImpl implements EmailService {

    private static final String EMAIL_FILE = "/mail/*.html";

    private final Environment env;
    private final TextService text;
    private final RestTemplate mailgun;

    EmailServiceImpl(Environment env,
                     TextService text) {