45 if (!$this->supportChecker->canUse())
52 if (!empty($cachedChannels))
54 return $cachedChannels;
60 $res = ChannelTable::getChannelsByType($this->providerId, $this->
getChannelType());
61 while ($channel = $res->fetch())
64 'id' => (int)$channel[
'EXTERNAL_ID'],
65 'name' => $channel[
'NAME'],
66 'channelPhone' => $channel[
'ADDITIONAL_PARAMS'][
'channelAttribute'] ??
'',
74 \Bitrix\Main\Application::getInstance()->addBackgroundJob([$this->utils,
'updateSavedChannelList'], [$this->
getChannelType()]);