Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Informant.php
1<?php
2
4
5use Bitrix\ImConnector\Library;
7
9{
10 public function isConfigurable(): bool
11 {
12 return true;
13 }
14
15 public function getId(): string
16 {
17 return Constants::ID;
18 }
19
20 public function getName(): string
21 {
23 {
24 return 'Edna.io WhatsApp';
25 }
26
27 return 'Edna.ru WhatsApp';
28 }
29
30 public function getShortName(): string
31 {
33 {
34 return 'Edna.io WhatsApp';
35 }
36
37 return 'Edna.ru WhatsApp';
38 }
39
40 public function getManageUrl(): string
41 {
42 if (defined('ADMIN_SECTION') && ADMIN_SECTION === true)
43 {
44 return parent::getManageUrl();
45 }
46
47 if (!Loader::includeModule('imopenlines') || !Loader::includeModule('imconnector'))
48 {
49 return '';
50 }
51
52 $contactCenterUrl = \Bitrix\ImOpenLines\Common::getContactCenterPublicFolder();
53
54 return $contactCenterUrl . 'connector/?ID=' . Library::ID_EDNA_WHATSAPP_CONNECTOR;
55 }
56
57}