text: import { lambdaResp, lambdaRespErr } from '@shared/utils/utils';
  import { list } from '@/lib/listChats';
  import env from '@root/ms.env';
  
  const getParameters = ({ evt }) => ({
    userEmail: decodeURIComponent(evt.pathParameters.userEmail),
  });
  
  export const run = async event => {
    try {
      const parameters = getParameters({ evt: event });
  
      const data = await list(parameters);
  
      return lambdaResp(env.STATUS_SUCCESS, data);
    } catch (err) {
      return lambdaRespErr(err);
    }
  };
  
  export default { run };
  