From f9df92fba91c88fe75fb8a6464788e77af4c60f6 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Tue, 27 Aug 2024 17:02:16 -0400 Subject: [PATCH] New script for Karbon. Luminate and Williams-Sonoma template updates. --- .DS_Store | Bin 8196 -> 8196 bytes .../WSGC - New Hire/homepage.html.liquid | 4 +- .../WSGC - Post_New_Hire/.DS_Store | Bin 0 -> 6148 bytes .../Walmart Luminate Mexico/.DS_Store | Bin 0 -> 6148 bytes .../homepage.html.liquid | 100 +- Scripts/API_Tests/Apikeys.py | 1 + Scripts/Karbon/Apikeys.py | 29 + .../__pycache__/Apikeys.cpython-310.pyc | Bin 0 -> 1408 bytes .../update_groups_remove_ppl_from_groups.py | 40 + Scripts/Migration_tool/api_docs.json | 3869 +++++++++++++++++ Scripts/clone_courses.js | 104 +- 11 files changed, 3996 insertions(+), 151 deletions(-) create mode 100644 Custom_Templates/customer_templates/WSGC - Post_New_Hire/.DS_Store create mode 100644 Custom_Templates/customer_templates/Walmart Luminate Mexico/.DS_Store create mode 100644 Scripts/Karbon/Apikeys.py create mode 100644 Scripts/Karbon/__pycache__/Apikeys.cpython-310.pyc create mode 100644 Scripts/Karbon/update_groups_remove_ppl_from_groups.py create mode 100644 Scripts/Migration_tool/api_docs.json diff --git a/.DS_Store b/.DS_Store index d7a52e5cdd34aa775ffa933a7a181bf3f090d44f..9e6a10fe6d83f234bb463d5d9258d4d999babe95 100644 GIT binary patch delta 48 ucmZp1XmOa}OBU^hRb+GZXBY1Ya5VxpU6#9lK_EO@Y)T|xm_;4T1fY!9LU delta 488 zcmZp1XmOa}LAU^hRb)@B|7Y1Vo{20w-XhIob`hI}9_0kVRDWFkWmkSqYw=?tkk z>4w3{`MCuQAi&XX3M7fpm7DM4l9ZF51kw}K)oP))=%^#6&Nyrq=H{mmp%t6Xf(#_5 aauzU5_7RoXY$N)baWlJw!U*x~3q}BXV{F0z diff --git a/Custom_Templates/customer_templates/WSGC - New Hire/homepage.html.liquid b/Custom_Templates/customer_templates/WSGC - New Hire/homepage.html.liquid index 921fec3a..807b7bad 100644 --- a/Custom_Templates/customer_templates/WSGC - New Hire/homepage.html.liquid +++ b/Custom_Templates/customer_templates/WSGC - New Hire/homepage.html.liquid @@ -58,7 +58,9 @@ - {% comment %} {% if completed_date == 0 %} + {% comment %} + This will be enabled when the WSGC team is ready. Leave it commented out until then. + {% if completed_date == 0 %} diff --git a/Custom_Templates/customer_templates/WSGC - Post_New_Hire/.DS_Store b/Custom_Templates/customer_templates/WSGC - Post_New_Hire/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 - function showPopup() { - setTimeout(function() { - document.querySelector(".popup-trigger").click() - }, 500) - } - - function showSurveyPopup() { - setTimeout(function() { - document.querySelector(".survey-popup-trigger").click() - }, 500) - } - - function formatDate(date) { - const month = (date.getMonth() + 1).toString().padStart(2, '0'); - const day = date.getDate().toString().padStart(2, '0'); - const year = date.getFullYear(); - - return `${month}/${day}/${year}`; - } - - function RerunWorkato() { - const today = new Date(); - const formattedDate = formatDate(today); - const data = { - person_uuid: '{{current_person.id}}', - date: formattedDate - } - - let webhookUrl - if (schoolID == "804edb32-c300-42f3-82b7-e5d55fcbc2a6") { - webhookUrl = "https://webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/user-interacted-with-popup" - } else if (schoolID == "10183441-2254-4b1e-a9f7-9549ca773257") { // live school - webhookUrl = "https://webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/user-interacted-with-popup-live" - } - - if (webhookUrl) { - fetch(webhookUrl, { - method: 'post', - body: JSON.stringify(data) - }).then(function(response) { - return response.json(); - }).then(function(data) { - console.log(res) - }).catch(error => { - console.log(error) - }); - } - } +// function showPopup() { +// setTimeout(function() { +// document.querySelector(".popup-trigger").click() +// }, 500) +// } +// +// function showSurveyPopup() { +// setTimeout(function() { +// document.querySelector(".survey-popup-trigger").click() +// }, 500) +// } +// +// function formatDate(date) { +// const month = (date.getMonth() + 1).toString().padStart(2, '0'); +// const day = date.getDate().toString().padStart(2, '0'); +// const year = date.getFullYear(); +// +// return `${month}/${day}/${year}`; +// } +// +// function RerunWorkato() { +// const today = new Date(); +// const formattedDate = formatDate(today); +// const data = { +// person_uuid: '{{current_person.id}}', +// date: formattedDate +// } +// +// let webhookUrl +// if (schoolID == "804edb32-c300-42f3-82b7-e5d55fcbc2a6") { +// webhookUrl = "https://webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/user-interacted-with-popup" +// } else if (schoolID == "10183441-2254-4b1e-a9f7-9549ca773257") { // live school +// webhookUrl = "https://webhooks.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/user-interacted-with-popup-live" +// } +// +// if (webhookUrl) { +// fetch(webhookUrl, { +// method: 'post', +// body: JSON.stringify(data) +// }).then(function(response) { +// return response.json(); +// }).then(function(data) { +// console.log(res) +// }).catch(error => { +// console.log(error) +// }); +// } +// } {% assign catalog_courses = courses.in_catalog %} @@ -180,7 +180,8 @@ {% include "homepage_ongoing_training", items: catalog_courses %} {% comment %} {% include "homepage_topics" %} {% endcomment %} - + {% endcomment %} {% include "footer" %} diff --git a/Scripts/API_Tests/Apikeys.py b/Scripts/API_Tests/Apikeys.py index 7545f450..c178e9d2 100644 --- a/Scripts/API_Tests/Apikeys.py +++ b/Scripts/API_Tests/Apikeys.py @@ -26,3 +26,4 @@ RENAISSANCE = "YFykqX1u0d3HveONc5I9CKnJ1" SANDATA = "HdZFoXGCFpt8NnTOzIQY0kVDj" LUMINATE_US = "p5fidpuedHaOlPnd8EcpxzQMG" SKAN = "89qJQDaFl3DvIpSSOUC5PM9V6" +KARBON = "peQbnkfUnYLGPfIzyCxfLs634" diff --git a/Scripts/Karbon/Apikeys.py b/Scripts/Karbon/Apikeys.py new file mode 100644 index 00000000..c178e9d2 --- /dev/null +++ b/Scripts/Karbon/Apikeys.py @@ -0,0 +1,29 @@ +SKUID = "shdX7ht5PZHoOBKOZqZsTMaCJ" +UNKNOWN = "SlpQlju219WnWogn94dQUT6Yt" +FORCEMANAGER = "3ia7mWFkdeALYQFYoB51yh6Ov" +TALKSPACE_CORE = "2vfHw6ksqGfT1gUhPM8pXx2wW" +WILDHEALTH_EDPORTAL = "HWxj6VTNPwbc3WghFTPzr7SjE" +NORMSANDBOX = "SlpQlju219WnWogn94dQUT6Yt" +WALMARTPROD = "6hUfJdAartHTHhHc0WIRZYPWe" +RECAST = "9LISLpq7Ebqot3Xrggn5twKWZ" +MIZUNO = "stXNF84HWL8aCGeRjHEo2rJ1U" +MIZUNO_RUNNING = "XeRrtgm0BFYPjOjPekVwCdGkW" +SPS = "VNDXh8K4tLYJ-Nvp78bo6w" +ANTHOLOGY = "8ALsk8jDOlynEwn8ScMBSnG87" +TALKSPACE_1099 = "ga5FEVoqrJRZWePHtNnyV2Ep7" +DOXIMITY_INTERNAL = "vAnSR4CvxpII6buj3uT23MPBY" +TERMINUS_EMPLOYEE = "M2er8m0DMQyCyP7zOg3Gbae9k" +BIGIDEAS = "mgGWRtmhebC9xulTXeSohVtop" +ZENJOB = "LIXqtHXEqcXHyN0EtezngnpzA" +DATASNIPPER = "098Odf9CIkk4aQA1lW7tsa9k8" +CHUBB = "m6ZEBesXzpWx2vmp11rEHxrMY" +BIRCHSTREET = "WpMV3jF4q9Om5FjUsrzZifduE" +G2 = "JRDpCGQ7vSRiva6t5OkWDr5eJ" +DOUGLASELLIMAN = "Bknf8kidbluRfcKu3m3lKoxS8" +CIN7 = "51BNlRsLYKQxSu1q1UQq7F63j" +FULLSTORY = "ePChrDWLegENa2qnfb259O2Ki" +RENAISSANCE = "YFykqX1u0d3HveONc5I9CKnJ1" +SANDATA = "HdZFoXGCFpt8NnTOzIQY0kVDj" +LUMINATE_US = "p5fidpuedHaOlPnd8EcpxzQMG" +SKAN = "89qJQDaFl3DvIpSSOUC5PM9V6" +KARBON = "peQbnkfUnYLGPfIzyCxfLs634" diff --git a/Scripts/Karbon/__pycache__/Apikeys.cpython-310.pyc b/Scripts/Karbon/__pycache__/Apikeys.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..86dcb5e5205fa1652889d0cdc873e2a1adae7ce7 GIT binary patch literal 1408 zcmbVMS#sM(5T#_TmL*$WWW!DlkdH)ML=s3Pser&>A%PhX3jy?xisXPBNB{&tisUhJ zi`*h7$N~JDTjVR_*p0Ff86~!`R$}q`Rj}GwHz_$SGJ2C zQ?vpVdIU%G7>?;Pct%g)g!!lR6wc@woYQl-pcimSFX1_T4p;OFUeFhCO|RjG-oQ)x z5?;|)a7%CDHGK_l=o@%T-@-fk4({k3yr=Ks1N{IT<=`Xz2%qRD_=bMtRKEKbxMD_w z_N;7LprxeKBd~_THHT6cIA@vlmy1okCisb;P7~pQ_C2>1mcTXU!}iKoVj77?*jK`| z)2!`hEwTl!zMW`Kt+-gL6Sp??W|qlk!LI(~1E=}BMQh+<>uEG@_|uugpwu&JOyy3V^c_>rZRIN1;CC}W|mm^k)>wB2R8-WqKd zjg4Dxm{unQ&a6i{zpBb+e=qH=_JK?r>S!1VF>tG?>f7aN7L6ofw^_PDrlT%E{6HSr