# -*- coding: utf-8 -*-
import os
from datacloud.dev_utils.time.patterns import FMT_DATE, FMT_DATE_YM, FMT_DATE_Y

MULTIPLE_VALUES_DELIMITER = ','
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DEFAULT_PHONE_LENGTH = 11
delimiter_vars = {
    'tab': '\t',
    'space': ' ',
    ';': ';',
    'comma': ',',
}
allowed_headers = (
    'external_id',
    'phone',
    'phone_id_value',
    'email',
    'email_id_value',
    'ClientID@site',
    'IDFA',
    'GAID',
    'UUID@app_id',
    'birth_date',
    'retro_date',
    'target',
    'gender',
    'yuid'
)
id_fields = {
    'phone',
    'phone_id_value',
    'email',
    'email_id_value',
    'ClientID@site',
    'IDFA',
    'GAID',
    'UUID@app_id',
    'yuid'
}
retro_date_formats = (FMT_DATE, )
birth_date_formats = (FMT_DATE, FMT_DATE_YM, FMT_DATE_Y, )
