2020-12-30 01:02:08 +00:00
window . SupportPage = React . createClass ( {
render : function ( ) {
var support _space = null ;
var support _warning = null ;
if ( gon . has _support ) {
2020-12-30 22:27:35 +00:00
var display = 'Unknown'
for ( var plan in gon . global . subscription _codes ) {
if ( gon . global . subscription _codes [ plan ] . id == gon . plan _code ) {
display = gon . global . subscription _codes [ plan ] . name
}
}
// You just need to add '&disable[fieldName]=true' or '&disable[custom_field][fieldName]=true' depending on whether the field is default or custom.
2021-01-01 15:02:49 +00:00
2021-01-05 15:22:45 +00:00
if ( gon . in _trial ) {
display = 'Trial'
}
2020-12-30 22:27:35 +00:00
var src = ` https://jamkazam.freshdesk.com/widgets/feedback_widget/new?&helpdesk_ticket[requester]= ${ encodeURIComponent ( gon . email ) } &disable[requester]=true&helpdesk_ticket[custom_field][cf_plan_1596882]= ${ encodeURIComponent ( display ) } &disable[custom_field][cf_plan_1596882]=true&widgetType=embedded&formTitle=JamKazam+Support&submitTitle=Send+Feedback&submitThanks=Thank+you+for+your+message.+We+will+use+our+best+efforts+to+reply+within+24+hours. `
// helpdesk_ticket_cf_plan_1596882
2020-12-30 01:02:08 +00:00
2020-12-30 22:27:35 +00:00
support _space = < div className = "buffer" > < iframe title = "Get Help Form" class = "freshwidget-embedded-form" id = "freshwidget-embedded-form" src = { src } scrolling = "no" height = "650px" width = "100%" frameBorder = "0" >
2020-12-30 01:02:08 +00:00
< / iframe > < / div >
}
else {
if ( gon . in _trial ) {
support _space = < div className = "support-warning" > The functionality on this page is disabled because you are currently in the free trial period and are not eligible for support . < br / > < br / > You can < a href = "/client#/account/subscription" > change your plan < / a > here . < / div >
}
else {
2021-01-05 14:55:37 +00:00
support _space = < div className = "support-warning" > The functionality on this page is disabled because you must either be in trial , or have a Platinum or Gold plan to use support . < br / > < br / > You can < a href = "/client#/account/subscription" > change your plan < / a > here . < / div >
2020-12-30 01:02:08 +00:00
}
}
var response = < div >
< div id = "header" >
< a href = "/client#/home" className = "logo-holder" > < span id = "help-desk" > Help Desk < / span > < / a >
< / div >
< div id = "top-container" >
{ support _warning }
< div className = "description" >
The JamKazam help desk offers 1 : 1 help desk support only to our Gold and Platinum plan
2021-02-15 04:32:27 +00:00
subscribers , as well as those in their initial 30 - day trial period . More information on subscription plans < a href = "https://jamkazam.freshdesk.com/support/solutions/articles/66000122535-what-are-jamkazam-s-free-vs-premium-features-"
2020-12-30 22:27:35 +00:00
target = "_blank" > can be found here < / a > . If you are not a Gold or Platinum subscriber ,
we ' d suggest that you look for help in our < a href = "https://jamkazam.freshdesk.com/support/home" target = "_blank" > extensive knowledge base of
2020-12-30 01:02:08 +00:00
help articles < / a > ,
or check out our < a href = "https://forum.jamkazam.com/" target = "_blank" > user forum < / a > to see if
other JamKazam users can help you .
< / div >
{ support _space }
< / div >
< / div >
return response
}
} )