Ejemplo n.º 1
0
 internal void UpdateDispositionCodeChange(IXNCustomData data)
 {
     try
     {
         this._logger.Info("UpdateDispositionCodeChange()");
         if (!Settings.SFDCOptions.CanUseGenesysCallDuration || string.IsNullOrWhiteSpace(data.Duration))
         {
             if (_callDurationData.ContainsKey(data.InteractionId))
             {
                 TimeSpan ts = System.DateTime.Now.Subtract(_callDurationData[data.InteractionId]);
                 data.Duration = ts.Hours + " Hr " + ts.Minutes + " Mins " + ts.Seconds + " Secs";
             }
         }
         if (!string.IsNullOrWhiteSpace(data.EventName) && data.EventName == "InteractionMarkDone")
         {
             CallMarkDone.GetInstance().UpdateRecords(data);
         }
         else if (data.InteractionEvent != null)
         {
             UpdateOnDispositionCodeChange(data.InteractionEvent, data.Duration);
         }
     }
     catch (Exception generalException)
     {
         this._logger.Error("UpdateDispositionCodeChange: Error occurred, details: " + generalException);
     }
 }
Ejemplo n.º 2
0
 public static CallMarkDone GetInstance()
 {
     if (_markdone == null)
     {
         _markdone = new CallMarkDone();
     }
     return(_markdone);
 }