bareMinerals Clean Beauty: Makeup + Skincare Collections


‘).appendTo($(“#lpButtonDivForCustomerService”)); var _cta = $(‘Chat Now’).appendTo($(“#liveChatNowContactUs”)); var _cta = $(‘ |

Chat Now

‘).appendTo($(“#lpButtonOrderHistory”));

} else if (type == “artist”) {

}

}

function showChatBanner(type) {
if (type == “agent”) {

if (window.pageContext.ns === ‘cart’ || window.pageContext.ns === ‘checkout’) {
$(“.sfsc-chat-banner-agent”).addClass(“initialized”);
}

} else if (type == “artist”) {

if (window.pageContext.ns === ‘search’ || window.pageContext.ns === ‘product’) {
$(“.sfsc-chat-banner-artist”).addClass(“initialized”);
}

}
}

function gaEventCapture(siteLocation, chatInteraction, chatType) {
utag.link({
“event”: “contactRequest”,
“contactType”: “Live Chat”,
“siteLocation”: siteLocation,
“chatInteraction”: chatInteraction,
“chatType”: chatType,
“pageCategory”: window.dataLayer.pageCategory,
“pageSubCategory”: window.dataLayer.pageSubCategory
});
}

function getAvailability(queueId, deploymentId, orgId, callbackFunction) {
var _sfurl = shi_sfsc.baseLiveAgentURL + “/rest/Visitor/Availability.jsonp?&Availability.prefix=Visitor&Availability.ids=[” + queueId + “]&callback=” + callbackFunction + “&deployment_id=” + deploymentId + “&org_id=” + orgId + “&version=48”

$.ajax({
url: _sfurl,
type: “GET”,
async: false,
jsonpCallback: callbackFunction,
contentType: “application/json”,
dataType: “jsonp”,
data: {},
success: function(result, status, xhr) { },
error: function(xhr, status, error) { },
});
}

$(window).load(function() {
if (shi_sfsc.buttonAgentId) {
getAvailability(shi_sfsc.buttonAgentId, shi_sfsc.deploymentId, shi_sfsc.orgId, “processQueueAvailabilityAgent”);
}

if (shi_sfsc.buttonArtistId) {
getAvailability(shi_sfsc.buttonArtistId, shi_sfsc.deploymentId, shi_sfsc.orgId, “processQueueAvailabilityArtist”);
}
});

You May Also Like

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다