tstrapTable("refresh", { silent: true });
            }, table.interval);
        });
    });

});

function formatEnable(value, item, index) {
    return [
                '<div class="custom-control custom-switch">',
                '<input type="checkbox" class="custom-control-input enable-switch" id="switch-' + index + '"' + (value ? ' checked' : '') + '>',
                '<label class="custom-control-label" for="switch-' + index + '"></label>',
                '</div>'
    ].join('')
}

function forma