...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integration/smsmanager.php
- Класс: Bitrix\Crm\Integration\SmsManager
- Вызов: SmsManager::makeMessageFields
static function makeMessageFields(array $options, array $commonOptions): array { $sender = (isset($options['SENDER_ID'])) ? MessageService\Sender\SmsManager::getSenderById($options['SENDER_ID']) : MessageService\Sender\SmsManager::getUsableSender(); return [ 'SENDER_ID' => $sender->getId(), 'MESSAGE_FROM' => $options['MESSAGE_FROM'] ?? $sender->getFirstFromList(), 'MESSAGE_BODY' => $options['MESSAGE_BODY'], 'AUTHOR_ID' => $commonOptions['USER_ID'], 'MESSAGE_TO' => $commonOptions['PHONE_NUMBER'], 'MESSAGE_HEADERS' => [ 'module_id' => 'crm', 'bindings' => $commonOptions['ADDITIONAL_FIELDS']['BINDINGS'] ?? [], ], 'ADDITIONAL_FIELDS' => array_merge( $commonOptions['ADDITIONAL_FIELDS'], [ 'ACTIVITY_PROVIDER_TYPE_ID' => $options['ACTIVITY_PROVIDER_TYPE_ID'] ?? null, 'ACTIVITY_AUTHOR_ID' => $commonOptions['USER_ID'], 'ACTIVITY_DESCRIPTION' => $options['MESSAGE_BODY'], 'MESSAGE_TO' => $commonOptions['PHONE_NUMBER'], 'SENDER_ID' => $sender->getId(), ] ), ]; }