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

const merchantTransactionsLog = window.LogConfig.loggers.merchantTransactions || window.LogConfig.createLogger('merchantTransactions');

function merchantLoyaltyTransactions() {
    return loyaltyTransactionsList({
        apiPrefix: '/merchants/loyalty',
        showStoreFilter: true,
        currentPage: 'transactions',
    });
}

if (!window.LogConfig.loggers.merchantTransactions) {
    window.LogConfig.loggers.merchantTransactions = window.LogConfig.createLogger('merchantTransactions');
}
merchantTransactionsLog.info('Merchant loyalty transactions module loaded');
