3namespace Bitrix\Catalog\Controller;
7use Bitrix\Main\Localization\Loc;
9use Bitrix\Catalog\Access\AccessController;
10use Bitrix\Catalog\Access\ActionDictionary;
20 if (!Loader::includeModule(
'catalog') || !AccessController::getCurrent()->check(ActionDictionary::ACTION_CATALOG_READ))
22 $this->
addError(
new Error(Loc::getMessage(
'BARCODE_SCANNER_ACCESS_DENIED')));
26 if (!Loader::includeModule(
'pull'))
28 $this->
addError(
new Error(Loc::getMessage(
'BARCODE_SCANNER_PULL_MODULE_REQUIRED')));
35 (new \CPushManager())->sendMessage([
38 'APP_ID' =>
'Bitrix24',
41 'TYPE' =>
'CATALOG_BARCODE_SCANNER',
44 'ADVANCED_PARAMS' => [
45 'senderName' => Loc::getMessage(
'BARCODE_SCANNER_PUSH_TITLE'),
46 'senderMessage' => Loc::getMessage(
'BARCODE_SCANNER_PUSH_TEXT')
57 'module_id' =>
'catalog',
58 'command' =>
'OpenBarcodeScanner',
sendMobilePushAction(string $id)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)