if (typeof hasAmeliaEntitiesApiCall === ‘undefined’ && (” === ” && ” !== ‘1’)) { var hasAmeliaEntitiesApiCall = true; } var ameliaShortcodeData = (typeof ameliaShortcodeData === ‘undefined’) ? [] : ameliaShortcodeData; ameliaShortcodeData.push( { ‘hasApiCall’: (typeof hasAmeliaEntitiesApiCall !== ‘undefined’) && hasAmeliaEntitiesApiCall, ‘trigger’: ”, ‘trigger_type’: ”, ‘triggered_form’: ‘sbsNew’, ‘in_dialog’: ”, ‘show’: ”, ‘counter’: ‘1000’, ‘category’: ”, ‘service’: ”, ’employee’: ‘5’, ‘location’: ”, ‘package’: ”, ‘layout’: ”, } ); var ameliaShortcodeDataTriggered = (typeof ameliaShortcodeDataTriggered === ‘undefined’) ? [] : ameliaShortcodeDataTriggered; if (ameliaShortcodeData[ameliaShortcodeData.length – 1].trigger !== ”) { if (ameliaShortcodeDataTriggered.filter(a => a.counter === ameliaShortcodeData[ameliaShortcodeData.length – 1].counter).length === 0) { ameliaShortcodeDataTriggered.push(ameliaShortcodeData.pop()); } else { ameliaShortcodeData.pop() } } if (typeof hasAmeliaEntitiesApiCall !== ‘undefined’ && hasAmeliaEntitiesApiCall) { hasAmeliaEntitiesApiCall = false; }