function transformDevice(device) {
  const { mac, hostname, ip, vendor } = device;
  const deviceExternalId = `lan-manager:${mac.replaceAll(':', '').toLowerCase()}`;

  const params = [];

  if (hostname) {
    params.push({
      name: PARAMS.NAME,
      value: hostname,
    });
  }

  params.push({
    name: PARAMS.MAC,
    value: mac,
  });

  if (vendor) {
    params.push({
      name: PARAMS.MANUFACTURER,
      value: vendor,
    });
  }

  const gladysDevice = {
    name: hostname || '',
    ip,
    service_id: this.serviceId,
    external_id: deviceExternalId,
    selector: deviceExternalId,
    features: [buildPresenceFeature(deviceExternalId)],
    params,
  };

  addSelector(gladysDevice);
  return gladysDevice;
}
@description Transform network device to Gladys device.
@param {object} device - Network device.
@returns {object} Return Gladys deviec.
@example
const gladysDevice = lanManager.transformDevice({ ip: '...', mac: '...', hostname: '...' });