function ctEventPush(a,b,c){clevertap.event.push("bfl_appearance",{event_type:"click",custom_event:a,component:"notification_consent",element:b,section_title:"NA",destination_url:"NA",cta_text:c,tab_position:"NA",sub_section:"NA",page_type:google_tag_manager["rm"]["44084702"](24),product_name:google_tag_manager["rm"]["44084702"](25),product_category:google_tag_manager["rm"]["44084702"](26),page_url:google_tag_manager["rm"]["44084702"](27),customer_tag:"NA",journey_tag:"NA",stage_tag:"NA",customer_id:"NA",application_id:"NA",iswebview:google_tag_manager["rm"]["44084702"](28)})} function notiTracking(){window.Notification.requestPermission().then(function(a){ctEventPush("consent_initiated","notification_consent_initiated","initiated");"granted"===a?(ctEventPush("consent_allow","notification_consent_allow","Allow"),getConsent(),google_tag_manager["rm"]["44084702"](29)("push_granted","yes",".bajajfinserv.in",{days:366})):"denied"===a?ctEventPush("consent_block","notification_consent_block","Block"):"default"===a&&("denied"===window.Notification.permission?ctEventPush("consent_auto_block","notification_consent_auto_block", "auto_block"):ctEventPush("consent_default","notification_consent_default","default"))});google_tag_manager["rm"]["44084702"](30)("session_init","1",".bajajfinserv.in")} function getConsent(){clevertap.notifications.push({titleText:"Would you like to receive Push Notifications?",bodyText:"We promise to only send you relevant content and give you updates on your transactions",okButtonText:"Sign me up!",rejectButtonText:"No thanks",skipDialog:"true",okButtonColor:"#F28046",askAgainTimeInSeconds:5,serviceWorkerPath:"/service-worker.js"})} function notifyMe(){"Notification"in window&&"granted"!==Notification.permission&&"denied"!==Notification.permission&&(google_tag_manager["rm"]["44084702"](31)("push_granted","yes")&&ctEventPush("consent_unsubscribed","notification_consent_unsubscribed","unsubscribed"),setTimeout(notiTracking,1E4))}notifyMe();