(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@iotize/tap/configurator'), require('@iotize/tap/extra/dbiot')) :
    typeof define === 'function' && define.amd ? define('@iotize/tap/configurator/ext/dbiot', ['exports', '@iotize/tap/configurator', '@iotize/tap/extra/dbiot'], factory) :
    (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.iotize = global.iotize || {}, global.iotize.tap = global.iotize.tap || {}, global.iotize.tap.configurator = global.iotize.tap.configurator || {}, global.iotize.tap.configurator.ext = global.iotize.tap.configurator.ext || {}, global.iotize.tap.configurator.ext.dbiot = {}), global.iotize.tap.configurator, global.iotize.tap.extra.dbiot));
})(this, (function (exports, configurator, dbiot) { 'use strict';

    var READ_CONFIGURATOR_CONFIG_EXT = configurator.READ_CONFIGURATOR_CONFIG;
    var WRITE_CONFIGURATOR_CONFIG_EXT = configurator.WRITE_CONFIGURATOR_CONFIG;
    function loadDBIOTTapConfiguratorExtension() {
        if (!WRITE_CONFIGURATOR_CONFIG_EXT['data.variables[].dbiot']) {
            WRITE_CONFIGURATOR_CONFIG_EXT['data.variables[].dbiot'] = function (context) {
                var dbiotValue = context.value;
                var encodedValue = dbiot.DBIOT_VARIABLE_CONFIG_CONVERTER.encode(dbiotValue);
                return context.service.variable.putRawMetaCall(context.param, encodedValue);
            };
        }
        if (!READ_CONFIGURATOR_CONFIG_EXT['data.variables[].dbiot']) {
            READ_CONFIGURATOR_CONFIG_EXT['data.variables[].dbiot'] = function (context) {
                var rawData = context.service.variable.getRawMetaCall(context.param);
                rawData.responseBodyDecoder = dbiot.DBIOT_VARIABLE_CONFIG_CONVERTER;
                return rawData;
            };
        }
    }

    loadDBIOTTapConfiguratorExtension();

    /**
     * Generated bundle index. Do not edit.
     */

    exports.loadDBIOTTapConfiguratorExtension = loadDBIOTTapConfiguratorExtension;

    Object.defineProperty(exports, '__esModule', { value: true });

}));
//# sourceMappingURL=iotize-tap-configurator-ext-dbiot.umd.js.map
