- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/integration/voximplant/messageaudiocall.php
- Класс: Bitrix\Sender\Integration\VoxImplant\MessageAudioCall
- Вызов: MessageAudioCall::setConfigurationOptions
protected function setConfigurationOptions() { if ($this->configuration->hasOptions()) { return; } $this->configuration->setArrayOptions(array( array( 'type' => 'list', 'code' => 'OUTPUT_NUMBER', 'name' => Loc::getMessage('SENDER_INTEGRATION_AUDIOCALL_MESSAGE_CONFIG_OUTPUT_NUMBER'), 'items' => \CVoxImplantConfig::GetPortalNumbers(false), 'view' => function () { ob_start(); $GLOBALS['APPLICATION']->includeComponent( "bitrix:sender.call.number", "", array( "INPUT_NAME" => "%INPUT_NAME%", "VALUE" => "%INPUT_VALUE%", "MESSAGE_TYPE" => $this->getCode() ) ); return ob_get_clean(); }, 'readonly_view' => function($value) { return Service::getFormattedOutputNumber($value); }, 'required' => true, 'show_in_list' => true, ), array( 'type' => 'audio', 'code' => 'AUDIO_FILE', 'name' => Loc::getMessage('SENDER_INTEGRATION_AUDIOCALL_MESSAGE_CONFIG_MESSAGE_FILE'), 'required' => true, 'params' => [ 'allowUpload' => 'F', 'allowUploadExt' => 'mp3', 'maxCount' => 1, ] ), )); TimeLimiter::prepareMessageConfiguration($this->configuration); }