const e="ChatTemplate",a="chttemplates",t=[{field:"templateId",headerName:"Template ID",width:130},{field:"templateMensaje",headerName:"Mensaje",width:300},{field:"fechaAlta",headerName:"Fecha Alta",width:130},{field:"contentId",headerName:"Content ID",width:130},{field:"imagenUrl",headerName:"URL Imagen",width:200},{field:"templateGroup",headerName:"Grupo",width:130},{field:"ProcNom",headerName:"Proceso ",width:100},{field:"templateDetalle",headerName:"Detalle",width:200},{field:"EmpNombre",headerName:"Empresa ID",width:100}],d=[{field:"templateId",headerName:"Template ID",width:130,required:!0},{field:"fechaAlta",headerName:"Fecha Alta",width:130,type:"date",hidden:!1},{field:"templateMensaje",headerName:"Mensaje",width:300,required:!0},{field:"procId",headerName:"Proceso ID",width:100,type:"supercombo",required:!0,supercombo:{dominio:"",tabla:"wfproc",campoId:"ProcId",campoDisplay:"ProcNom",condicion:"",condicionAdicional:"",otrosCampos:"",groupBy:"",orderBy:"ProcNom",queryInc:"",limit:"100"}}],m="templateId",r={list:"/api/list",create:"/api/create",update:"/api/update",delete:"/api/delete"},o={showPrimaryKeyInCreate:!0,showPrimaryKeyInUpdate:!0,enableSearch:!0,useEmpId:!0,searchPlaceholder:"Buscar por mensaje",searchDebounceMs:500,autocompletes:[{label:"Estado",parameterToUpdate:"estadoFilter",tabla:"dmn",valueField:"DmnAbr",labelField:"DmnDet",condicion:"DmnFilt = 'ESTUSR'",query:"estado = ${value}",recargaAlAbrir:!0,type:"supercombobox"}]},l={tabla:"chttemplates AS cht LEFT JOIN wfproc AS wf ON cht.procId = wf.ProcId LEFT JOIN dmn AS dmn ON (cht.templategroup = dmn.dmnabr AND dmn.dmnfilt = 'tgroup') LEFT JOIN emp AS emp ON cht.empId = emp.EmpId",campoId:"templateId",campoDisplay:"templateMensaje",condicion:"cht.empId = ${empId}",otrosCampos:"cht.*, wf.ProcNom, dmn.DmnDet, emp.EmpNombre ",orderBy:"",limit:"10"},i={entityName:e,tableName:a,columns:t,formFields:d,primaryKey:m,endpoints:r,options:o,tableParams:l};export{t as columns,i as default,r as endpoints,e as entityName,d as formFields,o as options,m as primaryKey,a as tableName,l as tableParams};
