repo_name string | dataset string | owner string | lang string | func_name string | code string | docstring string | url string | sha string |
|---|---|---|---|---|---|---|---|---|
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.initialize | private initialize() {
this.openCardButton = false;
this.arrayResponses = [];
this.intentName = '';
this.intentNameResult = true;
this.textGrabbing = false;
if (this.action) {
try {
this.arrayResponses = this.action.attributes.commands;
} catch (error) {
this.logger.log('error:::', error);
}
}
this.scrollToBottom();
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L109-L123 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.scrollToBottom | scrollToBottom(): void {
setTimeout(() => {
try {
this.scrollContainer.nativeElement.scrollTop = this.scrollContainer.nativeElement.scrollHeight;
this.scrollContainer.nativeElement.animate({ scrollTop: 0 }, '500');
} catch (error) {
this.logger.log('scrollToBottom ERROR: ', error);
}
}, 300);
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L127-L136 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.mouseDown | mouseDown() {
this.textGrabbing = true;
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L144-L146 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.mouseUp | mouseUp() {
this.textGrabbing = false;
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L149-L151 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.drop | drop(event: CdkDragDrop<string[]>) {
// this.logger.log( 'DROP REPLY ---> ',event, this.arrayResponses);
this.textGrabbing = false;
try {
let currentPos = event.currentIndex*2+1;
let previousPos = event.previousIndex*2+1;
const waitCur = this.arrayResponses[currentPos-1];
const msgCur = this.arrayResponses[currentPos];
const waitPre = this.arrayResponses[previousPos-1];
const msgPre = this.arrayResponses[previousPos];
this.arrayResponses[currentPos-1] = waitPre;
this.arrayResponses[currentPos] = msgPre;
this.arrayResponses[previousPos-1] = waitCur;
this.arrayResponses[previousPos] = msgCur;
// this.logger.log( 'DROP REPLY ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.intentSelected};
this.onUpdateAndSaveAction(element);
} catch (error) {
this.logger.log('drop ERROR', error);
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L154-L175 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onMoveUpResponse | onMoveUpResponse(index: number) {
if(index<2)return;
try {
let from = index - 1;
let to = from - 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
from = index;
to = from - 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
this.logger.log('onAddNewResponse ERROR', error);
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L180-L196 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onMoveDownResponse | onMoveDownResponse(index: number) {
if(index === this.arrayResponses.length-1)return;
try {
let from = index;
let to = from + 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
from = index - 1;
to = from + 2;
this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]);
// this.logger.log( 'onMoveUpResponse ---> ', this.arrayResponses);
this.connectorService.updateConnector(this.intentSelected.intent_id);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
this.logger.log('onAddNewResponse ERROR', error);
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L199-L215 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onAddNewActionReply | onAddNewActionReply(ele) {
this.logger.log('onAddNewActionReply: ', ele);
try {
let message = new Message(ele.message.type, ele.message.text);
if (ele.message.attributes) {
message.attributes = ele.message.attributes;
}
if (ele.message.metadata) {
message.metadata = ele.message.metadata;
}
const wait = new Wait();
let command = new Command(ele.type);
command.message = message;
this.arrayResponses.splice(this.arrayResponses.length-2, 0, wait)
this.arrayResponses.splice(this.arrayResponses.length-2, 0, command)
this.arrayResponses.join();
this.scrollToBottom();
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} catch (error) {
this.logger.log('onAddNewResponse ERROR', error);
}
} | /** onAddNewActionReply */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L219-L241 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onDeleteActionReply | onDeleteActionReply(index: number) {
this.logger.log('onDeleteActionReply: ', this.arrayResponses[index]);
// !!! cancello tutti i connettori di una action
var intentId = this.idAction.substring(0, this.idAction.indexOf('/'));
try {
let buttons = this.arrayResponses[index].message.attributes.attachment.buttons;
buttons.forEach(button => {
this.logger.log('button: ', button);
if(button.__isConnected){
this.connectorService.deleteConnectorFromAction(intentId, button.__idConnector);
// this.connectorService.deleteConnector(button.__idConnector);
}
});
} catch (error) {
this.logger.log('onAddNewResponse ERROR', error);
}
// cancello l'elemento wait precedente
this.logger.log('**** arrayResponses: ', this.arrayResponses, 'index-1: ', (index-1));
const wait = this.arrayResponses[index-1];
this.logger.log('wait: ', wait);
if( wait && wait.type === this.typeCommand.WAIT){
this.arrayResponses.splice(index-1, 2);
} else {
this.arrayResponses.splice(index, 1);
}
this.logger.log('onDeleteActionReply', this.arrayResponses);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
} | /** onDeleteActionReply */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L245-L273 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onChangeActionReply | onChangeActionReply(event) {
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.logger.log('onChangeActionReply ************', element);
this.onUpdateAndSaveAction(element);
} | /** onChangingReplyAction */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L276-L280 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onConnectorChangeReply | onConnectorChangeReply(event){
this.logger.log('onConnectorChangeReply ************', event);
this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action});
this.onConnectorChange.emit(event)
} | /** onConnectorChangeReply */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L283-L287 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onCreateNewButton | onCreateNewButton(index){
this.logger.log('[ActionDTMFForm] onCreateNewButton: ', index);
try {
if(!this.arrayResponses[index].message.attributes || !this.arrayResponses[index].message.attributes.attachment){
this.arrayResponses[index].message.attributes = new MessageAttributes();
}
} catch (error) {
this.logger.error('error: ', error);
}
let buttonSelected = this.createNewButton();
if(buttonSelected){
this.arrayResponses[index].message.attributes.attachment.buttons.push(buttonSelected);
this.logger.log('[ActionDTMFForm] onCreateNewButton: ', this.action, this.arrayResponses);
// this.intentService.setIntentSelected(this.intentSelected.intent_id);
this.intentService.selectAction(this.intentSelected.intent_id, this.action._tdActionId);
const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action};
this.onUpdateAndSaveAction(element);
}
} | /** onCreateNewButton */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L294-L312 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onDeleteButton | onDeleteButton(event){
let button = event.buttons[event.index];
event.buttons.splice(event.index, 1);
var intentId = this.idAction.substring(0, this.idAction.indexOf('/'));
this.connectorService.deleteConnectorFromAction(intentId, button.__idConnector);
this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action});
} | /** onDeleteButton */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L338-L344 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onUpdateAndSaveAction | public async onUpdateAndSaveAction(element) {
this.logger.log('[ActionDTMFForm] onUpdateAndSaveAction:::: ', this.action, element);
// this.connectorService.updateConnector(this.intentSelected.intent_id);
this.updateAndSaveAction.emit(this.action);
} | /** onUpdateAndSaveAction:
* function called by all actions in @output whenever they are modified!
* 1 - update connectors
* 2 - update intent
* */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L352-L356 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onChangeIntentName | onChangeIntentName(name: string) {
name.toString();
try {
this.intentName = name.replace(/[^A-Z0-9_]+/ig, "");
} catch (error) {
this.logger.log('name is not a string', error)
}
} | /** onChangeIntentName */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L361-L368 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onBlurIntentName | onBlurIntentName(name: string) {
this.intentNameResult = true;
} | /** onBlurIntentName */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L371-L373 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onDisableInputMessage | onDisableInputMessage() {
try {
this.action.attributes.disableInputMessage = !this.action.attributes.disableInputMessage;
this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action});
} catch (error) {
this.logger.log("Error: ", error);
}
} | /** onDisableInputMessage */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L376-L383 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onOpenButtonPanel | onOpenButtonPanel(buttonSelected) {
this.logger.log('onOpenButtonPanel 2 :: ', buttonSelected);
// this.intentService.setIntentSelected(this.intentSelected.intent_id);
this.intentService.selectAction(this.intentSelected.intent_id, this.action._tdActionId);
this.controllerService.openButtonPanel(buttonSelected);
} | /** appdashboard-button-configuration-panel: onOpenButtonPanel */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L387-L392 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onSaveButton | onSaveButton(button) {
// this.logger.log('onSaveButton :: ', button, this.response);
// this.generateCommandsWithWaitOfElements();
} | /** appdashboard-button-configuration-panel: Save button */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L405-L408 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionVoiceComponent.onCloseButtonPanel | onCloseButtonPanel() {
this.logger.log('onCloseButtonPanel :: ');
this.openCardButton = false;
} | /** appdashboard-button-configuration-panel: Close button panel */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/cds-action-voice-base/cds-action-voice.component.ts#L413-L416 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onClickDelayTime | onClickDelayTime(opened: boolean){
this.canShowFilter = !opened;
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L61-L63 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onChangeDelayTime | onChangeDelayTime(value:number){
this.delayTime = value;
this.wait.time = value*1000;
this.canShowFilter = true;
this.changeActionReply.emit();
} | /** onChangeDelayTime */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L67-L72 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onChangeExpression | onChangeExpression(expression: Expression){
this.response._tdJSONCondition = expression;
this.filterConditionExist = expression && expression.conditions.length > 0? true : false;
this.changeActionReply.emit();
} | /** onChangeExpression */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L75-L79 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onDeleteActionReply | onDeleteActionReply(){
this.deleteActionReply.emit(this.index);
} | /** onDeleteActionReply */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L82-L84 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onMoveUpResponse | onMoveUpResponse(){
this.moveUpResponse.emit(this.index);
} | /** onMoveUpResponse */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L87-L89 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onMoveDownResponse | onMoveDownResponse(){
this.moveDownResponse.emit(this.index);
} | /** onMoveDownResponse */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L92-L94 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onChangeTextarea | onChangeTextarea(text:string) {
if(!this.previewMode){
this.response.metadata.src = text;
// this.response.metadata.name = text;
// this.changeActionReply.emit();
}
} | /** onChangeTextarea */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L97-L103 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onChangeMetadata | onChangeMetadata(metadata: Metadata){
this.response.metadata = metadata;
this.changeActionReply.emit();
} | /**onChangeMetadata */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L110-L113 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onDeletedMetadata | onDeletedMetadata(){
this.response.metadata.src = '';
this.response.metadata.name = '';
this.changeActionReply.emit();
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L116-L120 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyAudioComponent.onLoadPathElement | onLoadPathElement(){
//this.response.metadata.height = '1000px';
this.changeActionReply.emit();
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-audio/cds-action-reply-audio.component.ts#L123-L126 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplySettingsComponent.ngOnInit | ngOnInit(): void {
this.logger.debug("[ACTION REPLY SETTINGS] action detail: ", this.response);
this.subscriptionChangedConnector = this.intentService.isChangedConnector$.subscribe((connector: any) => {
this.logger.debug('[ACTION REPLY SETTINGS] isChangedConnector -->', connector);
let connectorId = this.idAction;
if(connector.fromId.startsWith(connectorId)){
this.connector = connector;
this.updateConnector();
}
});
this.initializeConnector();
} | // SYSTEM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts#L63-L74 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplySettingsComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts#L77-L81 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplySettingsComponent.initializeConnector | initializeConnector() {
this.idIntentSelected = this.idAction.split('/')[0];
this.idConnectorNoInput = this.idAction + '/noInput';
this.idConnectorNoMatch = this.idAction + '/noMatch';
this.idConnectorTrue = this.idAction + '/true';
this.idConnectorFalse = this.idAction + '/false';
this.listOfIntents = this.intentService.getListOfIntents();
this.checkConnectionStatus();
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts#L87-L95 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplySettingsComponent.onClickDelayTime | onClickDelayTime(opened: boolean){
// this.canShowFilter = !opened;
} | /** onClickDelayTime */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts#L193-L195 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplySettingsComponent.onChangeDelayTime | onChangeDelayTime(value:number, key: string){
if(key==='noInputIntent'){
this.response.noInputTimeout = value*1000;
}else{
this.response.incompleteSpeechTimeout = value*1000;
}
// this.canShowFilter = true;
this.changeActionReply.emit();
} | /** onChangeDelayTime */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts#L198-L206 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplySettingsComponent.onChangeTextarea | onChangeTextarea(text:string, key: string) {
if(!this.previewMode){
this.response[key] = text;
// this.changeActionReply.emit();
}
} | /** onChangeTextarea */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts#L209-L214 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.ngOnInit | ngOnInit(): void {
this.subscriptionChangedConnector = this.intentService.isChangedConnector$.subscribe((connector: any) => {
this.connector = connector;
this.updateConnector();
});
this.initialize();
['0','1', '2', '3', '4', '5', '6', '7', '8', '9', '*', '#'].forEach((el) => this.OPTIONS_ALLOWED.push({ label: el, icon: 'dialpad'}));
} | // SYSTEM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L72-L79 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L82-L86 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.initialize | private initialize(){
this.delayTime = (this.wait && this.wait.time || this.wait.time === 0)? (this.wait.time/1000) : 500/1000;
this.checkButtons();
this.buttons = this.intentService.patchButtons(this.buttons, this.idAction);
this.idIntent = this.idAction.split('/')[0];
if(this.response && this.response._tdJSONCondition && this.response._tdJSONCondition.conditions.length > 0){
this.filterConditionExist = true
}
} | // PRIVATE FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L94-L102 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.updateConnector | private updateConnector(){
try {
const array = this.connector.fromId.split("/");
const idButton = array[array.length - 1];
const idConnector = this.idAction+'/'+idButton;
const buttonChanged = this.buttons.find(obj => obj.uid === idButton);
if(idConnector === this.connector.fromId && buttonChanged){
this.logger.log('updateConnector [CdsActionReplyTextComponent]:: buttonChanged: ', this.connector, buttonChanged, this.buttons, idButton);
if(this.connector.deleted){
// DELETE
// this.logger.log('[CdsActionReplyTextComponent] deleteConnector :: ', this.connector);
buttonChanged.__isConnected = false;
buttonChanged.__idConnector = this.connector.fromId;
buttonChanged.__idConnection = null;
buttonChanged.action = '';
buttonChanged.type = TYPE_BUTTON.TEXT;
if(this.connector.save)this.updateAndSaveAction.emit(this.connector);
} else {
// ADD / EDIT
buttonChanged.__idConnector = this.connector.fromId;
buttonChanged.action = buttonChanged.action? buttonChanged.action : '#' + this.connector.toId;
buttonChanged.type = TYPE_BUTTON.ACTION;
// this.logger.log('[CdsActionReplyTextComponent] updateConnector :: ', buttonChanged);
if(!buttonChanged.__isConnected){
buttonChanged.__isConnected = true;
buttonChanged.__idConnection = this.connector.fromId+"/"+this.connector.toId;
// if(this.connector.notify)
// this.updateAndSaveAction.emit();
if(this.connector.save)this.updateAndSaveAction.emit(this.connector);
// this.changeActionReply.emit();
}
}
// this.changeActionReply.emit();
}
} catch (error) {
this.logger.error('error: ', error);
}
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L136-L174 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.onClickDelayTime | onClickDelayTime(opened: boolean){
this.canShowFilter = !opened;
} | /** onClickDelayTime */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L181-L183 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.onChangeDelayTime | onChangeDelayTime(value:number){
this.delayTime = value;
this.wait.time = value*1000;
this.canShowFilter = true;
this.changeActionReply.emit();
} | /** onChangeDelayTime */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L186-L191 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.onChangeExpression | onChangeExpression(expression: Expression){
this.response._tdJSONCondition = expression;
this.filterConditionExist = expression && expression.conditions.length > 0? true : false;
this.changeActionReply.emit();
} | /** onChangeExpression */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L194-L198 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.onDeleteActionReply | onDeleteActionReply(){
this.deleteActionReply.emit(this.index);
} | /** onDeleteActionReply */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L201-L203 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.onMoveUpResponse | onMoveUpResponse(){
this.moveUpResponse.emit(this.index);
} | /** onMoveUpResponse */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L206-L208 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.onMoveDownResponse | onMoveDownResponse(){
this.moveDownResponse.emit(this.index);
} | /** onMoveDownResponse */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L211-L213 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.onChangeTextarea | onChangeTextarea(text:string) {
if(!this.previewMode){
this.response.text = text;
// this.changeActionReply.emit();
}
} | /** onChangeTextarea */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L216-L221 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.onOpenButtonPanel | onOpenButtonPanel(button){
this.logger.log('[ACTION REPLY TEXT] onOpenButtonPanel ', button, this.response.attributes.attachment.buttons);
this.openButtonPanel.emit(button);
} | /** onOpenButtonPanel */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L234-L237 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.onButtonControl | onButtonControl(action: string, index: number ){
switch(action){
case 'delete': /** onDeleteButton */
this.deleteButton.emit({index: index, buttons: this.buttons});
break;
case 'moveLeft':
break;
case 'moveRight':
break;
case 'new': /** onCreateNewButton */
this.MENU_OPTIONS = this.OPTIONS_ALLOWED.filter((option)=> { return this.buttons.every((button) => button.value !== option.label )})
this.trigger.openMenu();
// this.createNewButton.emit(this.index);
break;
}
} | /** onButtonControl */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L281-L296 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionReplyVoiceTextComponent.dropButtons | dropButtons(event: CdkDragDrop<string[]>) {
moveItemInArray(this.buttons, event.previousIndex, event.currentIndex);
this.connectorService.updateConnector(this.idIntent);
this.changeActionReply.emit();
} | /** dropButtons */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list-voice/elements/cds-action-reply-voice-text/cds-action-reply-voice-text.component.ts#L304-L308 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionAddTagComponent.onChangeCheckbox | async onChangeCheckbox(event, target){
try {
this.action[target] = !this.action[target];
this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action});
} catch (error) {
this.logger.log("Error: ", error);
}
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-add-tag/cds-action-add-tag.component.ts#L100-L107 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionAddTagComponent.onBlur | onBlur(){
this.updateAndSaveAction.emit();
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-add-tag/cds-action-add-tag.component.ts#L138-L140 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionAskgptV2Component.initializeConnector | initializeConnector() {
this.idIntentSelected = this.intentSelected.intent_id;
this.idConnectorTrue = this.idIntentSelected+'/'+this.action._tdActionId + '/true';
this.idConnectorFalse = this.idIntentSelected+'/'+this.action._tdActionId + '/false';
this.listOfIntents = this.intentService.getListOfIntents();
this.checkConnectionStatus();
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-askgpt-v2/cds-action-askgpt-v2.component.ts#L125-L131 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionAskgptV2Component.patchActionsKey | private patchActionsKey(){
if(!this.action.hasOwnProperty('top_k')){
this.action.top_k = 5;
}
if(!this.action.hasOwnProperty('max_tokens')){
this.action.max_tokens = 256;
}
if(!this.action.hasOwnProperty('temperature')){
this.action.temperature = 0.7;
}
} | /** TO BE REMOVED: patch undefined action keys */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-askgpt-v2/cds-action-askgpt-v2.component.ts#L236-L246 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionAskgptComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-askgpt/cds-action-askgpt.component.ts#L95-L99 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionAskgptComponent.checkConnectionStatus | private checkConnectionStatus(){
if(this.action.trueIntent){
this.isConnectedTrue = true;
const posId = this.action.trueIntent.indexOf("#");
if (posId !== -1) {
const toId = this.action.trueIntent.slice(posId+1);
this.idConnectionTrue = this.idConnectorTrue+"/"+toId;
}
} else {
this.isConnectedTrue = false;
this.idConnectionTrue = null;
}
if(this.action.falseIntent){
this.isConnectedFalse = true;
const posId = this.action.falseIntent.indexOf("#");
if (posId !== -1) {
const toId = this.action.falseIntent.slice(posId+1);
this.idConnectionFalse = this.idConnectorFalse+"/"+toId;
}
} else {
this.isConnectedFalse = false;
this.idConnectionFalse = null;
}
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-askgpt/cds-action-askgpt.component.ts#L128-L151 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionAskgptComponent.goToKNB | goToKNB(){
let url = this.appConfigService.getConfig().dashboardBaseUrl + '#/project/' + this.project_id +'/knowledge-bases'
window.open(url, '_blank')
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-askgpt/cds-action-askgpt.component.ts#L313-L316 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | OperandV2Component.createOperandGroup | private createOperandGroup(): FormGroup {
return this.formBuild.group({
value: ['', Validators.required],
isVariable: [false],
function: [null, Validators.nullValidator]
})
} | //to do validate form | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-assign-variable-v2/operand/operand.component.ts#L54-L60 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | OperandV2Component.onChangeTextArea | onChangeTextArea(text: string) {
// if(text && text.match(new RegExp(/(?<=\{\{)(.*)(?=\}\})/g))){
// text = text.replace(text, text.match(new RegExp(/(?<=\{\{)(.*)(?=\}\})/g))[0]);
// this.operandForm.get('value').setValue(text);
// this.operandForm.get('isVariable').setValue(true);
// this.onChangeOperand.emit(this.operand)
// }
// if(text){
// this.onChangeOperand.emit(this.operand)
// }
} | /** START EVENTS TEXTAREA **/ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-assign-variable-v2/operand/operand.component.ts#L63-L73 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | OperandV2Component.onChangeIsCheckbox | onChangeIsCheckbox(event){
this.operandForm.get('isVariable').setValue(event.checked);
this.onChangeOperand.emit(this.operand)
} | /** END EVENTS TEXTAREA */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-assign-variable-v2/operand/operand.component.ts#L93-L96 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | OperandComponent.createOperandGroup | private createOperandGroup(): FormGroup {
return this.formBuild.group({
value: ['', Validators.required],
isVariable: [false],
function: [null, Validators.nullValidator]
})
} | //to do validate form | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-assign-variable/operand/operand.component.ts#L55-L61 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | OperandComponent.onChangeTextArea | onChangeTextArea(text: string) {
// if(text && text.match(new RegExp(/(?<=\{\{)(.*)(?=\}\})/g))){
// text = text.replace(text, text.match(new RegExp(/(?<=\{\{)(.*)(?=\}\})/g))[0]);
// this.operandForm.get('value').setValue(text);
// this.operandForm.get('isVariable').setValue(true);
// this.onChangeOperand.emit(this.operand)
// }
// if(text){
// this.onChangeOperand.emit(this.operand)
// }
} | /** START EVENTS TEXTAREA **/ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-assign-variable/operand/operand.component.ts#L64-L74 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | OperandComponent.onSelectedFunction | onSelectedFunction(event: any) {
if(event){
this.operandForm.get('function').setValue(event.value);
} else {
this.operandForm.get('function').setValue(null);
}
this.onChangeOperand.emit(this.operand)
} | /** END EVENTS TEXTAREA */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-assign-variable/operand/operand.component.ts#L94-L101 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionBrevoComponent.ngOnInit | ngOnInit(): void {
this.logger.debug("[ACTION-BREVO] action detail: ", this.action);
this.subscriptionChangedConnector = this.intentService.isChangedConnector$.subscribe((connector: any) => {
this.logger.debug('[ACTION-BREVO] isChangedConnector -->', connector);
this.connector = connector;
this.updateConnector();
});
this.initialize();
} | // SYSTEM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-brevo/cds-action-brevo.component.ts#L60-L68 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionBrevoComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-brevo/cds-action-brevo.component.ts#L71-L75 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionBrevoComponent.initialize | private initialize(){
this.initializeAttributes();
this.jsonParameters = this.action.bodyParameters;
if(this.intentSelected){
this.initializeConnector();
}
} | // CUSTOM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-brevo/cds-action-brevo.component.ts#L138-L144 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionBrevoComponent.onChangeTextarea | onChangeTextarea(e, type){
this.logger.log('type; ', type);
} | // EVENT FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-brevo/cds-action-brevo.component.ts#L165-L167 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionCaptureUserReplyComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-capture-user-reply/cds-action-capture-user-reply.component.ts#L54-L58 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionConnectBlockComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-connect-block/cds-action-connect-block.component.ts#L53-L57 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionCustomerioComponent.ngOnInit | ngOnInit(): void {
this.logger.debug("[ACTION-CUSTOMERIO] action detail: ", this.action);
this.subscriptionChangedConnector = this.intentService.isChangedConnector$.subscribe((connector: any) => {
this.logger.debug('[ACTION-CUSTOMERIO] isChangedConnector -->', connector);
this.connector = connector;
this.updateConnector();
});
this.initialize();
} | // SYSTEM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-customerio/cds-action-customerio.component.ts#L60-L68 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionCustomerioComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-customerio/cds-action-customerio.component.ts#L71-L75 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionCustomerioComponent.initialize | private initialize(){
this.initializeAttributes();
this.jsonParameters = this.action.bodyParameters;
if(this.intentSelected){
this.initializeConnector();
}
} | // CUSTOM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-customerio/cds-action-customerio.component.ts#L138-L144 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionCustomerioComponent.onChangeTextarea | onChangeTextarea(e, type){
this.logger.log('type; ', type);
switch(type){
// case 'token' : {
// this.action.token = e;
// this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action});
// }
// break;
case 'formid' : {
this.action.formid = e;
this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action});
this.logger.log("[ACTION-CUSTOMERIO] this.action", this.action);
}
break;
}
} | // EVENT FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-customerio/cds-action-customerio.component.ts#L162-L178 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionDescriptionComponent.onChangeText | onChangeText(text: string){
this.logger.log('[ActionDescriptionComponent] onChangeText:: ', text);
this.actionSelected._tdActionTitle = text;
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.ts#L81-L84 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionEmailComponent.onChangeActionButton | onChangeActionButton(event) {
//this.logger.log("event: ", event)
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-email/cds-action-email.component.ts#L61-L63 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionGPTTaskComponent.openAttributesDialog | openAttributesDialog() {
this.logger.log("temp_variables: ", this.temp_variables);
const dialogRef = this.dialog.open(AttributesDialogComponent, {
panelClass: 'custom-setattribute-dialog-container',
data: { attributes: this.temp_variables, question: this.action.question }
});
dialogRef.afterClosed().subscribe(result => {
this.logger.log("AttributesDialogComponent result: ", result);
if (result !== false) {
this.getResponse(result.question);
this.saveAttributes(result.attributes);
}
});
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-gpt-task/cds-action-gpt-task.component.ts#L518-L531 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionHubspotComponent.ngOnInit | ngOnInit(): void {
this.logger.debug("[ACTION-HUBSPOT] action detail: ", this.action);
this.subscriptionChangedConnector = this.intentService.isChangedConnector$.subscribe((connector: any) => {
this.logger.debug('[ACTION-HUBSPOT] isChangedConnector -->', connector);
let connectorId = this.idIntentSelected+"/"+this.action._tdActionId;
if(connector.fromId.startsWith(connectorId)){
this.connector = connector;
this.updateConnector();
}
});
this.initialize();
} | // SYSTEM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-hubspot/cds-action-hubspot.component.ts#L58-L69 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionHubspotComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-hubspot/cds-action-hubspot.component.ts#L72-L76 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionHubspotComponent.initialize | private initialize(){
this.initializeAttributes();
this.jsonParameters = this.action.bodyParameters;
if(this.intentSelected){
this.initializeConnector();
}
} | // CUSTOM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-hubspot/cds-action-hubspot.component.ts#L139-L145 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionHubspotComponent.onChangeTextarea | onChangeTextarea(e, type: string){
switch(type){
case 'token' : {
this.action.token = e;
this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action});
this.logger.log("[ACTION-HUBSPOT] this.action", this.action);
}
}
} | // EVENT FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-hubspot/cds-action-hubspot.component.ts#L163-L171 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionIntentComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-intent/cds-action-intent.component.ts#L57-L61 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionJsonConditionComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.ts#L67-L71 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionJsonConditionComponent.initializeConnector | private initializeConnector() {
this.idIntentSelected = this.intentSelected.intent_id;
this.idConnectorTrue = this.idIntentSelected+'/'+this.action._tdActionId + '/true';
this.idConnectorFalse = this.idIntentSelected+'/'+this.action._tdActionId + '/false';
this.listOfIntents = this.intentService.getListOfIntents();
this.checkConnectionStatus();
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.ts#L85-L91 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionJsonConditionComponent.checkConnectionStatus | private checkConnectionStatus(){
if(this.action.trueIntent){
this.isConnectedTrue = true;
const posId = this.action.trueIntent.indexOf("#");
if (posId !== -1) {
const toId = this.action.trueIntent.slice(posId+1);
this.idConnectionTrue = this.idConnectorTrue+"/"+toId;
}
} else {
this.isConnectedTrue = false;
this.idConnectionTrue = null;
}
if(this.action.falseIntent){
this.isConnectedFalse = true;
const posId = this.action.falseIntent.indexOf("#");
if (posId !== -1) {
const toId = this.action.falseIntent.slice(posId+1);
this.idConnectionFalse = this.idConnectorFalse+"/"+toId;
}
} else {
this.isConnectedFalse = false;
this.idConnectionFalse = null;
}
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/cds-action-json-condition.component.ts#L106-L129 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | BaseConditionRowComponent.onChangeTextArea | onChangeTextArea(text: string){
this.logger.log('textttt', text, text.match(new RegExp(/(?<=\{\{)(.*)(?=\}\})/g)));
if(text){
this.disableSubmit = false;
this.setAttributeBtnOperand2 = false;
}else{
this.disableSubmit = true;
this.setAttributeBtnOperand2 = true;
}
if(text && text.match(new RegExp(/(?<=\{\{)(.*)(?=\}\})/g))){
text.match(new RegExp(/(?<=\{\{)(.*)(?=\}\})/g)).forEach(match => {
text = text.replace(text,match)
this.conditionForm.patchValue({ operand2: {type: 'const', name: text}}, {emitEvent: false})
});
}
} | /** START EVENTS cds-textarea **/ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.ts#L84-L99 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | BaseConditionRowComponent.onClearInput | onClearInput(){
this.conditionForm.patchValue({ operand2: {type: 'const', name: '', value: ''}}, {emitEvent: false})
} | /** END EVENTS cds-textarea **/ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-json-condition/base-condition-row/base-condition-row.component.ts#L127-L129 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionMakeComponent.ngOnInit | ngOnInit(): void {
this.logger.debug("[ACTION-MAKE] action detail: ", this.action, ACTIONS_LIST["MAKE"].plan);
this.subscriptionChangedConnector = this.intentService.isChangedConnector$.subscribe((connector: any) => {
this.logger.debug('[ACTION-MAKE] isChangedConnector -->', connector);
let connectorId = this.idIntentSelected+"/"+this.action._tdActionId;
if(connector.fromId.startsWith(connectorId)){
this.connector = connector;
this.updateConnector();
}
});
this.initialize();
} | // SYSTEM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-make/cds-action-make.component.ts#L60-L71 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionMakeComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-make/cds-action-make.component.ts#L74-L78 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionMakeComponent.checkConnectionStatus | private checkConnectionStatus(){
if(this.action.trueIntent){
this.isConnectedTrue = true;
const posId = this.action.trueIntent.indexOf("#");
if (posId !== -1) {
const toId = this.action.trueIntent.slice(posId+1);
this.idConnectionTrue = this.idConnectorTrue+"/"+toId;
}
} else {
this.isConnectedTrue = false;
this.idConnectionTrue = null;
}
if(this.action.falseIntent){
this.isConnectedFalse = true;
const posId = this.action.falseIntent.indexOf("#");
if (posId !== -1) {
const toId = this.action.falseIntent.slice(posId+1);
this.idConnectionFalse = this.idConnectorFalse+"/"+toId;
}
} else {
this.isConnectedFalse = false;
this.idConnectionFalse = null;
}
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-make/cds-action-make.component.ts#L94-L117 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionMakeComponent.initialize | private initialize(){
this.initializeAttributes();
this.jsonParameters = this.action.bodyParameters;
if(this.intentSelected){
this.initializeConnector();
}
} | // CUSTOM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-make/cds-action-make.component.ts#L169-L175 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionMakeComponent.onChangeTextarea | onChangeTextarea(e, type: 'url'){
switch(type){
case 'url' : {
this.action.url = e;
this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action});
this.logger.log("[ACTION MAKE] this.action", this.action);
}
}
} | // EVENT FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-make/cds-action-make.component.ts#L196-L205 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionN8nComponent.ngOnInit | ngOnInit(): void {
this.logger.debug("[ACTION-N8N] action detail: ", this.action);
this.subscriptionChangedConnector = this.intentService.isChangedConnector$.subscribe((connector: any) => {
this.logger.debug('[ACTION-N8N] isChangedConnector -->', connector);
this.connector = connector;
this.updateConnector();
});
this.initialize();
} | // SYSTEM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-n8n/cds-action-n8n.component.ts#L60-L68 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionN8nComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-n8n/cds-action-n8n.component.ts#L71-L75 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionN8nComponent.initialize | private initialize(){
this.initializeAttributes();
this.jsonParameters = this.action.bodyParameters;
if(this.intentSelected){
this.initializeConnector();
}
} | // CUSTOM FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-n8n/cds-action-n8n.component.ts#L138-L144 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionN8nComponent.onChangeTextarea | onChangeTextarea(e, type: 'url'){
this.logger.log('type; ', type);
switch(type){
case 'url' : {
this.action.url = e;
this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action});
this.logger.log("[ACTION N8N] this.action", this.action);
}
}
} | // EVENT FUNCTIONS // | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-n8n/cds-action-n8n.component.ts#L165-L174 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionOnlineAgentsV2Component.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents-v2/cds-action-online-agents.component.ts#L70-L74 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionOnlineAgentsV2Component.initialize | private initialize() {
this.actionOnlineAgentsFormGroup = this.buildForm();
this.actionOnlineAgentsFormGroup.valueChanges.subscribe(form => {
this.logger.log('[ACTION-ONLINE-AGENT] form valueChanges-->', form)
if (form && (form.trueIntent !== ''))
this.action = Object.assign(this.action, this.actionOnlineAgentsFormGroup.value);
})
this.trueIntentAttributes = this.action.trueIntentAttributes;
this.falseIntentAttributes = this.action.falseIntentAttributes;
if(this.intentSelected){
this.initializeConnector();
}
if (this.action && this.action.trueIntent) {
this.setFormValue();
}
this.departments = this.dashboardService.departments
//FIX: if chatbot is imported from other env/project --> reset selectedDepartmentId
if(this.action.selectedDepartmentId){
let actionDepIndex = this.departments.findIndex(dep => dep._id === this.action.selectedDepartmentId)
if(actionDepIndex === -1){
this.action.selectedDepartmentId = null;
}
}
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents-v2/cds-action-online-agents.component.ts#L87-L112 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionOnlineAgentsV2Component.onStopConditionMeet | onStopConditionMeet() {
try {
this.action.stopOnConditionMet = !this.action.stopOnConditionMet;
} catch (error) {
this.logger.log("Error: ", error);
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents-v2/cds-action-online-agents.component.ts#L274-L280 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionOnlineAgentsComponent.ngOnDestroy | ngOnDestroy() {
if (this.subscriptionChangedConnector) {
this.subscriptionChangedConnector.unsubscribe();
}
} | /** */ | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.ts#L60-L64 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
design-studio | github_2023 | Tiledesk | typescript | CdsActionOnlineAgentsComponent.initialize | private initialize() {
this.actionOnlineAgentsFormGroup = this.buildForm();
this.actionOnlineAgentsFormGroup.valueChanges.subscribe(form => {
this.logger.log('[ACTION-ONLINE-AGENT] form valueChanges-->', form)
if (form && (form.trueIntent !== ''))
this.action = Object.assign(this.action, this.actionOnlineAgentsFormGroup.value);
})
this.trueIntentAttributes = this.action.trueIntentAttributes;
this.falseIntentAttributes = this.action.falseIntentAttributes;
if(this.intentSelected){
this.initializeConnector();
}
if (this.action && this.action.trueIntent) {
this.setFormValue();
}
} | // } | https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.ts#L77-L92 | 297d30da01d98a1299e7197eb88cff5b2390a386 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.