ZohoHCAsapReady is undefined

ZohoHCAsapReady is undefined

I am trying to use

  1. var viewArticle = ZohoHCAsapReady(function(){ ZohoHCAsap.kbArticles.view( { articleId : '305163000000109120' } ); })
But it says ZohoHCAsapReady is undefined.

I am using this to import
  1. <script type="text/javascript" > window.ZohoHCAsap=window.ZohoHCAsap||function(a,b){ZohoHCAsap[a]=b;};(function(){var d=document; var s=d.createElement("script");s.type="text/javascript";s.defer=true; s.src="https://desk.zoho.com/portal/api/web/inapp/219327000000000000?orgId=1293142556"; d.getElementsByTagName("head")[0].appendChild(s); })(); </script>

(Values are modified intentionally)