"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function ProtocolAdapter(input) {
    var _a, _b, _c, _d, _e;
    const { accessor } = input;
    const nfcNode = accessor.get('GUI_nfc', undefined);
    const data = {
        ble: {
            enabled: accessor.has('GUI_ble') ? ((_a = accessor.get('GUI_ble', undefined)) === null || _a === void 0 ? void 0 : _a.value('enabled', 'string', "false")) === "true" : false
        },
        nfc: {
            enabled: accessor.has('GUI_nfc') ? ((_b = nfcNode) === null || _b === void 0 ? void 0 : _b.value('enabled', 'string', "false")) === "true" : false,
            energyHarvesting: accessor.has('GUI_nfc') ? ((_c = nfcNode) === null || _c === void 0 ? void 0 : _c.value('energyHarvesting', 'string', "false")) === "true" : false
        },
        socket: {
            enabled: accessor.has('GUI_socket') ? ((_d = accessor.get('GUI_socket', undefined)) === null || _d === void 0 ? void 0 : _d.value('enabled', 'string', "false")) === "true" : false
        },
        mqtt: {
            enabled: accessor.has('GUI_mqtt') ? ((_e = accessor.get('GUI_mqtt', undefined)) === null || _e === void 0 ? void 0 : _e.value('enabled', 'string', "false")) === "true" : false
        }
    };
    return data;
}
exports.default = ProtocolAdapter;
//# sourceMappingURL=protocol-adapter.js.map