using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model.CallCenterApi
{
    public class Sys_IVRConfigs:IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 坐席组编号
        /// </summary>
        public string groupcode { get; set; }
        /// <summary>
        /// ivr名称（可根据组编号自动生成）
        /// </summary>
        public string ivrname { get; set; }
        /// <summary>
        /// ivr类型（1呼入，2满意度，3自动外呼）
        /// </summary>
        public int ivrtype { get; set; }
        /// <summary>
        /// ivr内容
        /// </summary>
        public string ivrcontent { get; set; }
        /// <summary>
        /// 是否启用（呼入流程默认开启）0不启用，1启用
        /// </summary>
        public int isenable { get; set; }
        /// <summary>
        /// 提交人 usercode
        /// </summary>
        public string createby { get; set; } = "";
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime createtime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool isdelete { get; set; } = false;
        /// <summary>
        /// 删除人工号
        /// </summary>
        public string deleteby { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime deletetime { get; set; }
    }
    /// <summary>
    /// ivr类型（1呼入，2满意度，3自动外呼）
    /// </summary>
    public enum enumivrtype
    {
        /// <summary>
        /// 呼入
        /// </summary>
        callin = 1,
        /// <summary>
        /// 满意度
        /// </summary>
        myd = 2,
        /// <summary>
        /// 自动外呼
        /// </summary>
        autocall = 3
    }
    /// <summary>
    /// 是否启用（呼入流程默认开启）0不启用，1启用
    /// </summary>
    public enum enumivrenable
    {
        /// <summary>
        /// 不启用
        /// </summary>
        unenable = 0,
        /// <summary>
        /// 启用
        /// </summary>
        enable = 1
    }
}
