Skip to content

Commit

Permalink
Removes log
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Lanzilotto committed Apr 16, 2024
1 parent 85962bd commit 14afb15
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/app/app-store/app-store.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,14 @@ export class AppStoreComponent extends PricingBaseComponent implements OnInit, O
getApps() {
this.appStoreService.getApps().subscribe((_apps: any) => {
this.apps = _apps.apps;
console.log('APP-STORE - getApps APPS ', this.apps);
this.logger.log('APP-STORE - getApps APPS ', this.apps);



// 'Help Center'
let paidApps = ['WhatsApp Business', 'Facebook Messenger', 'Telegram']
this.apps = this.apps.filter(x => !paidApps.includes(x.title));
console.log('APP-STORE - getApps APPS ', this.apps)
this.logger.log('APP-STORE - getApps APPS ', this.apps)


const sendTranscriptAppIndex = this.apps.findIndex(object => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export class ChatbotModalComponent implements OnInit {
) {
this.logger.log('[CHATBOT-MODAL] data ', data)
if (data && data.projectProfile && data.chatBotLimit != 0) {
console.log('[CHATBOT-MODAL] projectProfile ', data.projectProfile , ' USECASE chatBotLimit ', data.chatBotLimit)
this.logger.log('[CHATBOT-MODAL] projectProfile ', data.projectProfile , ' USECASE chatBotLimit ', data.chatBotLimit)
this.getTranslatedStringChatbotLimitReached(data.projectProfile)
} else if (data && data.projectProfile && data.chatBotLimit == 0) {
console.log('[CHATBOT-MODAL] projectProfile ', data.projectProfile , ' USECASE chatBotLimit ', data.chatBotLimit)
this.logger.log('[CHATBOT-MODAL] projectProfile ', data.projectProfile , ' USECASE chatBotLimit ', data.chatBotLimit)
this.getTranslatedStringChatbotAreNotAvailableInYourCurrentPlan()
}
if (data && data.callingPage) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class MessagesStatsModalComponent implements OnInit {
}]
})
}, (error) => {
console.error('[CHATBOT-STATS-MODALl] »» MESSAGES BY DAY - ERROR ', error);
this.logger.error('[CHATBOT-STATS-MODALl] »» MESSAGES BY DAY - ERROR ', error);
this.showSpinner = false
}, () => {
this.logger.log('[CHATBOT-STATS-MODALl] »» MESSAGES BY DAY - * COMPLETE * ');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class ConfigureWidgetComponent extends WidgetSetUpBaseComponent implement

// this.widgetLogoURL = brand['widget_logo_URL']
this.widgetLogoURL = brand['LOGO_CHAT'];
console.log('[WIZARD - CONFIGURE-WIDGET] widgetLogoURL ', this.widgetLogoURL)
this.logger.log('[WIZARD - CONFIGURE-WIDGET] widgetLogoURL ', this.widgetLogoURL)
}

ngOnInit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export class HomeCreateChatbotComponent extends PricingBaseComponent implements
}

createBlankTilebot() {
console.log('[HOME-CREATE-CHATBOT] createBlankTilebot chatBotCount ', this.countOfChatbots, ' chatBotLimit ', this.chatBotLimit, ' PROJECT PLAN ', this.profile_name)
this.logger.log('[HOME-CREATE-CHATBOT] createBlankTilebot chatBotCount ', this.countOfChatbots, ' chatBotLimit ', this.chatBotLimit, ' PROJECT PLAN ', this.profile_name)


if (this.USER_ROLE !== 'agent') {
Expand Down
6 changes: 3 additions & 3 deletions src/app/integrations/integrations.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ export class IntegrationsComponent implements OnInit, OnDestroy {
this.customization = projectProfileData.customization;
await this.getApps();
//this.manageTelegramVisibility(projectProfileData);
console.log("app retrieved")
this.logger.log("app retrieved")
this.manageAppVisibility(projectProfileData)
this.getIntegrations();
}
}, (error) => {
console.error("err: ", error);
this.logger.error("err: ", error);
})
}

Expand Down Expand Up @@ -272,7 +272,7 @@ export class IntegrationsComponent implements OnInit, OnDestroy {
resolve(true);

}, (error) => {
console.error("--> error getting apps: ", error)
this.logger.error("--> error getting apps: ", error)
})
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,35 @@ export class ExtIntegrationComponent implements OnInit {
) { }

ngOnInit(): void {
console.log("Starting External App Integration");
this.logger.log("Starting External App Integration");


}

ngOnChanges(): void {

this.showSpinner = true;
console.log("id_project: ", this.id_project);
console.log("renderUlr: ", this.renderUrl);
this.logger.log("id_project: ", this.id_project);
this.logger.log("renderUlr: ", this.renderUrl);

this.auth.user_bs.subscribe((user) => {
if (user) {
this.TOKEN = user.token

this.URL = this.sanitizer.bypassSecurityTrustResourceUrl(this.renderUrl + "?project_id=" + this.id_project + "&token=" + this.TOKEN);
console.log("URL: ", this.URL);
this.logger.log("URL: ", this.URL);

//this.getIframeHasLoaded();


} else {
console.log("Get user token failed")
this.logger.log("Get user token failed")
}
});
}

onIframeLoaded() {
console.log("onIframeLoaded")
this.logger.log("onIframeLoaded")
this.showSpinner = false;
}

Expand Down
8 changes: 4 additions & 4 deletions src/app/pricing/pricing-base/pricing-base.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ export class PricingBaseComponent implements OnInit {
// Chatbot limit
// this.chatBotLimit = CHATBOT_MAX_NUM[PLAN_NAME.E]
this.chatBotLimit = projectProfileData.profile_chatbots;
console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - CHATBOTS LIMIT FROM DB ', this.chatBotLimit)
// console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - CHATBOTS LIMIT FROM DB ', this.chatBotLimit)
if (this.chatBotLimit === null || this.chatBotLimit === undefined) {
this.chatBotLimit = CHATBOT_MAX_NUM[PLAN_NAME.E]
console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - CHATBOTS DEFAULT LIMIT ', this.chatBotLimit)
// console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - CHATBOTS DEFAULT LIMIT ', this.chatBotLimit)
}

this.tParamsPlanAndChatBot = { plan_name: this.prjct_profile_name, allowed_cb_num: this.chatBotLimit }
Expand All @@ -198,10 +198,10 @@ export class PricingBaseComponent implements OnInit {
// Kb contents Limit
// this.kbLimit = KB_MAX_NUM[PLAN_NAME.E]
this.kbLimit = projectProfileData.profile_kbs;
console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - KB LIMIT FROM DB ', this.kbLimit)
// console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - KB LIMIT FROM DB ', this.kbLimit)
if (this.kbLimit === null || this.kbLimit === undefined) {
this.kbLimit = KB_MAX_NUM[PLAN_NAME.E]
console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - KB DEFAULT LIMIT ', this.kbLimit)
// console.log('[P-BASE] - SANDBOX (TRIAL ACTIVE) - KB DEFAULT LIMIT ', this.kbLimit)
}


Expand Down

0 comments on commit 14afb15

Please sign in to comment.