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/im/v2/provider/service/settings/dist/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/im/v2/provider/service/settings/dist/settings.bundle.js
/* eslint-disable */
this.BX = this.BX || {};
this.BX.Messenger = this.BX.Messenger || {};
this.BX.Messenger.v2 = this.BX.Messenger.v2 || {};
(function (exports,im_v2_application_core,im_v2_const,im_v2_lib_logger,im_v2_lib_rest) {
	'use strict';

	class SettingsService {
	  changeSetting(settingName, value) {
	    im_v2_lib_logger.Logger.warn('SettingsService: changeSetting', settingName, value);
	    void im_v2_application_core.Core.getStore().dispatch('application/settings/set', {
	      [settingName]: value
	    });
	    const payload = {
	      data: {
	        userId: im_v2_application_core.Core.getUserId(),
	        name: settingName,
	        value
	      }
	    };
	    im_v2_lib_rest.runAction(im_v2_const.RestMethod.imV2SettingsGeneralUpdate, payload).catch(([error]) => {
	      console.error('SettingsService: changeSetting error', error);
	    });
	  }
	  changeStatus(status) {
	    if (!im_v2_const.UserStatus[status]) {
	      return;
	    }
	    im_v2_lib_logger.Logger.warn(`SettingsService: changeStatus to ${status}`);
	    void im_v2_application_core.Core.getStore().dispatch('users/setStatus', {
	      status
	    });
	    void im_v2_application_core.Core.getStore().dispatch('application/settings/set', {
	      status
	    });
	    const payload = {
	      STATUS: status
	    };
	    im_v2_application_core.Core.getRestClient().callMethod(im_v2_const.RestMethod.imUserStatusSet, payload).catch(result => {
	      console.error('SettingsService: changeStatus error', result.error());
	    });
	  }
	}

	exports.SettingsService = SettingsService;

}((this.BX.Messenger.v2.Service = this.BX.Messenger.v2.Service || {}),BX.Messenger.v2.Application,BX.Messenger.v2.Const,BX.Messenger.v2.Lib,BX.Messenger.v2.Lib));
//# sourceMappingURL=settings.bundle.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit