Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/templates/landing24/assets/js/helpers/ |
Upload File : |
(function(){"use strict";BX.ready(function(){if(!top.BXIM){return}var t=null;var e=[].slice.call(document.querySelectorAll("a.landing-chat-message"));if(e.length){for(var n=0,s=e.length;n<s;n++){var a=e[n];var i=a.getAttribute("href");if(i){a.addEventListener("click",function(){var e=this.substr(0,5);var n=this.substr(5);if(e==="#chat"){top.BXIM.openMessenger(n)}else if(e==="#join"){t=n;BX.ajax({url:"/bitrix/tools/landing/ajax.php",method:"POST",data:{action:"Chat::joinChat",data:{internalId:n},sessid:BX.message("bitrix_sessid")},dataType:"json",onsuccess:function(t){if(t.result){top.BXIM.openMessenger("chat"+t.result)}}})}BX.PreventDefault()}.bind(i))}}}BX.addCustomEvent("onPullEvent-im",function(e,n){if(e==="chatUserAdd"){if(t){console.log(n.users)}}})})})(); //# sourceMappingURL=chat_init.map.js