daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function checkSurveyOfContacts() {
  2.     if (thisObj.interactionData.category === 'umbrella') {
  3.         if (isClientContactSurveyEditable()) {
  4.             resolveSurveyEditableCase();
  5.             thisObj.isSendSurveyLastStateEnabled = true;
  6.         } else {
  7.             setSurveyToNotEditableCase();
  8.             thisObj.isSendSurveyLastStateEnabled = false
  9.         }
  10.     }
  11. }
  12.  
  13. function isClientContactSurveyEditable() {
  14.     if (isOutcomeEqualToSpecificStatus(OUTCOME_COMPLETED)) {
  15.         if (isInteractionTypeEqualToSpecificType(TYPE_ANALYST_CONSULTATION)) {
  16.             if (isProduct_EVP_MVP_GITA_IRS_IEP()) {
  17.                 return true;
  18.             }
  19.          } else if (isInteractionTypeEqualToSpecificType(TYPE_BENCHMARK)
  20.                     && isInteractionPurposeEqualToSpecificPurpose(PURPOSE_DEAL_REVIEW)
  21.                     && isProductSAS()) {
  22.             return true;
  23.          }
  24.     }
  25.     return false;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top