code: function getCookie(cookieName) {
    if (typeof window === 'undefined' || typeof document === 'undefined') {
      return '';
    }
    var name = cookieName + '=';
    var ca = document.cookie.split(';');
    for (var i = 0; i < ca.length; i++) {
      var c = ca[i];
      while (c.charAt(0) === ' ') {
        c = c.substring(1);
      }
      try {
        if ((0, _includes2.default)(c, name)) {
          return c.substring(name.length, c.length);
        }
      } catch (error) {
        _logger2.default.warn({
          description: 'Cookie cannot be loaded.', cookieName: cookieName,
          error: error, func: 'getCookie', obj: 'cookiesUtil'
        });
        return '';
      }
    }
    return '';
  }
docs: @description Gets cookie value by cookie name.
  
  @param {String} cookieName - cookie name
  @returns {String} cookieValue - value for given cookie name