docs: function resolveLinkVariables (links, record) {
      // handle array
      if (Array.isArray(links)) {
          _.each(links, link => {
              resolveLinkVariablesObject(link, record)
          })
      }
      // handle object
      else if (typeof links === 'object' && links) {
          resolveLinkVariablesObject(links, record)
      }
  }