"""
公用配置文件
"""

import os
import datetime
import logging

# 日志配置
LOGGER = logging.getLogger('info')

# 配置信息
CONFIG_TEST = 'test'
CONFIG_CN = 'cn'
CONFIG_US = 'us'
CONFIG_EUR = 'eur'

# 配置模式和根路径
SERVER_TYPE = os.environ.get('DJANGO_SETTINGS_MODULE')
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# 序列号redis列表
USED_SERIAL_REDIS_LIST = 'used_serial_redis_list'
UNUSED_SERIAL_REDIS_LIST = 'unused_serial_redis_list'
RESET_REGION_ID_SERIAL_REDIS_LIST = 'reset_region_id_serial_redis_list'

# 地区id列表
REGION_ID_LIST = [1, 2, 3, 4, 5, 6]

# tb_country表id
# 中东西亚国家id列表
# 格鲁吉亚,阿塞拜疆,沙特阿拉伯,阿拉伯联合酋长国,土耳其
ME_COUNTRY_ID_LIST = [31, 32, 36, 39, 48]
# 东亚国家id列表,id: 2~16
# 朝鲜,韩国,蒙古,日本,越南,老挝,柬埔寨,缅甸,泰国,马来西亚,文莱,新加坡,印度尼西亚,东帝汶,菲律宾
EA_COUNTRY_ID_LIST = [i for i in range(2, 17)]

# 支付类型
PAY_TYPE_PAYPAL = 1
PAY_TYPE_ALIPAY = 2
PAY_TYPE_WECHAT = 3
PAY_TYPE_APPLE = 4
PAY_TYPE_IN_APP_PURCHASE = 5
PAY_TYPE_EXPERIENCE = 10
PAY_TYPE_CDK = 11

# 域名
SERIAL_DOMAIN_NAME = 'serial.zositechc.cn:7880'

# 华为云配置
HUAWEICLOUD_AK = 'TN9T7ZPN3QRBBQ9NQHNB'
HUAWEICLOUD_SK = 'rIlTBJ85MUC1WNLyJBZM2077HTsQ0qJaJf4IpTjU'
HUAWEICLOUD_OBS_SERVER = 'https://obs.cn-east-3.myhuaweicloud.com'
HUAWEICLOUD_PUSH_BUKET = 'asj-push'
HUAWEICLOUD_BAIDU_BIG_MODEL_LICENSE_BUKET = 'baidu-big-model-license'

# 阿里云AccessKey和AccessKeySecret
ALI_ACCESS_KEY_ID = 'LTAI5t9BXQWTPfBEh2Qu8YNA'
ALI_ACCESS_KEY_SECRET = '8TcEjHkHGsJaknbHlHzZP4HXQ7GuvT'

# 亚马逊的数据库DynamoDB的密钥
AWS_DynamoDB_REGION = 'us-west-1'
AWS_DynamoDB_ACCESS_KEY = 'AKIA2E67UIMD6X23FEBG'
AWS_DynamoDB_SECRET_KEY = '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'

# 阿里云发邮箱
ALY_SES_ACCESS_NAME = 'message@dvema.com'
ALY_SES_ACCESS_PAW = 'SMtp123456'
ALY_SES_ACCESS_REPLYTO = '***'

# 发送邮件邮箱
SES_COMPANY_EMAIL = 'user_server@nsst.com'
AWS_SES_ACCESS_ID = 'AKIAJKPU23EU5QWHFPKQ'
AWS_SES_ACCESS_SECRET = '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'
AWS_SES_ACCESS_REGION = 'us-east-1'
AWS_SES_ACCESS_REGION_WEST = 'us-west-1'

AWS_BUCKET = 'ansjertest'
# 设定离线时间为5分钟
OFF_LINE_TIME_DELTA = 5

# token的secret
OAUTH_ACCESS_TOKEN_SECRET = 'a+jbgnw%@1%zy^=@dn62%'
OAUTH_REFRESH_TOKEN_SECRET = 'r+jbgnw%@1%zy^=@dn62%'

# access_token超时
OAUTH_ACCESS_TOKEN_TIME = datetime.timedelta(days=60)
# refresh_token超时
OAUTH_REFRESH_TOKEN_TIME = datetime.timedelta(days=60)
# 腾讯验证,短信发送
TX_PHONE_APP_ID = '1400052907'
TX_PHONE_APP_KEY = '7705976ca6e85fe7b86d6bc2d11f7783'

