Auto Wrapping Calls
    • Dark
      Light

    Auto Wrapping Calls

    • Dark
      Light

    Article summary

    The automatic wrapping of calls are available for the following modes:

    • Preview

    • Predictive

    • Progressive

    Auto Wrap or After-Call Work completes the tasks when the configured Wrapup Time is reached. You can configure the AutoWrapupTimeout value in AEConsole Campaign Page > Campaign Group Accordion > Gerneral Settings > AutoWrapupTimeout.

    reservation.on("wrapup", (wrapupReservation) => {
              if (!reservation.task.attributes.hasOwnProperty("LCMKey")) {
                console.log("Default Non AE Twilio Flex Task - ReservationWrapup");            
              } 
              else {
                if (reservation.task.attributes.hasOwnProperty("Mode")) {
                  if (
                    reservation.task.attributes.Mode.toLowerCase() == "preview" ||
                    reservation.task.attributes.Mode.toLowerCase() ==
                      "progressive" ||
                    reservation.task.attributes.Mode.toLowerCase() ==
                      "predictive" ||
                    reservation.task.attributes.Mode.toLowerCase() ==
                      "progressive ivr"
                  ) {
                    AutoWrapup(wrapupReservation);
                  }
                }
                else if(reservation.task.attributes.hasOwnProperty("IsPreview") && reservation.task.attributes.IsPreview)
                {
                  CallEndDateTime = new Date()
                  console.log("CallEndDateTime "+CallEndDateTime.getTime());
                  CallStartDateTime = new Date(reservation.task.attributes.CallStartDate.replace(",",""));
                  console.log("CallStartDateTime "+CallStartDateTime.getTime());
                  CallDuration = CallEndDateTime.getTime() - CallStartDateTime.getTime();
                  console.log("CallDuration "+ CallDuration);
                  AutoWrapup(wrapupReservation);
                }
              }
            });


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence