20 $optionManager =
new Option($sender->getType(), $sender->getId());
22 $providerOptions = $optionManager->getOptions();
23 $providerOptions = serialize($providerOptions);
25 $cryptoKey = mb_strtolower($sender->getType()) .
'-' . $sender->getId();
26 $providerOptions = self::encrypt($providerOptions, $cryptoKey);
28 $dbOptionName =
'sender.' . mb_strtolower($sender->getType()) .
'.' . $sender->getId();
32 'data' => $providerOptions
35 \Bitrix\Main\Config\Option::set(
'messageservice', $dbOptionName, serialize($data));