Your IP : 18.118.161.96


Current Path : /home/bitrix/ext_www/easy-comfort.com.ua/bitrix/modules/pull/
Upload File :
Current File : /home/bitrix/ext_www/easy-comfort.com.ua/bitrix/modules/pull/include.php

<?
IncludeModuleLangFile(__FILE__);

define("PULL_REVISION_WEB", 19);
define("PULL_REVISION_MOBILE", 2);

global $APPLICATION, $DBType;

CModule::AddAutoloadClasses(
	"pull",
	array(
		"CPullChannel" => "classes/general/pull_channel.php",
		"CPullStack" => "classes/".$DBType."/pull_stack.php",
		"CPullWatch" => "classes/".$DBType."/pull_watch.php",
		"CPullOptions" => "classes/general/pull_options.php",
		"CPullTableSchema" => "classes/general/pull_table_schema.php",

		"CPullPush" => "classes/general/pull_push.php",
		"CPushMessage" => "classes/general/pushservices/push_message.php",
		"CPushService" => "classes/general/pushservices/push_service.php",
		"CPushManager" => "classes/general/pull_push.php",
		"CAppleMessage" => "classes/general/pushservices/apple_push.php",
		"CApplePush" => "classes/general/pushservices/apple_push.php",
		"CApplePushVoip" => "classes/general/pushservices/apple_push.php",
		"CGoogleMessage" => "classes/general/pushservices/google_push.php",
		"CGooglePush" => "classes/general/pushservices/google_push.php",
		"CGooglePushInteractive" => "classes/general/pushservices/google_push.php",

		"\\Bitrix\\Pull\\PushTable" => "lib/model/push.php",
		"\\Bitrix\\Pull\\ChannelTable" => "lib/model/channel.php",
	)
);

CJSCore::RegisterExt('pull', array(
	'js' => [
		'/bitrix/js/pull/protobuf/protobuf.min.js',
		'/bitrix/js/pull/protobuf/model.js',
		'/bitrix/js/pull/client/pull.client.js'
	],
	'lang' => '/bitrix/js/pull/client/config.php',
	'skip_core' => true,
	'oninit' => function()
	{
		return array(
			'lang_additional' => array(
				'pull_server_enabled' => \CPullOptions::GetQueueServerStatus() ? 'Y' : 'N',
				'pull_config_timestamp' => \CPullOptions::GetConfigTimestamp(),
			)
		);
	},
	'rel' => array('restclient')
));

\Bitrix\Main\Page\Asset::getInstance()->addJsKernelInfo(
	'pull',
	[
		'/bitrix/js/pull/protobuf/protobuf.min.js', '/bitrix/js/pull/protobuf/model.js',  '/bitrix/js/pull/client/pull.client.js'
	]
);

\Bitrix\Pull\Loader::register();