// app/modules/loyalty/static/merchant/js/loyalty-pins.js
// noqa: js-006 - async init pattern is safe, loadData has try/catch

const merchantPinsLog = window.LogConfig.loggers.merchantPins || window.LogConfig.createLogger('merchantPins');

function merchantLoyaltyPins() {
    return loyaltyPinsList({
        apiPrefix: '/merchants/loyalty',
        staffApiPrefix: '/merchants/account',
        showStoreFilter: true,
        showCrud: true,
        currentPage: 'pins',
    });
}

if (!window.LogConfig.loggers.merchantPins) {
    window.LogConfig.loggers.merchantPins = window.LogConfig.createLogger('merchantPins');
}
merchantPinsLog.info('Merchant loyalty pins module loaded');
