403Webshell
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/js/rest/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/rest/integration.js
;(function () {
	'use strict';

	BX.namespace('BX.rest.integration');

	BX.rest.integration = {
		open: function (integrationCode, url)
		{
			if (!!url)
			{
				BX.SidePanel.Instance.open(url, {cacheable: false});
			}
			else
			{
				if (integrationCode)
				{
					if (!!this.loadProcess)
					{
						BX.UI.Notification.Center.notify(
							{
								content: BX.message('REST_INTEGRATION_LIST_OPEN_PROCESS')
							}
						);
						return false;
					}
					else
					{
						this.loadProcess = true;
					}

					BX.ajax.runComponentAction(
						'bitrix:rest.integration.edit',
						'getNewIntegrationUrl',
						{
							mode: 'class',
							data: {
								code: integrationCode
							}
						}
					).then(
						function (response)
						{
							if (!!response.data && !!response.data.url)
							{
								BX.SidePanel.Instance.open(
									response.data.url,
									{
										cacheable: false,
										requestMethod: 'post',
										requestParams: {
											'NEW_OPEN': 'Y',
										},
										events:
										{
											onLoad: function (event)
											{
												this.loadProcess = false;
											}.bind(this)
										}
									}
								);
							}
							else
							{
								if (!!response.data.helperCode && response.data.helperCode !== '')
								{
									top.BX.UI.InfoHelper.show(response.data.helperCode);
								}
								else
								{
									var errorMessage = BX.message('REST_INTEGRATION_LIST_ERROR_OPEN_URL');
									if (!!response.data.error && response.data.error.length > 0)
									{
										errorMessage = response.data.error;
									}
									BX.UI.Notification.Center.notify(
										{
											content: errorMessage
										}
									);
								}
								this.loadProcess = false;
							}
						}.bind(this)
					).catch(
						function (response)
						{
							BX.UI.Notification.Center.notify(
								{
									content: BX.message('REST_INTEGRATION_LIST_ERROR_OPEN_URL')
								}
							);
							this.loadProcess = false;
						}.bind(this)
					);
				}
			}
		}
	};
})();

Youez - 2016 - github.com/yon3zu
LinuXploit