if (typeof hasAmeliaEvent === 'undefined') {
var hasAmeliaEvent = true;
}
if (typeof hasEventApiCall === 'undefined' && '' === '') {
var hasEventApiCall = true;
}
var hasEventShortcode = (typeof hasEventShortcode === 'undefined') ? false : true;
var ameliaShortcodeData = (typeof ameliaShortcodeData === 'undefined') ? [] : ameliaShortcodeData;
ameliaShortcodeData.push(
{
'hasApiCall': (typeof hasEventApiCall !== 'undefined') && hasEventApiCall,
'trigger': '',
'trigger_type': '',
'triggered_form': 'elf',
'in_dialog': '',
'counter': '1000',
'employee': '',
'eventId': '2',
'eventRecurring': 0,
'eventTag': ""
}
);
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 hasEventApiCall !== 'undefined' && hasEventApiCall) {
hasEventApiCall = false;
}