text: (function () {
    function BlocChatCookies($cookies, $uibModal) {
      var currentUser = $cookies.get('blocChatCurrentUser');
      if (!currentUser || currentUser === '') {
        $uibModal.open({
          templateUrl: "/templates/user.html",
          controller: 'UserCtrl',
          controllerAs: 'user',
        })
      }
    }
  
    angular
      .module('blocChat')
      .run(['$cookies', '$uibModal', BlocChatCookies]);
  })();
  