# 验证码超时时间
AuthCode_Expire = 600

RTMP_PUSH_URL = 'http://13.56.215.252:8091/hls'

ADDR_URL = []
# uid token key
UID_TOKEN_KEY = 'c+565*j@%^'

UNICODE_ASCII_CHARACTER_SET = ('abcdefghijklmnopqrstuvwxyz'
                               'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                               '0123456789')

# oss param
OSS_STS_ACCESS_KEY = 'LTAIyMkGfEdogyL9'
OSS_STS_ACCESS_SECRET = '71uIjpsqVOmF7DAITRyRuc259jHOjO'
OSS_ROLE_ARN = 'acs:ram::1901342792446414:role/stsoss'

# aws api key
AWS_ACCESS_KEY_ID = ['AKIA2MMWBR4DSFG67DTG', 'AKIA2E67UIMD45Y3HL53']  # 0国内， 1国外
AWS_SECRET_ACCESS_KEY = ['aI9gxcAKPmiGgPy9axrtFKzjYGbvpuytEX4xWweL', 'ckYLg4Lo9ZXJIcJEAKkzf2rWvs8Xth1FCjqiAqUw']
AWS_ARN = ['arn:aws-cn:s3', 'arn:aws:s3']

# 尚云服务器CRCKey
CRCKey = {'AUS': 'CRCKey', 'ACN': 'CRCKey', 'AEU': 'CRCKey'}  # {平台名：CRCKey值}

# 各个服务器域名
ALEXA_DOMAIN = 'https://www.zositech.xyz/'
SERVER_DOMAIN_US = 'http://www.dvema.com/'
SERVER_DOMAIN_CN = 'http://www.zositechc.cn/'
SERVER_DOMAIN_EUR = 'http://www.zositeche.com/'
SERVER_DOMAIN_TEST = 'http://test.zositechc.cn/'
SERVER_DOMAIN_LIST = [SERVER_DOMAIN_US, SERVER_DOMAIN_CN, SERVER_DOMAIN_EUR, SERVER_DOMAIN_TEST]

# 不同环境配置
# 本地
if SERVER_TYPE == 'Ansjer.local_config.local_settings':
    from Ansjer.local_config.config_local import *
# 美国
elif SERVER_TYPE == 'Ansjer.us_config.test_settings':
    from Ansjer.us_config.config_test import *
elif SERVER_TYPE == 'Ansjer.us_config.formal_settings':
    from Ansjer.us_config.config_formal import *
# 欧洲
elif SERVER_TYPE == 'Ansjer.eur_config.formal_settings':
    from Ansjer.eur_config.config_formal import *

# 国内
elif SERVER_TYPE == 'Ansjer.cn_config.formal_settings':
    from Ansjer.cn_config.config_formal import *
elif SERVER_TYPE == 'Ansjer.cn_config.test_settings':
    from Ansjer.cn_config.config_test import *

DEVICE_TYPE = {
    0: 'UNKOWN',
    1: 'DVR',
    2: 'NVR',
    3: 'POENVR',
    4: 'WIRELESSNVR',
    5: 'POEIPC',
    6: 'BOLTIPC',
    7: 'IPC',
    8: 'KAPIANJI',
    9: 'FISHEYE',
    10: 'C512',
    11: 'C611',
    12: 'C612',
    13: 'C199',
    14: 'C190',
    15: 'C199_PRO',
    17: 'C289',
    18: 'C308',
    10001: 'DVRPTZ'
}

APP_FREQUENT = {
    0: 'UNKOWN',
    1: '每天',
    2: '三天',
    3: '一周',
    4: '两周',
    5: '一个月',
    6: '一个月以上',

}

# Iot Core国外
AWS_IOT_SES_ACCESS_FOREIGN_ID = 'AKIA2E67UIMD62VUBV5I'
AWS_IOT_SES_ACCESS_FOREIGN_SECRET = '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'
AWS_IOT_SES_ACCESS_FOREIGN_REGION_AMERICA = 'us-east-1'
AWS_IOT_SES_ACCESS_FOREIGN_REGION_ASIA = 'ap-southeast-1'
AWS_IOT_SES_ACCESS_FOREIGN_REGION_EUROPE = 'eu-west-1'
AWS_IOT_SES_ACCESS_FOREIGN_ROLE = 'arn:aws:iam::697864307463:role/Ansjer_Iot_Admin'

# Iot 获取上传S3日志 key国外
AWS_IOT_GETS3_PULL_FOREIGN_ID = 'AKIA2E67UIMDZSLTUD22'
AWS_IOT_GETS3_PULL_FOREIGN_SECRET = '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'

# Iot 获取上传S3日志 key国内
AWS_IOT_GETS3_PULL_CHINA_ID = 'AKIA2MMWBR4D3F4IEZE5'
AWS_IOT_GETS3_PULL_CHINA_SECRET = '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'

# Iot Core国内
AWS_IOT_SES_ACCESS_CHINA_ID = 'AKIA2MMWBR4DUUYPCFNJ'
AWS_IOT_SES_ACCESS_CHINA_SECRET = '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'
AWS_IOT_SES_ACCESS_CHINA_REGION = 'cn-northwest-1'
# IAM角色: https://console.amazonaws.cn/iamv2/home#/roles/details/Ansjer_Iot_Admin?section=permissions
AWS_IOT_SES_ACCESS_CHINA_ROLE = 'arn:aws-cn:iam::713816116999:role/service-role/Ansjer_Iot_Admin'

IOT_HOST = {
    1: 'a250bbr0p9u7as-ats.iot.cn-northwest-1.amazonaws.com.cn',
    2: 'a2rqy12o004ad8-ats.iot.ap-southeast-1.amazonaws.com',
    3: 'a2rqy12o004ad8-ats.iot.eu-west-1.amazonaws.com',
    4: 'a2rqy12o004ad8-ats.iot.us-east-1.amazonaws.com'
}
ONLINE_DEVICE = 1000000

SALES = {
    2020: [
        {
            'name': 'United States',
            'value': [3768901, 23.337, '美国']
        },
        {
            'name': 'Japan',
            'value': [1886988, 9.027, '日本']
        },
        {
            'name': 'Russia',
            'value': [1940038, 7.923, '俄国']
        },
        {
            'name': 'Germany',
            'value': [1319651, 6.253, '德国']
        },
        {
            'name': 'France',
            'value': [1291157, 5.825, '法国']
        },
        {
            'name': 'United Kingdom',
            'value': [1041917, 4.567, '英国']
        },
        {
            'name': 'Italy',
            'value': [859811, 3.875, '意大利']
        }
    ],
    2019: [
        {
            'name': 'United States',
            'value': [2768900, 37.374, '美国']
        },
        {
            'name': 'Japan',
            'value': [1086988, 14.672, '日本']
        },
        {
            'name': 'Russia',
            'value': [940038, 12.689, '俄国']
        },
        {
            'name': 'Germany',
            'value': [919651, 12.413, '德国']
        },
        {
            'name': 'France',
            'value': [691157, 9.329, '法国']
        },
        {
            'name': 'United Kingdom',
            'value': [541917, 7.315, '英国']
        },
        {
            'name': 'Italy',
            'value': [459811, 6.206, '意大利']
        }
    ],
    2018: [
        {
            'name': 'United States',
            'value': [2068912, 32.329, '美国']
        },
        {
            'name': 'Japan',
            'value': [1007988, 15.751, '日本']
        },
        {
            'name': 'Germany',
            'value': [909653, 14.214, '德国']
        },
        {
            'name': 'Russia',
            'value': [900038, 14.064, '俄国']
        },

        {
            'name': 'France',
            'value': [601158, 9.394, '法国']
        },
        {
            'name': 'United Kingdom',
            'value': [501920, 7.843, '英国']
        },
        {
            'name': 'Italy',
            'value': [409813, 6.404, '意大利']
        }
    ],
    2017: [
        {
            'name': 'United States',
            'value': [1668900, 30.914, '美国']
        },
        {
            'name': 'Japan',
            'value': [906988, 16.800, '日本']
        },
        {
            'name': 'Germany',
            'value': [809651, 14.998, '德国']
        },
        {
            'name': 'Russia',
            'value': [800038, 14.820, '俄国']
        },
        {
            'name': 'France',
            'value': [501157, 9.283, '法国']
        },
        {
            'name': 'United Kingdom',
            'value': [401920, 7.445, '英国']
        },
        {
            'name': 'Italy',
            'value': [309822, 5.739, '意大利']
        }
    ],
    2016: [
        {
            'name': 'United States',
            'value': [1468900, 31.943, '美国']
        },
        {
            'name': 'Japan',
            'value': [806988, 17.549, '日本']
        },
        {
            'name': 'Germany',
            'value': [709651, 15.432, '德国']
        },
        {
            'name': 'Russia',
            'value': [700038, 15.223, '俄国']
        },

        {
            'name': 'France',
            'value': [401157, 8.724, '法国']
        },
        {
            'name': 'United Kingdom',
            'value': [301917, 6.566, '英国']
        },
        {
            'name': 'Italy',
            'value': [209811, 4.562, '意大利']
        }
    ]

}

# type =2
JPUSH_CONFIG = {
    'com.ansjer.accloud_ab': {
        'Key': 'f0dc047e5e53fd14199de5b0',
        'Secret': 'aa7f7db33e9f0a7f3871aa1c'},
    'com.ansjer.adcloud_ab': {
        'Key': '76d97b535185114985608234',
        'Secret': 'c9a92b301043cc9c52778692'},
    'com.ansjer.zccloud_ab': {
        'Key': 'd9924f56d3cc7c6017965130',
        'Secret': '869d832d126a232f158b5987'},
    'com.ansjer.loocamccloud_ab': {
        'Key': 'd1cc44797b4642b0e05304fe',
        'Secret': 'c3e8b4ca8c576de61401e56a'},
    'com.ansjer.loocamdcloud_ab': {
        'Key': '76d97b535185114985608234',
        'Secret': 'c9a92b301043cc9c52778692'},
    'com.ansjer.zccloud_a': {
        'Key': '57de2a80d68bf270fd6bdf5a',
        'Secret': '3d354eb6a0b49c2610decf42'},
    'com.ansjer.accloud_a': {
        'Key': 'ff95ee685f49c0dc4013347b',
        'Secret': 'de2c20959f5516fdeeafe78e'},
    'com.ansjer.adcloud_a': {
        'Key': '2e47eb1aee9b164460df3668',
        'Secret': 'b9137d8d684bc248f1809b6d'},
    'com.ansjer.loocamccloud_a': {
        'Key': '23c9213215c7ca0ec945629b',
        'Secret': '81e4b1e859cc8387e2e6c431'},
    'com.ansjer.loocamdcloud_a': {
        'Key': '1dbdd60a16e9892d6f68a073',
        'Secret': '80a97690e7e043109059b403'},
    'com.ansjer.customizedb_a': {
        'Key': '9d79630aa49adfa291fe2568',
        'Secret': '4d8ff52f88136561875a0212'},
    'com.ansjer.customizedd_a': {
        'Key': '8fc4f495685bde53341ee25d',
        'Secret': 'f1da11fa466509fa2670fb66'},
    'com.ansjer.customizeda_a': {
        'Key': 'aad8a02b1c4e82b0ef49c559',
        'Secret': '8798cc7cd63225f13660421a'},
    'com.ansjer.customizedc_a': {
        'Key': 'ecdde95cd272f410ee029139',
        'Secret': '9ddca1e92bfa331126fd8826'},
    'com.ansjer.customizedf_a': {
        'Key': '6ddbfb8fd7a0984dfba74a00',
        'Secret': '971ee5c5facfbe76cb31a686'},
}
# type =1
FCM_CONFIG = {
    'com.ansjer.zccloud_a': 'AAAAb9YP3rk:APA91bHu8u-CTpcd0g6lKPo0WNVqCi8jZub1cPPbSAY9AucT1HxlF65ZDUko9iG8q2ch17bwu9YWHpK1xI1gHSRXCslLvZlXEmHZC0AG3JKg15XuUvlFKACIajUFV-pOeGRT8tM6-31I',
    'com.ansjer.loocamccloud_a': 'AAAAb9YP3rk:APA91bFCgd-kbVmpK4EVpfdHH_PJZQCYTkOGnTZdIuBWEz2r7aMRsJYHOH3sB-rwcbaRWgnufTyjX9nGQxb6KxQbWVk4ah_H-M3IqGh6Mb60WQQAuR33V6g_Jes5pGL6ViuIxGHqVMaR',
    'com.ansjer.loocamdcloud_a': 'AAAAb9YP3rk:APA91bGw2I2KMD4i-5T7nZO_wB8kuAOuqgyqe5rxmY-W5qkpYEx9IL2IfmC_qf6B_xOyjIDDSjckvMo-RauN__SEoxvAkis7042GRkoKpw7cjZ_H8lC-d50PC0GclPzccrOGFusyKbFY',
    'com.ansjer.customizedb_a': 'AAAAb9YP3rk:APA91bE7kI4vcm-9h_CJNFlOZfc-xwP4Btn6AnjOrwoKV6fgYN7fdarkO76sYxVZiAbDnxsFfOJyP7vQfwyan6mdjuyD5iHdt_XgO22VqniC0vA1V4GJiCS8Tp7LxIX8JVKZl9I_Powt',
    'com.ansjer.customizeda_a': 'AAAAb9YP3rk:APA91bF0HzizVWDc6dKzobY9fsaKDK4veqkOZehDXshVXs8pEEvNWjR_YWbhP60wsRYCHCal8fWN5cECVOWNMMzDsfU88Ty2AUl8S5FtZsmeDTkoGntQOswBr8Ln7Fm_LAp1VqTf9CpM',
    'com.ansjer.customizedd_a': 'AAAAb9YP3rk:APA91bHkxOozJWBrlv3eNT0PgwosYENI9aM4Zuzd418cX-iKkpa1zFNC5MkNDKApx1KH4fhmAfaJ6IMRZ0nj5GIxCpstDYCaZWwgC7-etqfSxG5JAq8LOwJx0o_1tUZqwjIic8ztsg0o',
    'com.ansjer.adcloud_a': 'AAAAb9YP3rk:APA91bFm06w8b9OKQ0gz0iaWFuRqRIkvgAz6z7Gp3dBU_X-LNGJQd1hc1QR2W7QzBglF8SHtERA45a2lbdLRa5qv7hxfd6W_sJLBK7dA8jklsOQBvy505oUzTwMKWy4TwH-exps9KrhO',
    'com.ansjer.accloud_a': 'AAAAb9YP3rk:APA91bFm06w8b9OKQ0gz0iaWFuRqRIkvgAz6z7Gp3dBU_X-LNGJQd1hc1QR2W7QzBglF8SHtERA45a2lbdLRa5qv7hxfd6W_sJLBK7dA8jklsOQBvy505oUzTwMKWy4TwH-exps9KrhO',
    'com.ansjer.zccloud_ab': 'AAAAb9YP3rk:APA91bHu8u-CTpcd0g6lKPo0WNVqCi8jZub1cPPbSAY9AucT1HxlF65ZDUko9iG8q2ch17bwu9YWHpK1xI1gHSRXCslLvZlXEmHZC0AG3JKg15XuUvlFKACIajUFV-pOeGRT8tM6-31I',
    'com.ansjer.customizedc_a': 'AAAAb9YP3rk:APA91bHu8u-CTpcd0g6lKPo0WNVqCi8jZub1cPPbSAY9AucT1HxlF65ZDUko9iG8q2ch17bwu9YWHpK1xI1gHSRXCslLvZlXEmHZC0AG3JKg15XuUvlFKACIajUFV-pOeGRT8tM6-31I',
    'com.ansjer.customizedf_a': 'AAAAb9YP3rk:APA91bFm06w8b9OKQ0gz0iaWFuRqRIkvgAz6z7Gp3dBU_X-LNGJQd1hc1QR2W7QzBglF8SHtERA45a2lbdLRa5qv7hxfd6W_sJLBK7dA8jklsOQBvy505oUzTwMKWy4TwH-exps9KrhO',
}
APNS_CONFIG = {
    'com.ansjer.loocamccloud': {
        'pem_path': 'AnsjerPush/file/apns_pem/lcc-dev.pem',
    },
    'com.ansjer.zosidcloud': {
        'pem_path': 'AnsjerPush/file/apns_pem/zosidcloud-dev.pem',
    },
    'com.ansjer.customizedb': {
        'pem_path': 'AnsjerPush/file/apns_pem/customizedb-dev.pem',
    },
    'com.ansjer.customizeda': {
        'pem_path': 'AnsjerPush/file/apns_pem/customizeda-dev.pem',
    },
    'com.ansjer.zccloud': {
        'pem_path': 'Ansjer/file/apns_pem/zccloud-dev.pem',
    },
    'com.ansjer.accloud': {
        'pem_path': 'AnsjerPush/file/apns_pem/accloud-dev.pem',
    },
    'com.ansjer.customizedc': {
        'pem_path': 'AnsjerPush/file/apns_pem/customizedc.pem',
    },
    'com.ansjer.customizede': {
        'pem_path': 'AnsjerPush/file/apns_pem/customizede.pem',
    },
    'com.ansjer.customizedh': {
        'pem_path': 'AnsjerPush/file/apns_pem/customizedh.pem',
    },
}
APNS_MODE = 'dev'

JPUSH_CODE = {
    -1: '只库存不推送',
    200: '推送成功',
    400: '错误请求',
    401: '没有验证信息或者验证失败',
    403: '请求被拒绝',
    404: '资源不存在，请求的用户的不存在，请求的格式不被支持',
    405: '请求方法不合适',
    410: '请求的资源已下线',
    429: '请求超出了频率限制',
    500: '极光内部服务错误',
    502: '业务服务器下线了或者正在升级。请稍后重试',
    503: '服务暂时失效',
    504: '代理超时'
}
APNS_CODE = {
    -1: '只库存不推送',
    200: '推送成功',
    400: '请求有问题',
    403: '证书或Token有问题',
    405: '请求方式不正确, 只支持POST请求',
    410: '设备的Token与证书不一致'
}
APP_TYPE = {
    1: 'ios',
    2: 'android'
}

ALGORITHM_COMBO_TYPES = [51, 57, 58, 60, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70]
# 双目设备类型
BINOCULAR_DEVICE_TYPE = [34, 37, 43, 50, 53, 54]

# 联通Unicom config
# 应用地址，请向开发人员索取
unicomAppUrl = 'https://iot-cop.unimip.cn'
# 应用id，请向开发人员创建应用，分配appId
unicomAppId = 'gyAkIBgnqlUrTNJfvcj7vA0XRIOFyh3U'
# 应用密匙，请向开发人员创建应用，分配appSecret
unicomAppSecret = 'D6u6ROqceuCaYujMjBSIXDHXRZQGtaS3'
# 租户/产品ID，请向开发人员索取
unicomTenantId = '1469181295663300608'
# 密码加密密匙，请向开发人员索取
unicomEncodeKey = 'uBdUx82vPHkDKb284d7NkjFoNcKWBuka'
# 密码加密参数，请向开发人员索取
unicomIvKey = 'oCRU0D1wKfBlNeTz'
# 用户名，如无请联系客户经理开通
unicomUserName = 'zhasj_admin'
# 登录密码，如无请联系客户经理
unicomPassword = 'Ansjer2023..'
# 回调签名验证加密密匙，请向开发人员索取
unicomPushKey = 'N5SGE4LVOR2GG'
# token key
UNICOM_KEY = 'ASJ:UNICOM:API:TOKEN'

# 五兴域名
WX_TECH_URL = 'http://www.wxkjwlw.com'
# 五兴接口APP KEY
WX_TECH_APP_KEY = 'PHNSIzLG9Ciyla3aiOuBuN17U0qk5mM4'
# 五兴接口密钥
TWX_TECH_SECRET = '9477ace7e28f4d3fabae63a786d53d81'

# 鼎芯科技baseUrl
DX_TECH_URL = 'https://oapi.eiotclub.com'
# 鼎芯接口appKey
DX_TECH_APP_KEY = '19b92a9a5e56429e97f271855ce731b2'
# 鼎芯接口secret
DX_TECH_SECRET = '6627548e7cfe4044add7ea72ae3391e0'

# 中国电信
CT_USER_ID = 'C8EQeMCNNroW0J5jTc3r0NVHU6Ii2NpU'
CT_PASSWORD = 'Pngt1r1S1cRouEyw'
CT_SECRET_KEY = 'i7CYm8s2T'

# amazon电子邮件
SES_SENDER = 'rdpublic@ansjer.com'  # 邮箱名
SES_SENDERNAME = 'rdpublic@ansjer.com'
SES_USERNAME_SMTP = 'AKIA2E67UIMD6MOSFKXW'  # 带有邮件权限的 IAM 帐号
SES_PASSWORD_SMTP = 'BHuQ6EQTtFK4qh46o9omO9ZzO3NXzjk/JCWLXnVFmqzM'  # 带有邮件权限的 IAM 密码
SES_PORT = '587'
SES_HOST = 'email-smtp.us-east-1.amazonaws.com'

APP_MAPPING = {
    'com.ansjer.accloud': 'ACCloud',  # IOS
    'com.ansjer.accloud_a': 'ACCloud',  # Android

    'com.ansjer.adcloud': 'ADCloud',  # IOS
    'com.ansjer.adcloud_a': 'ADCloud',  # Android

    'com.ansjer.zccloud': 'ZosiSmart',  # IOS
    'com.ansjer.zccloud_a': 'ZosiSmart',  # Android

    'com.ansjer.loocamccloud': 'Loocam',  # IOS
    'com.ansjer.loocamccloud_a': 'Loocam',  # Android

    'com.ansjer.zosidcloud': 'Anlapus',  # IOS
    'com.ansjer.zosidcloud_a': 'Anlapus',  # Android

    'com.ansjer.customizeda': 'Guardian_365',  # IOS
    'com.ansjer.customizeda_a': 'Guardian_365',  # Android

    'com.ansjer.customizedb': 'COCOON_HD',  # IOS
    'com.ansjer.customizedb_a': 'COCOON_HD',  # Android

    'com.ansjer.customizede': 'ZOSI',  # IOS “周视”
    'com.ansjer.zccloud_ab': 'ZOSI',  # Android “周视”

    'com.ansjer.customizedd': 'DVS_Mobile',  # IOS
    'com.ansjer.customizedd_a': 'DVS_Mobile',  # Android

    'com.ansjer.loocamhome': 'Loocam_Home',  # IOS
    'com.ansjer.loocamhome_a': 'Loocam_Home',  # Android

    'com.ansjer.customizedc': 'PatrolSecure',  # IOS
    'com.ansjer.customizedc_a': 'PatrolSecure',  # Android

    'com.cloudlife.commissionf': 'VSees',  # IOS
    'com.cloudlife.commissionf_a': 'VSees',  # Android

    'com.ansjer.zosilink': 'ZosiLink',  # IOS
    'com.ansjer.zosilink_a': 'ZosiLink',  # Android

    'com.livecamera.cooperationh_a': 'PTC',  # Android

    'WinUser': 'WinUser',  # windows
    'MacUser': 'MacUser'   # mac

}

# 苹果内购配置
IN_APP_CONFIG = {
    # Zosi Smart 配置
    'com.ansjer.zccloud': {
        'key_id': 'N42WMFCV6A',
        'issuer_id': '69a6de8c-789b-47e3-e053-5b8c7c11a4d1',
        'cert_names': [
            'AppleIncRootCertificate.cer',
            'AppleComputerRootCertificate.cer',
            'AppleRootCA-G2.cer',
            'AppleRootCA-G3.cer'
        ],
        "key_filename": "SubscriptionKey_N42WMFCV6A.p8",
        "app_apple_id": 1355964934
    },
    # Vsees 配置
    'com.cloudlife.commissionf': {
        'key_id': '9MKMX3X7M5',
        'issuer_id': '56c4157a-b0ab-4f7a-b7b1-09b836e05140',
        'cert_names': [
            'AppleIncRootCertificate.cer',
            'AppleComputerRootCertificate.cer',
            'AppleRootCA-G2.cer',
            'AppleRootCA-G3.cer'
        ],
        "key_filename": "SubscriptionKey_9MKMX3X7M5.p8",
        "app_apple_id": 6446870524
    },
}

SHOPIFY_CONFIG = {
    # eu店铺
    "eu_store_name": "0ef557-2",
    "eu_token": "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",
    "eu_multipass_secret": "f4863c9979d7ddd16e23817c0dfe7863",
    # us店铺
    "us_store_name": "zositech",
    "us_token": "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",
    "us_multipass_secret": "fbecba0fa968d871dcbec4aa791b9d61",
    # de店铺
    "de_store_name": "zositech-de",
    "de_token": "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",
    "de_multipass_secret": "7700aaab089cfc37d0f87f28bf1ea935",
    # uk店铺
    "uk_store_name": "6658bf",
    "uk_token": "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",
    "uk_multipass_secret": "32342c20ab0b44f8cef34e6b6f7884cc",
    # jp店铺
    "jp_store_name": "3b9ec5-0d",
    "jp_token": "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",
    "jp_multipass_secret": "3ff559255f5e9fcf783860d274406c82",
}