olos_sdk 1.0.47
olos_sdk: ^1.0.47 copied to clipboard
An interface between interfaces and the Olos system
example/olos_sdk_example.dart
import 'dart:developer';
import '../lib/main.dart';
void main() {
String server = 'http://10.15.10.38';
Olos olos = Olos();
var addrs = {
'wsAgentCmd': '$server/WebAPIAgentControl_Token/AgentCommand/',
'wsAgentEvt': '$server/WebAPIAgentControl_Token/AgentEvent/',
'WsAgentCloud': '$server/WebAPIAgentControl_Token/CloudAgent/',
'wsMailingCmd': '$server/WebAPIMailingControl_Token/MailingCommand/',
'wsAgentConfig': '$server/WebAPIConfiguration_Token/AgentConfig/',
'wsVoiceSupport':
'$server/WsVoiceSupportIntegration/WsVoiceSupportIntegration.asmx', //Esse aqui ainda não esta desenvolvido pelo Backend da Olos
'WebAPIAgentControl': '$server/WebAPIAgentControl_Token/',
'wsSoftphone': '$server/WebAPISoftphone_Token/Softphone/',
'wsMcx': '$server/WsMcx_Token/wsmcx/Mcx/',
'wsRecordingRetrieve':
'$server/WebApiRecordingRetrieve_Token/RecordTextComm/',
};
olos.createOlos(addrs, 'agente1', 'olos', '9f57f547a8ea4ecfbd2525a0cccb0b58',
'x_wor5KTOPTIuFQBywo5TWFQfrN5FoCFcqn_eo', true);
OlosAgentWS ws = OlosAgentWS();
ws.agentAuthentication('agente1', 'olos', displayAgentID);
}
void displayAgentID(String agentID) => log('ARNALDO $agentID');