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/im/application/launch/dist/ |
Upload File : |
/* eslint-disable */ this.BX = this.BX || {}; this.BX.Messenger = this.BX.Messenger || {}; (function (exports,im_lib_logger) { 'use strict'; /** * Bitrix Im * Application Launcher * * @package bitrix * @subpackage im * @copyright 2001-2020 Bitrix */ var ApplicationLauncher = function ApplicationLauncher(app) { var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var application = ''; var name = ''; if (babelHelpers["typeof"](app) === 'object') { name = app.name.toString(); application = app.application.toString(); } else { name = app.toString(); application = app; } application = application.substr(0, 1).toUpperCase() + application.substr(1); if (application === 'Launch' || application === 'Core' || application.endsWith('Application')) { im_lib_logger.Logger.error('BX.Messenger.Application.Launch: specified name is forbidden.'); return new Promise(function (resolve, reject) { return reject(); }); } var launch = function launch() { try { BX.Messenger.Application[name] = new BX.Messenger.Application[application + 'Application'](params); return BX.Messenger.Application[name].ready(); } catch (e) { im_lib_logger.Logger.error("BX.Messenger.Application.Launch: application \"".concat(application, "\" is not initialized.")); return false; } }; if (typeof BX.Messenger.Application[application + 'Application'] === 'undefined' && typeof BX.Runtime !== 'undefined' && typeof BX.Runtime.loadExtension !== 'undefined') { var loadExtension = 'im.application.' + application.toString().toLowerCase(); return BX.Runtime.loadExtension(loadExtension).then(function () { return launch(); }); } return launch(); }; exports.Launch = ApplicationLauncher; }((this.BX.Messenger.Application = this.BX.Messenger.Application || {}),BX.Messenger.Lib)); //# sourceMappingURL=launch.bundle.js.map