code: function writeATSEntries (config) {
      var pObj = processAccessAndAllowNavigationEntries(config);
  
      var ats = {};
  
      for (var hostname in pObj) {
          if (pObj.hasOwnProperty(hostname)) {
              if (hostname === '*') {
                  ats['NSAllowsArbitraryLoads'] = true;
                  continue;
              }
  
              var entry = pObj[hostname];
              var exceptionDomain = {};
  
              for (var key in entry) {
                  if (entry.hasOwnProperty(key) && key !== 'Hostname') {
                      exceptionDomain[key] = entry[key];
                  }
              }
  
              if (!ats['NSExceptionDomains']) {
                  ats['NSExceptionDomains'] = {};
              }
  
              ats['NSExceptionDomains'][hostname] = exceptionDomain;
          }
      }
  
      return ats;
  }
docs: /*
  App Transport Security (ATS) writer from <access> and <allow-navigation> tags
  in config.xml