hunk.code_window:     });
       const isEditorMode = !emailChannel.template.contentType || emailChannel.template.contentType === 'editor';
       const content: string | IEmailBlock[] = this.getContent(isEditorMode, emailChannel, command, subscriber);
       const message: MessageEntity = await this.messageRepository.create({
         _notificationId: command.notificationId,
         _environmentId: command.environmentId,
         _organizationId: command.organizationId,
         _subscriberId: command.subscriberId,
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:     const integration = await this.integrationRepository.findOne({
         _environmentId: command.environmentId,
         channel: ChannelTypeEnum.EMAIL,
         active: true,
       });
  
hunk.file_path: apps/api/src/app/events/usecases/send-message/send-message-email.usecase.ts
hunk.type: add
file: describe('Shell Embed', function () {
    beforeEach(function () {
      cy.initializeSession({ shell: true }).as('session');
      cy.wait(1000);
    });
  
    it('should navigate to page on notification click', function () {
      cy.task('createNotifications', {
        identifier: this.session.templates[0].triggers[0].identifier,
        token: this.session.token,
        subscriberId: this.session.subscriber.subscriberId,
        count: 5,
      });
  
      cy.get('#notification-bell').click();
  
      const handlerObject = {
        handler: () => {},
      };
      cy.spy(handlerObject, 'handler').as('spy');
  
      cy.window().then((w) => {
        w.novu.on('notification_click', handlerObject.handler);
      });
  
      cy.get('#novu-iframe-element')
        .its('0.contentDocument.body')
        .should('not.be.empty')
        .then((body) => {
          cy.wrap(body).find('[data-test-id="notification-list-item"]').first().click();
        });
      cy.get('@spy').should('be.called');
  
      cy.url().should('include', '/cypress/test-shell/example/test?test-param=true');
    });
  
    it('should open and close widget on body click', function () {
      cy.get('#notification-bell').click();
      cy.get('#novu-iframe-element')
        .its('0.contentDocument.body')
        .then((body) => {
          cy.wrap(body).find('[data-test-id="main-wrapper"]').should('be.visible');
        });
      cy.get('body').click();
      cy.get('#novu-iframe-element')
        .its('0.contentDocument.body')
        .then((body) => {
          cy.wrap(body).find('[data-test-id="main-wrapper"]').should('not.be.visible');
        });
    });
  
    it('should display unseen count outside', function () {
      cy.task('createNotifications', {
        identifier: this.session.templates[0].triggers[0].identifier,
        token: this.session.token,
        subscriberId: this.session.subscriber.subscriberId,
        count: 5,
      });
      cy.get('#notification-bell .ntf-counter').should('be.visible');
    });
  });
  