%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.142.119.8
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/modules/report/install/components/bitrix/report.analytics.feedback/templates/.default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/report/install/components/bitrix/report.analytics.feedback/templates/.default/script.js
(function(){
	BX.namespace("BX.Report.Analytics");

	BX.Report.Analytics.Feedback = function(options)
	{
		this.button = options.button;
		this.feedbackContainer = options.feedbackContainer;
		this.init();
	};

	BX.Report.Analytics.Feedback.prototype = {
		init: function()
		{
			this.formContainer = BX.create('div', {
				style: 'width: 600px; height: 673px; overflow-y: auto;'
			});

			this.feedbackContainer.appendChild(this.formContainer);


			BX.bind(this.button, 'click', this.handleFeedbackButtonClick.bind(this));
		},
		handleFeedbackButtonClick: function ()
		{
			this.openFeedbackSlider();
		},
		openFeedbackSlider: function()
		{
			this.sidePanel = BX.SidePanel.Instance;
			this.sidePanel.open("analytic:feedback-for-board-", {
				cacheable: false,
				contentCallback: function() {
					var promise = new BX.Promise();
					promise.fulfill();
					return promise;
				},
				animationDuration: 100,
				events: {
					onLoad: function(event)
					{
						var slider = event.getSlider();


						this.initForm();
						slider.layout.content.appendChild(this.feedbackContainer);
						this.feedbackContainer.style.display = 'block';
					}.bind(this)
				},
				width: 600
			});
		},
		initForm: function()
		{
			var senderPage = window.location.href.match(/\/marketing\/([\w]+)\/([\w]+)\//);
			if (senderPage)
			{
				senderPage = senderPage[1] + '-' + senderPage[2];
			}

			(function(w,d,u,b){
				w['Bitrix24FormObject']=b;w[b] = w[b] || function(){arguments[0].ref=u;
					(w[b].forms=w[b].forms||[]).push(arguments[0])}; if(w[b]['forms']) return;
				var s=d.createElement('script');
				var r=1*new Date(); s.async=1;s.src=u+'?'+r;
				var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
			})(window,document,'https://landing.bitrix24.ru/bitrix/js/crm/form_loader.js','b24form');

			var id, lang, sec;
			this.config = {};
			this.config.b24_zone = 'ru';
			this.config.b24_plan = 'company';
			switch (this.config.b24_zone)
			{
				case 'ru':
				case 'ua':
				case 'kz':
				case 'by':
					id = '68';
					lang = 'ru';
					sec = 'h6thh2';
					break;

				case 'es':
					id = '26';
					lang = 'la';
					sec = '5i211d';
					break;

				case 'de':
					id = '24';
					lang = 'de';
					sec = 'ls8jym';
					break;

				case 'com.br':
					id = '28';
					lang = 'br';
					sec = 'lqo2cl';
					break;

				default:
					id = '22';
					lang = 'en';
					sec = 'iv17oh';
					break;
			}

			if (!id)
			{
				return;
			}

			window.b24form({
				"id":id,
				"lang":lang,
				"sec":sec,
				"type":"inline",
				"node": this.formContainer,
				"presets": {
					"b24_plan": this.config.b24_plan
				}
			});
		}
	};

})();

Youez - 2016 - github.com/yon3zu
LinuXploit