using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SA.Domain.XFYun.XFYunEntity
{
///
/// 创建订单外呼任务配置
///
public class AI_CallTaskConfig
{
///
/// 订单外呼起始时间
///
public DateTime StartTime { get; set; } = DateTime.Parse("2021-12-01");
///
/// 仅呼叫近几天支付的订单
///
public int CallDay { get; set; } = 7;
///
/// 等待2分钟后处理
///
public int CreatCallMin { get; set; } = 1;
///
/// 设置需要重试的状态
///
public List ReCallStatus { get; set; } = new List() { 3, 4 };
///
/// //优先级别1-紧急 2-优先
///
public string Priority { get; set; } = "2";
///
/// 最小订单金额
///
public decimal MinAmount { get; set; } = 1m;
public List ReCallMins { get; set; } = new List() { 1, 5, 10, 20, 100 };
///
/// 同人检查时间,分钟
///
public int SameUserCheckTimeSpanMin { get; set; } = 1;
///
/// 呼叫忽略配置
///
public List IgnoreHitConfigs { get; set; } = new List();
///
/// 呼叫话术
///
public ProposProductConfig proposProductConfig { get; set; } = new ProposProductConfig();
///
/// 是否发短信1:发, 0:不发
///
public int Sms { get; set; } = 1;
///
/// 发短信多久后外呼,分钟
///
public int SmsExprieMinCall { get; set; } = 1;
public string Robot { get; set; } = "15603355067677285";
public string CallNo { get; set; }
public string AppId { get; set; } = "d2282f8efcc0429cafca7d59551bf445";
///
/// 允许外拨时间段
///
public string? HgrecordStime { get; set; }
///
/// 允许外拨时间段
///
public string? HgrecordEtime { get; set; }
///
/// 白名单
///
public List WhiteList { get; set; } = new List();
///
/// 忽略产品类型
///
public List IgnoreProductType { get; set; } = new List() { 4 };
}
public class HitConfig
{
///
/// key
///
public string? HitKey { get; set; } = "Channel";
///
/// 包含
///
public List? Contain { get; set; } = new List() { "1000|2000" };
///
/// 不包含
///
public List? NoContain { get; set; } = new List() { "1000|2000" };
}
///
/// Channel 为范围,|连接,左右包含,如1000|2000
///
public enum HitKey
{ Channel, Subproductid, Resid }
///
/// 渠道范围
///
public class ChannelItem
{
public int Min { get; set; }
public int Max { get; set; }
}
///
/// 话术模板配置
///
public class ProposProductConfig
{
///
/// 单个订单配置
///
public string OneTemplate { get; set; } = "请问您购买的产品是@Subproductname,购买期限是【#OpenDays】天@GiftExp,您本次支付的订单金额是【#Arrivalpay】元,对吗?";
///
/// 多个订单配置
///
public string MultipleTemplate { get; set; } = "请问您购买的产品是@Subproductname,其中@PayExp,您本次支付的订单金额是【#Arrivalpay】元,对吗?";
///
/// 产品名称配置
///
public string Subproductname { get; set; } = "【#Subproductname】";
///
/// 支付信息配置
///
public string PayExp { get; set; } = "@Subproductname购买期限是【#OpenDays】天@GiftExp";
///
/// 支付信息配置
///
public string MultiplePayExp { get; set; } = "@Subproductname,订单金额是@Subproductmoney,购买期限是【#OpenDays】天,@GiftExp";
///
/// 过期时间配置
///
public string GiftExp { get; set; } = ",赠送期限是【#OpenDays】天,";
///
/// 过期时间配置
///
public string MultipleGiftExp { get; set; } = ",赠送期限是【#GiftDays】天,合计使用期限是【#OpenDays】天,@Giftproductname";
}
}