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/rospirotorg.ru/bitrix/js/sender/b24_license/ |
Upload File : |
;(function () { BX.namespace('BX.Sender'); BX.Sender.B24License = { getTitle: function (code) { return BX.message('SENDER_B24_LICENSE_' + code.toUpperCase() + '_TITLE'); }, getText: function (code) { var messageCode = 'SENDER_B24_LICENSE_%code%_TEXT'.replace('%code%', code.toUpperCase()); var mess = ''; if (BX.message[messageCode]) { mess = BX.message(messageCode); } if (!mess) { messageCode = messageCode + '1'; } if (BX.message[messageCode]) { mess = BX.message(messageCode); } return mess; }, showDefaultPopup: function () { this.showPopup('Ad'); }, showMailingPopup: function () { this.showPopup('Mailing'); }, showMailLimitPopup: function () { this.showPopup('Mail_limit'); }, showPopup: function (code, id = null) { if (!B24 || !B24.licenseInfoPopup) { return; } switch (code) { case 'Ad': if (id === 'toloka') { code = 'limit_integration_yandex_toloka'; } else { code = 'limit_crm_marketing_adv'; } break; case 'Rc': code = 'limit_crm_marketing_sales_generator'; break; case 'Mail_limit': case 'Mailing': code = 'limit_crm_marketing_email' break; default: code = 'limit_crm_marketing_sms'; break; } BX.UI.InfoHelper.show(code); } }; })(window);