38 parent::__construct();
117 abstract public function unlink(
string $id): bool;
130 $rows = Internals\CallbackSubscriptionTable::getList([
131 'select' => [
'GROUP_ID'],
133 '=TYPE' => static::TYPE_CODE,
137 return array_column($rows,
'GROUP_ID');
152 $row = Internals\CallbackSubscriptionTable::getRow([
154 '=TYPE' => static::TYPE_CODE,
155 '=GROUP_ID' => $groupId
159 return $row && Internals\CallbackSubscriptionTable::delete($row[
'ID'])->isSuccess();
174 $list = Internals\CallbackSubscriptionTable::getList([
176 '=TYPE' => static::TYPE_CODE
179 foreach ($list as $row)
181 if ($row[
'GROUP_ID'] === $groupId)
187 Internals\CallbackSubscriptionTable::delete($row[
'ID']);
194 $callbackSubscriptionResult = Internals\CallbackSubscriptionTable::add([
195 'TYPE' => static::TYPE_CODE,
196 'GROUP_ID' => $groupId
199 return $callbackSubscriptionResult->isSuccess();
210 foreach ($item = $field->toArray() as $key => $value)
230 static function($field)
232 return static::convertField($field);
245 return static::URL_FORM_LIST;
250 return new \Bitrix\Main\Result();
276 return "https://www.bitrix24.{$langId}/about/privacy.php";
278 return "https://www.bitrix24.{$langId}/privacy/";
281 return 'https://www.bitrix24.com/privacy/';
287 return WebHook\Service::create(
290 )->register($parameters);
295 return WebHook\Service::registerForm($adsFormId);
305 return WebHook\Service::unregisterForm($adsFormId);
310 return WebHook\Service::create(
323 return static::USE_GROUP_AUTH;
338 if (!self::isGroupAuthUsed())
343 $adapter = Retargeting\AuthAdapter::create(static::TYPE_CODE .
'.groups', $this->service);
345 $row = Internals\CallbackSubscriptionTable::getRow([
347 '=TYPE' => static::TYPE_CODE,
351 if ($row && $row[
'HAS_AUTH'] !==
'Y' && $adapter->hasAuth())
353 Internals\CallbackSubscriptionTable::update($row[
'ID'], [
'HAS_AUTH' =>
'Y']);
static getEngineCode($type)