Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lab5 [2024/12/22 16:31] – created gerardorourkelab5 [2024/12/24 10:59] (current) – [cce 12.6] gerardorourke
Line 4: Line 4:
   *[[https://www.cisco.com/c/en/us/support/customer-collaboration/cisco-enterprise-chat-email/products-installation-guides-list.html|Cisco ECE 12]]   *[[https://www.cisco.com/c/en/us/support/customer-collaboration/cisco-enterprise-chat-email/products-installation-guides-list.html|Cisco ECE 12]]
  
-===== UCCE 12 =====+===== cce 12.6 =====
  
-^ Description        ^ Hostname                             ^ IP             ^ RDP                                          ^ SSH                                                                                                       ^ -                                                                                                                                                                    ^ -                                                             ^ -                                                                  ^ -                                                                                               |   | +^ Description  ^ Hostname                     ^ IP           ^ RDP                                      ^ SSH                                                                                                      ^ -                                                                                                                          ^ -                                                              ^ -                                                                       ^ -                                                                                      |   | 
-| AD                 lab2-ad-01.lab2.purplepi.ie          192.168.1.231  | [[rdp>lab2-ad-01.lab2.purplepi.ie|RDP]]                                                                                                                | [[http://lab2-ad-01.lab2.purplepi.ie/certsrv/|Cert Admin]]                                                                                                           | [[http://lab2-ad-01.lab2.purplepi.ie|SplashPage]]                                                                                                                                                                                |   | +| AD           lab5-ad-1.lab5.purplepi.ie   10.55.1.201  | [[rdp>lab5-ad-1.lab5.purplepi.ie|RDP]]                                                                                                            | [[http://lab5-ad-1.lab5.purplepi.ie/certsrv/|Cert Admin]]                                                                  | [[http://lab5-ad-1.lab5.purplepi.ie|SplashPage]]                                                                                                                                                                              |   | 
-Finesse            ucce-finesse-a.lab2.purplepi.ie      192.168.1.237  | n/a                                          | [[ssh>ucce-finesse-a.lab2.purplepi.ie|ssh]]                                                               | [[https://ucce-finesse-a.lab2.purplepi.ie/desktop/|Agent Login| [[https://ucce-finesse-a.lab2.purplepi.ie/cfadmin|Admin]]     | [[https://ucce-finesse-a.lab2.purplepi.ie/finesse/logs/|Logs]]     | [[https://ucce-finesse-a.lab2.purplepi.ie:8443/cmplatform|OS Platform]]                         | [[https://ucce-finesse-a.lab2.purplepi.ie//desktop/assets/js/doc/index.html|API Docs]] +fin      cce-fin-a.lab5.purplepi.ie   10.55.1.210  | n/a                                      | [[ssh>cce-fin-a.lab5.purplepi.ie|ssh]]                                                               | [[https://cce-fin-a.lab5.purplepi.ie/desktop/|Agent Login]]| [[https://cce-fin-a.lab5.purplepi.ie/cfadmin|Admin]]  | [[https://cce-fin-a.lab5.purplepi.ie/fin/logs/|Logs]]  | [[https://cce-fin-a.lab5.purplepi.ie:8443/cmplatform|OS Platform]]  | [[https://cce-fin-a.lab5.purplepi.ie//desktop/assets/js/doc/index.html|API Docs]]  |   
-UCCE AW-HDS-DDS    ucce-hds-a.lab2.purplepi.ie          192.168.1.234  | [[rdp>ucce-hds-a.lab2.purplepi.ie|RDP]]      n/a                                                                                                       | [[https://ucce-hds-a.lab2.purplepi.ie:7890/icm-dp/rest/DiagnosticPortal/GetMenuPortico|CCE Portico]]                                                                 [[https://ucce-hds-a.lab2.purplepi.ie/cceadmin/|Admin]]                                                                                                                                                                          |   | +Rogger       cce-rgr-a.lab5.purplepi.ie   10.55.1.202  | [[rdp>cce-rgr-a.lab5.purplepi.ie|RDP]]                                                                                                            | [[https://cce-rgr-a.lab5.purplepi.ie:7890/icm-dp/DiagnosticPortal/|CCE Portico]]                                                                                                                                                                                                                                                                         |   | 
-UCCE-CUIC-A        ucce-cuic-a.lab2.purplepi.ie         192.168.1.238  | n/a                                          | [[ssh>ucce-cuic-a.lab2.purplepi.ie|SSH]]                                                                  http://ucce-cuic-a.lab2.purplepi.ie                                                                                                                                  | [[https://ucce-cuic-a.lab2.purplepi.ie:8443/oamp|OAMP]]       | [[https://ucce-cuic-a.lab2.purplepi.ie:8553/idsadmin/|IDS Admin]]                                                                                                  |   | +AW-HDS-DDS   cce-aw-a.lab5.purplepi.ie    10.55.1.203  | [[rdp>cce-aw-a.lab5.purplepi.ie|RDP]]    n/a                                                                                                      | [[https://cce-aw-a.lab5.purplepi.ie:7890/icm-dp/DiagnosticPortal/||CCE Portico]]                                           | [[https://cce-aw-a.lab5.purplepi.ie/cceadmin/|Admin]]                                                                                  |                                                                                        |   | 
-CVP                ucce-cvp-1a.lab2.purplepi.ie         192.168.1.235  | [[rdp>ucce-cvp-1a.lab2.purplepi.ie|RDP]]     | [[https://ucce-cvp-1a.lab2.purplepi.ie:8111/cvp-dp/rest/DiagnosticPortal/GetProductVersion|CVP WSM API]]  [[http://ucce-cvp-1a.lab2.purplepi.ie:8000/cvp/diag|CVP Diagnostics]]                                                                                                [[https://ucce-cvp-1a.lab2.purplepi.ie:9443/oamp/|OAMP]]                                                                                                                                                                         |   | +PG           cce-pg-a.lab5.purplepi.ie    10.55.1.204  | [[rdp>cce-pg-a.lab5.purplepi.ie|RDP]]    | n/a                                                                                                      | [[https://cce-pg-a.lab5.purplepi.ie:7890/icm-dp/DiagnosticPortal/||CCE Portico]]                                                                                                                                                                                                                                                                         |   | 
-CUCM               uc-cucm12-a.lab2.purplepi.ie         192.168.1.236  | n/a                                          | [[ssh>uc-cucm12-a.lab2.purplepi.ie|SSH]]                                                                  | [[http://uc-cucm12-a.lab2.purplepi.ie|Web Admin]]                                                                                                                    |                                                                                                                                  |                                                                                                   | +cce-CUIC-A   cce-cuic-a.lab5.purplepi.ie               | n/a                                      | [[ssh>cce-cuic-a.lab5.purplepi.ie|SSH]]                                                                  | http://cce-cuic-a.lab5.purplepi.ie                                                                                         | [[https://cce-cuic-a.lab5.purplepi.ie:8443/oamp|OAMP]]         | [[https://cce-cuic-a.lab5.purplepi.ie:8553/idsadmin/|IDS Admin]]                                                                                               |   | 
-| VVB                | UCCE-VVB-A.lab2.purplepi.ie          | 192.168.1.239  | n/a                                          | [[ssh>UCCE-VVB-A.lab2.purplepi.ie|SSH]]                                                                   | [[http://UCCE-VVB-A.lab2.purplepi.ie|Web Admin]]                                                                                                                                                                                   |                                                                    |                                                                                                 |   | +CVP          cce-cvp-1a.lab5.purplepi.ie  |              | [[rdp>cce-cvp-1a.lab5.purplepi.ie|RDP]]  | [[https://cce-cvp-1a.lab5.purplepi.ie:8111/cvp-dp/rest/DiagnosticPortal/GetProductVersion|CVP WSM API]]  | [[http://cce-cvp-1a.lab5.purplepi.ie:8000/cvp/diag|CVP Diagnostics]]                                                       | [[https://cce-cvp-1a.lab5.purplepi.ie:9443/oamp/|OAMP]]                                                                                                                                                                       |   | 
-ASR                | nuance-asr.lab2.purplepi.ie          192.168.1.244  | n/a                                          | [[rdp>nuance-asr.lab2.purplepi.ie|RDP]]                                                                                                                                                                                                                                        |                                                                                                                                  |                                                                                                   | +CUCM         cce-cucm-a.lab5.purplepi.ie  10.55.1.212  n/a                                      | [[ssh>cce-cucm-a.lab5.purplepi.ie|SSH]]                                                                  | [[http://cce-cucm-a.lab5.purplepi.ie|Web Admin]]                                                                                                                                                                                                                                                                                                         |   | 
-| ECE                | ucce-ece-db-12.lab2.purplepi.ie      | 192.168.1.245  | [[rdp>ucce-ece-db-12.lab2.purplepi.ie|RDP]]  [[https://ucce-ece-db-12.lab2.purplepi.ie/system/web/apps/admin/login| Gadget]]                          | [[http://ucce-ece-db-12.lab2.purplepi.ie/system/templates/chat/aqua/index.html?subActivity=Chat&entryPointId=1001&templateName=aqua&ver=v11&locale=en-US|CHAT URL]]  | [[http://ucce-ece-db-12.lab2.purplepi.ie/system|ECE System]]  | [[http://ucce-ece-db-12.lab2.purplepi.ie/default|ECE Default]]     | [[https://ucce-ece-db-12.lab2.purplepi.ie/system/web/apps/login/|Agent Desktop - Non Finesse]]  |   | +VVB          cce-VVB-A.lab5.purplepi.ie                n/a                                      | [[ssh>cce-VVB-A.lab5.purplepi.ie|SSH]]                                                                   | [[http://cce-VVB-A.lab5.purplepi.ie|Web Admin]]                                                                                                                                                                                                                                                                                                          |   |
-Attendant Console  w2012r2-01.lab2.purplepi.ie          192.168.1.222                                                                                                                                                         | [[https://w2012r2-01.lab2.purplepi.ie/webadmin/|Web Admin]]                                                                                                          |                                                                                                                                  |                                                                                                   | +
-| Redbox 1           | redbox1.lab2.purplepi.ie             | 192.168.1.213  | [[rdp>redbox1.lab2.purplepi.ie|RDP]]         |                                                                                                           | [[http://redbox1.lab2.purplepi.ie/|Web Admin]]                                                                                                                                                                                                                                                                                                                                                        |   | +
-UCCX               https://uc-uccx-a.lab2.purplepi.ie/                                                              | [[ssh>uc-uccx-a.lab2.purplepi.ie/|SSH UCCX]]                                                              | [[https://uc-uccx-a.lab2.purplepi.ie/|UCCX Web Admin]]                                                                                                                                                                                                                                                                                                                                                |   |+
  
-===== CCE 12 Beta ===== 
- 
-^ Description        ^ Hostname                         ^ IP             ^ RDP                                          ^ SSH                                          ^ -                                                                                                                                                                    ^ -                                                             ^ -                                                                  ^ -                                                                                                 | 
-| Finesse            | ucce-finesse-beta.lab2.purplepi.ie  | 192.168.1.137  | n/a                                          | [[ssh>ucce-finesse-beta.lab2.purplepi.ie|ssh]]  | [[https://ucce-finesse-beta.lab2.purplepi.ie/desktop/|Agent Login]]                                                                                                     | [[https://ucce-finesse-beta.lab2.purplepi.ie/cfadmin|Admin]]     | [[https://ucce-finesse-beta.lab2.purplepi.ie/finesse/logs/|Logs]]     | [[https://ucce-finesse-beta.lab2.purplepi.ie:8443/cmplatform|OS Platform]]                           | 
-| UCCE AW-HDS-DDS    | ucce-hds-beta.lab2.purplepi.ie      | 192.168.1.134  | [[rdp>ucce-hds-beta.lab2.purplepi.ie|RDP]]      | n/a                                          | [[https://ucce-hds-beta.lab2.purplepi.ie:7890/icm-dp/rest/DiagnosticPortal/GetMenuPortico|CCE Portico]]                                                                 | [[https://ucce-hds-beta.lab2.purplepi.ie/cceadmin/|Admin]]                                                                          |                                                                                                   | 
-| UCCE-CUIC-A        | ucce-cuic-beta.lab2.purplepi.ie     | 192.168.1.138  | n/a                                          | [[ssh>ucce-cuic-beta.lab2.purplepi.ie|SSH]]     | http://ucce-cuic-beta.lab2.purplepi.ie                                                                                                                                  | [[https://ucce-cuic-beta.lab2.purplepi.ie:8443/oamp|OAMP]]       | [[https://ucce-cuic-beta.lab2.purplepi.ie:8553/idsadmin/|IDS Admin]]  |                                                                                                   | 
-| CVP                | ucce-cvp-1a.lab2.purplepi.ie     | 192.168.1.135  | [[rdp>ucce-cvp-1a.lab2.purplepi.ie|RDP]]     | n/a                                          | [[http://ucce-cvp-1a.lab2.purplepi.ie:8000/cvp/diag|CVP Diagnostics]]                                                                                                | [[https://ucce-cvp-1a.lab2.purplepi.ie:9443/oamp/|OAMP]]      |                                                                    |                                                                                                   | 
-| VVB                | UCCE-VVB-A.lab2.purplepi.ie      | 192.168.1.139  | n/a                                          | [[ssh>UCCE-VVB-A.lab2.purplepi.ie|SSH]]      | [[http://UCCE-VVB-A.lab2.purplepi.ie|Web Admin]]                                                                                                                                                                                                                                                      |                                                                                                   | 
-| ECE                | ucce-ece-beta.lab2.purplepi.ie  | 192.168.1.145  | [[rdp>ucce-ece-beta.lab2.purplepi.ie|RDP]]  |  [[https://ucce-ece-beta.lab2.purplepi.ie/system/web/apps/admin/login| Gadget]] | [[http://ucce-ece-beta.lab2.purplepi.ie/system/templates/chat/aqua/index.html?subActivity=Chat&entryPointId=1001&templateName=aqua&ver=v11&locale=en-US|CHAT URL]]  | [[http://ucce-ece-beta.lab2.purplepi.ie/system|ECE System]]  | [[http://ucce-ece-beta.lab2.purplepi.ie/default|ECE Default]]     | [[https://ucce-ece-beta.lab2.purplepi.ie/system/web/apps/login/|Agent Desktop - Non Finesse]]  |   | 
- 
-==== ECE 12 - Chat Undocked Example ==== 
-<code> 
-<script language=javascript> 
-var egainChat  = egainChat  || {}; 
-    /*eGain Chat server */ 
-    egainChat.serverURL = "http://ucce-ece-db-12.lab2.purplepi.ie/system"; 
-    /*eGain Chat Entry Point*/ 
-    egainChat.EntryPointId  = "1001"; 
-    /*eGain Chat Locale*/ 
-    egainChat.Locale  = "en-US"; 
-    /*eGain template name*/ 
-    egainChat.Template = "aqua"; 
-    /*Set to true to enable posting attributes to templates*/ 
-    egainChat.PostChatAttributes = false; 
-    egainChat.CustomerContextParameters = {}; 
-    egainChat.openHelp = function () { 
-    var domainRegex = /^((?:https?:\/\/)?(?:www\.)?([^\/]+))/i; 
-    try { 
-    if (egainChat.eglvchathandle != null && egainChat.eglvchathandle.closed == false) { 
-    egainChat.eglvchathandle.focus(); 
-    return; 
-    } 
-    } 
-    catch (err) { 
-    } 
-    var refererName = ""; 
-    refererName = encodeURIComponent(refererName); 
-    var refererurl = encodeURIComponent(document.location.href); 
-    var hashIndex = refererurl.lastIndexOf('#'); 
-    if (hashIndex != -1) { 
-    refererurl = refererurl.substring(0, hashIndex); 
-    } 
-    var eglvcaseid = (/eglvcaseid=[0-9]*/gi).exec(window.location.search); 
-    var vhtIds = ''; 
-    if (typeof EGAINCLOUD != 'undefined' && EGAINCLOUD.Account.getAllIds) 
-    { 
-    var ids = EGAINCLOUD.Account.getAllIds(); 
-    vhtIds = '&aId=' + ids.a + '&sId=' + ids.s + '&uId=' + ids.u; 
-    } 
-    var EG_CALL_Q = window.EG_CALL_Q || []; 
-    EG_CALL_Q.push(['enableTracker', true]); 
-    var eGainChatUrl = egainChat.serverURL + '/templates/chat/' + egainChat.Template + '/index.html?subActivity=Chat&entryPointId=' + egainChat.EntryPointId; 
-     
-    eGainChatUrl += '' + '&templateName=' + egainChat.Template + '&locale=' + egainChat.Locale + '&ver=v11'; 
-    eGainChatUrl += '&postChatAttributes=' + egainChat.PostChatAttributes + '&eglvrefname=' + refererName + '&' + eglvcaseid + vhtIds; 
-     
-    var domain = domainRegex.exec(eGainChatUrl)[0]; 
-     
-    if ((eGainChatUrl + refererurl).length <= 2000) 
-    eGainChatUrl += '&referer=' + refererurl; 
-    var params = 'height=650,width=450,resizable=yes,scrollbars=yes,toolbar=no'; 
-     
-     window.addEventListener('message', function (event) { 
-     try{ 
-     var message = JSON.parse(event.data); 
-     if (event.origin === domain && message.Caller.indexOf('EGLV_DOCK') !== -1) { 
-        if (message.Key === 'X-egain-session') { 
-            var response = { 
-          value: window.sessionStorage.getItem('X-egain-session'), 
-          caller: message.Caller  
-              }; 
-            event.source.postMessage(JSON.stringify(response), event.origin); 
-            } 
-          } 
-         }catch(e){} 
-       }); 
-    if (egainChat.PostChatAttributes) { 
- if(window.navigator.userAgent.indexOf("Trident") != -1 || window.navigator.userAgent.indexOf("Edge") != -1){ 
- var win = document.getElementById('egainChatDomainFrame'); 
- win.contentWindow.postMessage(JSON.stringify(egainChat.CustomerContextParameters), domain); 
- }else{  
-    window.addEventListener('message', function (event) { 
-    try{ 
-    var message = JSON.parse(event.data); 
-    if (event.origin === domain && message.Caller.indexOf('EGLV_DOCK') !== -1) { 
-    if (message.Key === 'EgainChatParameter') { 
-     
-    var response = { 
-    value: egainChat.CustomerContextParameters, 
-    caller: message.Caller 
-    }; 
-    event.source.postMessage(JSON.stringify(response), event.origin); 
-    } 
-    } 
-    }catch(e){ 
-    }  
-    }); 
-       } 
-    } 
-    egainChat.eglvchathandle = window.open(eGainChatUrl, '', params); 
-    }; 
-    /*To be called by client website. All the parameters specified in application-chat-defaults must be set here.*/ 
-    egainChat.SetCustomerParameters = function (egainAttributeName, attributeValue) { 
-        egainChat.CustomerContextParameters[egainAttributeName] = attributeValue; 
-    }; 
-egainChat.writeIframeIfRequired = function() { 
-if(egainChat.PostChatAttributes  &&  (window.navigator.userAgent.indexOf("Trident") != -1 || window.navigator.userAgent.indexOf("Edge") != -1) ) { 
-  var iframe = document.createElement('iframe'); 
-  iframe.src=egainChat.serverURL+'/web/view/live/customer/storeparams.html?wsname='+window.location.protocol+'//'+window.location.host; 
-  iframe.style.display = 'none'; 
-  iframe.name = 'egainChatDomainFrame'; 
-  iframe.id = 'egainChatDomainFrame'; 
- if (typeof document.body !== 'undefined' && document.body !== null){ 
- document.body.appendChild(iframe); 
- }else{ 
- setTimeout(egainChat.writeIframeIfRequired, 100); 
- } 
-  } 
-} 
-egainChat.writeIframeIfRequired(); 
-</script> 
-<a href="#" onClick="egainChat.openHelp()" style=cursor:hand>Test text chat</a> 
- 
-</code> 
- 
-==== ECE 12 - Chat Docked Example ==== 
- 
-The following line must be added to the HTML of all pages on which you want docked chat to function: 
-<code><script type="text/javascript" src="http://WebServerName/system/templates/chat/egain-chat.js"></script></code> 
- 
- 
-===== UCCX ===== 
-<sortable> 
- 
-^ Description  ^ Hostname                         ^ IP             ^ RDP  ^ SSH                                          ^ -                                       ^ -  ^ -  ^ -                                                                    ^ 
-| UCCX         | uc-uccx-a.lab2.purplepi.ie       | 192.168.1.247  |      | [[ssh>uc-uccx-a.lab2.purplepi.ie|ssh]]       | http://uc-uccx-a.lab2.purplepi.ie          |    |                                                                      | 
-| SOCIALMINER  | uc-socialminer.lab2.purplepi.ie  | 192.168.1.248  |      | [[ssh>uc-socialminer.lab2.purplepi.ie|ssh]]  | http://uc-socialminer.lab2.purplepi.ie  |    |    | [[https://uc-socialminer.lab2.purplepi.ie/cmplatform/|OS Platform]]  | 
-</sortable> 
- 
-==== CCX Chat==== 
- 
-=== Classic Chat === 
-<html> 
-<noscript><br/>For optimal experience, enable JavaScript in your browser.<br/><br/></noscript> 
-<head> 
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
-<!-- Note: Ensure that the moment.js is available and correctly referenced in the client environment.--> 
-<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.0/moment.min.js"></script> 
-<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.13/moment-timezone.min.js"></script> 
-<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.13/moment-timezone-with-data-2012-2022.min.js"></script> 
-<script language="JavaScript"> 
-    function updateAuthor(theForm){ 
-    if(theForm.extensionField_Name){ 
-    if(theForm.extensionField_Name.value!=""){ 
-    theForm.author.value=theForm.extensionField_Name.value; 
-    theForm.extensionField_Name.name="extensionField_h_Name"; 
-    return(true);}} 
-    if(theForm.extensionField_Email){ 
-    if(theForm.extensionField_Email.value!=""){ 
-    theForm.author.value=theForm.extensionField_Email.value; 
-    return(true);}} 
-    return(true);} 
- 
-/************ Begin of Java Script code to handle Chat Schedule Config ************************/ 
-/* 
-Below code handles the display of Chat form based on the Chat Schedule configuration. The chat form is displayed to the client if the client’s browser current time is in the Business working hours else offline message is display.The Chat Schedule configuration handles client’s in different time zones as well as daylight saving provided the client’s system time settings are appropriate. 
-The Chat Schedeule code flow requires moment timezone library, if the library is not accessible then scheduling configuration is ignore and Chat form is always displayed to the client. 
-*/ 
- 
-/* convert client’s timezone to server time zone using moment timezone library to validate against Chat Schedule configuration.*/ 
-    var serverTimezone = "Europe/Dublin" ; 
-    var currentDateInServerTimeZone = moment.tz(new Date(), serverTimezone); 
-    var currDay = currentDateInServerTimeZone.day(); 
-    var currDate = currentDateInServerTimeZone.format("YYYY-MM-DD"); 
-    var currWorkTimeMins = (currentDateInServerTimeZone.hours() * 60) + currentDateInServerTimeZone.minutes(); 
-/*Below variables hold the Chat Schedule Configuration details as provided in the AppAdmin Schedule Configuration Page*/ 
-    var holidays = []; 
-    var specialDays = []; 
-    var routineDays = []; 
-    function isOnHoliday() { 
-    for (var i=0; i < holidays.length; i++) { 
-    if(holidays[i] == currDate){ 
-    return true; 
-    } 
-    } 
-    return false; 
-} 
-    function isOnSpecialDay() { 
-    for (var i=0; i < specialDays.length; i++) { 
-    if(specialDays[i].date == currDate){ 
-    break; 
-    } 
-    } 
-    return specialDays[i]; 
-    } 
-    function isInWorkingHour(workTime) { 
-    return currWorkTimeMins <= workTime.endTime && currWorkTimeMins >= workTime.startTime; 
-    } 
-    function isOperatingHour() { 
-    var isOperatingHour= false; 
-    if (!isOnHoliday()) { 
-    var specialDate = isOnSpecialDay(); 
-    if (specialDate) { 
-    isOperatingHour = isInWorkingHour(specialDate.workTime);} 
-    else { 
-    for (var i=0; i < routineDays.length; i++) { 
-    if (routineDays[i].day == currDay) { 
-    isOperatingHour = isInWorkingHour(routineDays[i].workTime); 
-    break;}} 
-    if (routineDays.length == 0){isOperatingHour = true; }} 
-    } 
-    return isOperatingHour 
-    } 
-    function onLoadInit() { 
-    var displayChatForm= true; 
-    /* Ignore Chat Schedule if moment timezone library is not available*/ 
-    if (window.moment) { 
-    displayChatForm = isOperatingHour(); 
-    } 
-    if(displayChatForm) { 
-    document.getElementById("chatForm").style.display = "inline"; 
-    } 
-    else { 
-    document.getElementById("closedMessage").style.display = "inline"; 
-    } 
-    } 
-</script> 
-</head> 
-<body onload="onLoadInit()"> 
-<div id="chatForm" style="display:none"> 
-<form action="https://uc-socialminer.lab2.purplepi.ie/ccp/chat/form/100000" method="post" onsubmit="return updateAuthor(this)"> 
-<style type="text/css">span { display: inline-block; width: 120px; }</style> 
-    <span>Name:</span><input type="text" name="extensionField_Name" /><br/> 
-    <span>Email:</span><input type="text" name="extensionField_Email" /><br/> 
-    <span>PhoneNumber:</span><input type="text" name="extensionField_PhoneNumber" /><br/> 
-    <span>Problem:</span> 
-    <select name="extensionField_ccxqueuetag"><br/> 
-        <option value="Chat_Csq2">Blah</option> 
-    </select><br/> 
-<input type="submit" value="Submit"/><input type="hidden" name="author" value="Customer"/><br/> 
-<input type="hidden" name="title" value="ccx chat"/><br/> 
-<input type="hidden" name="extensionField_h_widgetName" value="Sales_Classic"/><br/> 
-<!-- The following optional, hidden fields are available in order to customize the Customer Chat user interface. 
-Unlike other extension fields, these are not added to the social contact, and therefore do not display in the Agent Chat user interface.--> 
-<input type="hidden" name="extensionField_contextServiceCustomFieldSets" value=""> 
-<input type="hidden" name="extensionField_chatLogo" value=""><br/> 
-<input type="hidden" name="extensionField_chatWaiting" value="Thank you for contacting us. A customer care representative would assist you soon."> 
-<input type="hidden" name="extensionField_chatAgentJoinTimeOut" value="All our customer care representatives are busy. You may wait or try again later."> 
-<input type="hidden" name="extensionField_chatError" value="Chat service is currently unavailable. Try later."> 
-</form> 
-</div> 
-<div id="closedMessage" style="display:none"> 
-<h2> Sorry, we are not available at the moment. </h2> 
-</div> 
-</body> 
-</html> 
-===Bubble Chat Code=== 
-<code> 
-<!-- Add this script tag without any modification to the target webpage --> 
-<script type="application/javascript"> 
-    var ciscoBubbleChat = (function () { 
-        var smHost = 'UC-SOCIALMINER.lab2.purplepi.ie'; 
-        var widgetId = '1'; 
- 
-        var appId = 'cisco_bubble_chat'; 
-        var secure = 'true'; 
-        var appMargin = 10; 
-        var messageEventListener = undefined; 
-        return { 
-            showChatWindow: function () { 
-                var logPrefix = 'CISCO_BUBBLE_CHAT: '; 
-                if (document.getElementById(appId)) { 
-                    console.log(logPrefix + 'Not loading BubbleChat as it is already loaded'); 
-                    return; 
-                } 
-                var iframe = document.createElement('iframe'); 
-                iframe.setAttribute('sandbox', 'allow-scripts allow-same-origin allow-forms allow-popups'); 
-                iframe.setAttribute('id', appId); 
-                iframe.setAttribute('style', 'position: fixed;width: 312px; height: 407px; bottom: 0px;right: 0px; border: none; z-index:999;'); 
-                var appUrl = 'https://' + smHost + '/ccp/ui/BubbleChat.html?host=' + smHost + '&wid=' + widgetId + '&secure=' + secure; 
-                iframe.setAttribute('src', appUrl); 
-                document.body.appendChild(iframe); 
-                document.getElementById(appId).style.visibility = 'visible'; 
-                if(!messageEventListener) { 
-                    messageEventListener = function (event) { 
-                        console.log(logPrefix + 'Received event from origin: ' + event.origin); 
-                        if (event.origin.indexOf(smHost) >= 0) { 
-                            console.log(logPrefix + 'Received event data: ' + JSON.stringify(event.data)); 
-                            if (event.data.messageType === 'resize') { 
-                                document.getElementById(appId).height = event.data.height + appMargin; 
-                                console.log(logPrefix + 'Successfully resized'); 
-                            } else if (event.data.messageType === 'unmount') { 
-                                document.body.removeChild(document.getElementById(appId)); 
-                                window.removeEventListener('message', messageEventListener); 
-                                console.log(logPrefix + 'Successfully unmounted BubbleChat and removed event listener for message'); 
-                            } 
-                        } 
-                    }; 
-                } 
-                window.addEventListener('message', messageEventListener); 
-                console.log(logPrefix + 'Event listener for message added'); 
-            } 
-        }; 
-    })(); 
-</script> 
- 
-<!-- Use the function 'ciscoBubbleChat.showChatWindow() as the event handler for initiating chat --> 
-<!-- eg: <button onclick="ciscoBubbleChat.showChatWindow()">Start Chat</button> --> 
-</code> 
  
  • lab5.1734885117.txt.gz
  • Last modified: 2024/12/22 16:31
  • by gerardorourke