@livechat/platform-workflows 0.0.49 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +486 -215
  2. package/dist/index.mjs +486 -215
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2185,7 +2185,6 @@ var systemTriggerTemplates = {
2185
2185
  };
2186
2186
 
2187
2187
  // src/views/Flows/Definitions/Mocks/BigCommerce/index.ts
2188
- var config2 = getWorkflowsConfig();
2189
2188
  var bigCommerceProductBody = {
2190
2189
  id: {
2191
2190
  type: "number",
@@ -2525,7 +2524,9 @@ var bigCommerceTaskConfigs = {
2525
2524
  ["BIGCOMMERCE_CREATE_BLOG_POST" /* CreateBlogPost */]: {
2526
2525
  key: "BIGCOMMERCE_CREATE_BLOG_POST" /* CreateBlogPost */,
2527
2526
  type: import_developer_studio_api3.WorkflowDefinitionTaskType.http,
2528
- url: `${config2.workflowsApiUr}/functions/create-bigcommerce-blog-post`,
2527
+ url: `${getWorkflowsEnv(
2528
+ "workflowsApiUr"
2529
+ )}/functions/create-bigcommerce-blog-post`,
2529
2530
  customization: {
2530
2531
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2531
2532
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
@@ -2648,7 +2649,9 @@ var bigCommerceTaskConfigs = {
2648
2649
  ["BIGCOMMERCE_CREATE_CUSTOMER" /* CreateCustomer */]: {
2649
2650
  key: "BIGCOMMERCE_CREATE_CUSTOMER" /* CreateCustomer */,
2650
2651
  type: import_developer_studio_api3.WorkflowDefinitionTaskType.http,
2651
- url: `${config2.workflowsApiUr}/functions/create-bigcommerce-customer`,
2652
+ url: `${getWorkflowsEnv(
2653
+ "workflowsApiUr"
2654
+ )}/functions/create-bigcommerce-customer`,
2652
2655
  customization: {
2653
2656
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2654
2657
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
@@ -2681,7 +2684,9 @@ var bigCommerceTaskConfigs = {
2681
2684
  ["BIGCOMMERCE_UPDATE_CUSTOMER" /* UpdateCustomer */]: {
2682
2685
  key: "BIGCOMMERCE_UPDATE_CUSTOMER" /* UpdateCustomer */,
2683
2686
  type: import_developer_studio_api3.WorkflowDefinitionTaskType.http,
2684
- url: `${config2.workflowsApiUr}/functions/update-bigcommerce-customer`,
2687
+ url: `${getWorkflowsEnv(
2688
+ "workflowsApiUr"
2689
+ )}/functions/update-bigcommerce-customer`,
2685
2690
  customization: {
2686
2691
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2687
2692
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
@@ -2712,7 +2717,9 @@ var bigCommerceTaskConfigs = {
2712
2717
  ["BIGCOMMERCE_CREATE_PRODUCT" /* CreateProduct */]: {
2713
2718
  key: "BIGCOMMERCE_CREATE_PRODUCT" /* CreateProduct */,
2714
2719
  type: import_developer_studio_api3.WorkflowDefinitionTaskType.http,
2715
- url: `${config2.workflowsApiUr}/functions/create-bigcommerce-product`,
2720
+ url: `${getWorkflowsEnv(
2721
+ "workflowsApiUr"
2722
+ )}/functions/create-bigcommerce-product`,
2716
2723
  customization: {
2717
2724
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2718
2725
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
@@ -2742,7 +2749,9 @@ var bigCommerceTaskConfigs = {
2742
2749
  ["BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS" /* CreateCustomerAddress */]: {
2743
2750
  key: "BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS" /* CreateCustomerAddress */,
2744
2751
  type: import_developer_studio_api3.WorkflowDefinitionTaskType.http,
2745
- url: `${config2.workflowsApiUr}/functions/create-bigcommerce-customer-address`,
2752
+ url: `${getWorkflowsEnv(
2753
+ "workflowsApiUr"
2754
+ )}/functions/create-bigcommerce-customer-address`,
2746
2755
  customization: {
2747
2756
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2748
2757
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
@@ -2787,7 +2796,9 @@ var bigCommerceTaskConfigs = {
2787
2796
  ["BIGCOMMERCE_GET_CUSTOMER" /* GetCustomer */]: {
2788
2797
  key: "BIGCOMMERCE_GET_CUSTOMER" /* GetCustomer */,
2789
2798
  type: import_developer_studio_api3.WorkflowDefinitionTaskType.http,
2790
- url: `${config2.workflowsApiUr}/functions/get-bigcommerce-customer`,
2799
+ url: `${getWorkflowsEnv(
2800
+ "workflowsApiUr"
2801
+ )}/functions/get-bigcommerce-customer`,
2791
2802
  customization: {
2792
2803
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2793
2804
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
@@ -2820,7 +2831,9 @@ var bigCommerceTaskConfigs = {
2820
2831
  ["BIGCOMMERCE_GET_CUSTOMER_ADDRESSES" /* GetCustomerAddresses */]: {
2821
2832
  key: "BIGCOMMERCE_GET_CUSTOMER_ADDRESSES" /* GetCustomerAddresses */,
2822
2833
  type: import_developer_studio_api3.WorkflowDefinitionTaskType.http,
2823
- url: `${config2.workflowsApiUr}/functions/get-bigcommerce-customer-address`,
2834
+ url: `${getWorkflowsEnv(
2835
+ "workflowsApiUr"
2836
+ )}/functions/get-bigcommerce-customer-address`,
2824
2837
  customization: {
2825
2838
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2826
2839
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
@@ -2852,7 +2865,9 @@ var bigCommerceTaskConfigs = {
2852
2865
  ["BIGCOMMERCE_GET_PRODUCTS" /* GetProducts */]: {
2853
2866
  key: "BIGCOMMERCE_GET_PRODUCTS" /* GetProducts */,
2854
2867
  type: import_developer_studio_api3.WorkflowDefinitionTaskType.http,
2855
- url: `${config2.workflowsApiUr}/functions/get-bigcommerce-products`,
2868
+ url: `${getWorkflowsEnv(
2869
+ "workflowsApiUr"
2870
+ )}/functions/get-bigcommerce-products`,
2856
2871
  customization: {
2857
2872
  provider: import_developer_studio_api3.IntegrationNames.BigCommerce,
2858
2873
  product: import_developer_studio_api3.IntegrationDisplayNames.BigCommerce,
@@ -2878,7 +2893,9 @@ var bigCommerceTaskTemplates = {
2878
2893
  taskReferenceName: "bigcommerce_create_blog_post",
2879
2894
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
2880
2895
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
2881
- uri: `${config2.workflowsApiUr}/functions/create-bigcommerce-blog-post`,
2896
+ uri: `${getWorkflowsEnv(
2897
+ "workflowsApiUr"
2898
+ )}/functions/create-bigcommerce-blog-post`,
2882
2899
  method: "POST",
2883
2900
  body: {
2884
2901
  title: "Blog post title",
@@ -2897,7 +2914,9 @@ var bigCommerceTaskTemplates = {
2897
2914
  taskReferenceName: "bigcommerce_create_customer",
2898
2915
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
2899
2916
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
2900
- uri: `${config2.workflowsApiUr}/functions/create-bigcommerce-customer`,
2917
+ uri: `${getWorkflowsEnv(
2918
+ "workflowsApiUr"
2919
+ )}/functions/create-bigcommerce-customer`,
2901
2920
  method: "POST",
2902
2921
  body: {
2903
2922
  first_name: "#{first_name}",
@@ -2917,7 +2936,9 @@ var bigCommerceTaskTemplates = {
2917
2936
  taskReferenceName: "bigcommerce_update_customer",
2918
2937
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
2919
2938
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
2920
- uri: `${config2.workflowsApiUr}/functions/update-bigcommerce-customer`,
2939
+ uri: `${getWorkflowsEnv(
2940
+ "workflowsApiUr"
2941
+ )}/functions/update-bigcommerce-customer`,
2921
2942
  method: "PATCH",
2922
2943
  body: {
2923
2944
  id: "#{customer_id}"
@@ -2935,7 +2956,9 @@ var bigCommerceTaskTemplates = {
2935
2956
  taskReferenceName: "bigcommerce_create_product",
2936
2957
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
2937
2958
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
2938
- uri: `${config2.workflowsApiUr}/functions/create-bigcommerce-product`,
2959
+ uri: `${getWorkflowsEnv(
2960
+ "workflowsApiUr"
2961
+ )}/functions/create-bigcommerce-product`,
2939
2962
  method: "POST",
2940
2963
  body: {
2941
2964
  name: "Product name",
@@ -2956,7 +2979,9 @@ var bigCommerceTaskTemplates = {
2956
2979
  taskReferenceName: "bigcommerce_create_customer_address",
2957
2980
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
2958
2981
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
2959
- uri: `${config2.workflowsApiUr}/functions/create-bigcommerce-customer-address`,
2982
+ uri: `${getWorkflowsEnv(
2983
+ "workflowsApiUr"
2984
+ )}/functions/create-bigcommerce-customer-address`,
2960
2985
  method: "POST",
2961
2986
  body: {
2962
2987
  customer_id: "#{customer_id}",
@@ -2984,7 +3009,9 @@ var bigCommerceTaskTemplates = {
2984
3009
  taskReferenceName: "bigcommerce_get_customer",
2985
3010
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
2986
3011
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
2987
- uri: `${config2.workflowsApiUr}/functions/get-bigcommerce-customer?customer_id=#{customer_id}&customer_email=#{customer_email}`,
3012
+ uri: `${getWorkflowsEnv(
3013
+ "workflowsApiUr"
3014
+ )}/functions/get-bigcommerce-customer?customer_id=#{customer_id}&customer_email=#{customer_email}`,
2988
3015
  method: "GET",
2989
3016
  headers: {
2990
3017
  Accept: "application/json",
@@ -2999,7 +3026,9 @@ var bigCommerceTaskTemplates = {
2999
3026
  taskReferenceName: "bigcommerce_get_customer_addresses",
3000
3027
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3001
3028
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3002
- uri: `${config2.workflowsApiUr}/functions/get-bigcommerce-customer-addresses?customer_id=#{customer_id}`,
3029
+ uri: `${getWorkflowsEnv(
3030
+ "workflowsApiUr"
3031
+ )}/functions/get-bigcommerce-customer-addresses?customer_id=#{customer_id}`,
3003
3032
  method: "GET",
3004
3033
  headers: {
3005
3034
  Accept: "application/json",
@@ -3014,7 +3043,9 @@ var bigCommerceTaskTemplates = {
3014
3043
  taskReferenceName: "bigcommerce_get_products",
3015
3044
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3016
3045
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3017
- uri: `${config2.workflowsApiUr}/functions/get-bigcommerce-products?limit=200&page=1`,
3046
+ uri: `${getWorkflowsEnv(
3047
+ "workflowsApiUr"
3048
+ )}/functions/get-bigcommerce-products?limit=200&page=1`,
3018
3049
  method: "GET",
3019
3050
  headers: {
3020
3051
  Accept: "application/json",
@@ -3298,7 +3329,6 @@ var bigcommerceTriggerTemplates = {
3298
3329
 
3299
3330
  // src/views/Flows/Definitions/Mocks/HelpDesk/index.ts
3300
3331
  var import_developer_studio_api4 = require("@livechat/developer-studio-api");
3301
- var config3 = getWorkflowsConfig();
3302
3332
  var helpdeskTicketResponse = WORKFLOW_HTTP_TASK_OUTPUT_SCHEMA({
3303
3333
  type: "object",
3304
3334
  properties: {
@@ -3455,7 +3485,9 @@ var helpdeskTaskConfigs = {
3455
3485
  ["HELPDESK_ADD_FOLLOWERS_TO_TICKET" /* AddFollowersToTicket */]: {
3456
3486
  key: "HELPDESK_ADD_FOLLOWERS_TO_TICKET" /* AddFollowersToTicket */,
3457
3487
  type: import_developer_studio_api4.WorkflowDefinitionTaskType.http,
3458
- url: `${config3.workflowsApiUr}/functions/add-followers-to-helpdesk-ticket`,
3488
+ url: `${getWorkflowsEnv(
3489
+ "workflowsApiUr"
3490
+ )}/functions/add-followers-to-helpdesk-ticket`,
3459
3491
  customization: {
3460
3492
  provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3461
3493
  product: PRODUCT_NAMES.helpdesk,
@@ -3490,7 +3522,9 @@ var helpdeskTaskConfigs = {
3490
3522
  ["HELPDESK_ADD_TAGS_TO_TICKET" /* AddTagsToTicket */]: {
3491
3523
  key: "HELPDESK_ADD_TAGS_TO_TICKET" /* AddTagsToTicket */,
3492
3524
  type: import_developer_studio_api4.WorkflowDefinitionTaskType.http,
3493
- url: `${config3.workflowsApiUr}/functions/add-tags-to-helpdesk-ticket`,
3525
+ url: `${getWorkflowsEnv(
3526
+ "workflowsApiUr"
3527
+ )}/functions/add-tags-to-helpdesk-ticket`,
3494
3528
  customization: {
3495
3529
  provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3496
3530
  product: PRODUCT_NAMES.helpdesk,
@@ -3524,7 +3558,9 @@ var helpdeskTaskConfigs = {
3524
3558
  ["HELPDESK_CREATE_TICKET" /* CreateTicket */]: {
3525
3559
  key: "HELPDESK_CREATE_TICKET" /* CreateTicket */,
3526
3560
  type: import_developer_studio_api4.WorkflowDefinitionTaskType.http,
3527
- url: `${config3.workflowsApiUr}/functions/create-helpdesk-ticket`,
3561
+ url: `${getWorkflowsEnv(
3562
+ "workflowsApiUr"
3563
+ )}/functions/create-helpdesk-ticket`,
3528
3564
  customization: {
3529
3565
  provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3530
3566
  product: PRODUCT_NAMES.helpdesk,
@@ -3545,7 +3581,9 @@ var helpdeskTaskConfigs = {
3545
3581
  ["HELPDESK_CREATE_TRANSACTION" /* CreateTransaction */]: {
3546
3582
  type: import_developer_studio_api4.WorkflowDefinitionTaskType.http,
3547
3583
  key: "HELPDESK_CREATE_TRANSACTION" /* CreateTransaction */,
3548
- url: `${config3.workflowsApiUr}/functions/create-helpdesk-transaction`,
3584
+ url: `${getWorkflowsEnv(
3585
+ "workflowsApiUr"
3586
+ )}/functions/create-helpdesk-transaction`,
3549
3587
  customization: {
3550
3588
  provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3551
3589
  product: PRODUCT_NAMES.helpdesk,
@@ -3632,7 +3670,7 @@ var helpdeskTaskConfigs = {
3632
3670
  ["HELPDESK_FIND_TICKET" /* FindTicket */]: {
3633
3671
  key: "HELPDESK_FIND_TICKET" /* FindTicket */,
3634
3672
  type: import_developer_studio_api4.WorkflowDefinitionTaskType.http,
3635
- url: `${config3.workflowsApiUr}/functions/find-helpdesk-ticket`,
3673
+ url: `${getWorkflowsEnv("workflowsApiUr")}/functions/find-helpdesk-ticket`,
3636
3674
  customization: {
3637
3675
  provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3638
3676
  product: PRODUCT_NAMES.helpdesk,
@@ -3659,7 +3697,9 @@ var helpdeskTaskConfigs = {
3659
3697
  ["HELPDESK_UPDATE_TICKET" /* UpdateTicket */]: {
3660
3698
  key: "HELPDESK_UPDATE_TICKET" /* UpdateTicket */,
3661
3699
  type: import_developer_studio_api4.WorkflowDefinitionTaskType.http,
3662
- url: `${config3.workflowsApiUr}/functions/update-helpdesk-ticket`,
3700
+ url: `${getWorkflowsEnv(
3701
+ "workflowsApiUr"
3702
+ )}/functions/update-helpdesk-ticket`,
3663
3703
  customization: {
3664
3704
  provider: `${import_developer_studio_api4.IntegrationNames.Text}-${PRODUCT_TYPE.HD}`,
3665
3705
  product: PRODUCT_NAMES.helpdesk,
@@ -3697,7 +3737,9 @@ var helpdeskTaskTemplates = {
3697
3737
  taskReferenceName: "helpdesk_create_ticket",
3698
3738
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3699
3739
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3700
- uri: `${config3.workflowsApiUr}/functions/create-helpdesk-ticket`,
3740
+ uri: `${getWorkflowsEnv(
3741
+ "workflowsApiUr"
3742
+ )}/functions/create-helpdesk-ticket`,
3701
3743
  method: "POST",
3702
3744
  body: {
3703
3745
  requester: {
@@ -3721,7 +3763,9 @@ var helpdeskTaskTemplates = {
3721
3763
  taskReferenceName: "helpdesk_add_followers_to_ticket",
3722
3764
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3723
3765
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3724
- uri: `${config3.workflowsApiUr}/functions/add-followers-to-helpdesk-ticket`,
3766
+ uri: `${getWorkflowsEnv(
3767
+ "workflowsApiUr"
3768
+ )}/functions/add-followers-to-helpdesk-ticket`,
3725
3769
  method: "POST",
3726
3770
  body: {
3727
3771
  id: "#{id}",
@@ -3739,7 +3783,9 @@ var helpdeskTaskTemplates = {
3739
3783
  taskReferenceName: "helpdesk_add_tags_to_ticket",
3740
3784
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3741
3785
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3742
- uri: `${config3.workflowsApiUr}/functions/add-tags-to-helpdesk-ticket`,
3786
+ uri: `${getWorkflowsEnv(
3787
+ "workflowsApiUr"
3788
+ )}/functions/add-tags-to-helpdesk-ticket`,
3743
3789
  method: "POST",
3744
3790
  body: {
3745
3791
  id: "#{id}",
@@ -3757,7 +3803,9 @@ var helpdeskTaskTemplates = {
3757
3803
  taskReferenceName: "helpdesk_create_transaction",
3758
3804
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3759
3805
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3760
- uri: `${config3.workflowsApiUr}/functions/create-helpdesk-transaction`,
3806
+ uri: `${getWorkflowsEnv(
3807
+ "workflowsApiUr"
3808
+ )}/functions/create-helpdesk-transaction`,
3761
3809
  method: "POST",
3762
3810
  body: {
3763
3811
  ticketID: "#{ticket_id}",
@@ -3775,7 +3823,9 @@ var helpdeskTaskTemplates = {
3775
3823
  taskReferenceName: "helpdesk_find_ticket",
3776
3824
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3777
3825
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3778
- uri: `${config3.workflowsApiUr}/functions/find-helpdesk-ticket?id=#{ticket_id}`,
3826
+ uri: `${getWorkflowsEnv(
3827
+ "workflowsApiUr"
3828
+ )}/functions/find-helpdesk-ticket?id=#{ticket_id}`,
3779
3829
  method: "GET",
3780
3830
  headers: {
3781
3831
  Accept: "application/json",
@@ -3789,7 +3839,9 @@ var helpdeskTaskTemplates = {
3789
3839
  taskReferenceName: "helpdesk_update_ticket",
3790
3840
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3791
3841
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3792
- uri: `${config3.workflowsApiUr}/functions/update-helpdesk-ticket?id=#{ticket_id}`,
3842
+ uri: `${getWorkflowsEnv(
3843
+ "workflowsApiUr"
3844
+ )}/functions/update-helpdesk-ticket?id=#{ticket_id}`,
3793
3845
  method: "PATCH",
3794
3846
  headers: {
3795
3847
  Accept: "application/json",
@@ -3802,7 +3854,6 @@ var helpdeskTaskTemplates = {
3802
3854
 
3803
3855
  // src/views/Flows/Definitions/Mocks/HubSpot/index.ts
3804
3856
  var import_developer_studio_api5 = require("@livechat/developer-studio-api");
3805
- var config4 = getWorkflowsConfig();
3806
3857
  var hubspotContactProperties = {
3807
3858
  company: {
3808
3859
  type: "string",
@@ -3840,7 +3891,9 @@ var hubspotTaskConfigs = {
3840
3891
  ["HUBSPOT_CREATE_CONTACT" /* CreateContact */]: {
3841
3892
  key: "HUBSPOT_CREATE_CONTACT" /* CreateContact */,
3842
3893
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3843
- url: `${config4.workflowsApiUr}/functions/create-hubspot-contact`,
3894
+ url: `${getWorkflowsEnv(
3895
+ "workflowsApiUr"
3896
+ )}/functions/create-hubspot-contact`,
3844
3897
  customization: {
3845
3898
  provider: import_developer_studio_api5.IntegrationNames.HubSpot,
3846
3899
  product: import_developer_studio_api5.IntegrationDisplayNames.HubSpot,
@@ -3865,7 +3918,7 @@ var hubspotTaskConfigs = {
3865
3918
  // [HubSpotTaskNames.DeleteContact]: {
3866
3919
  // key: HubSpotTaskNames.DeleteContact,
3867
3920
  // type: WorkflowDefinitionTaskType.http,
3868
- // url: `${config.workflowsApiUr}/functions/delete-hubspot-contact`,
3921
+ // url: `${getWorkflowsEnv("workflowsApiUr")}/functions/delete-hubspot-contact`,
3869
3922
  // customization: {
3870
3923
  // provider: IntegrationNames.HubSpot,
3871
3924
  // product: IntegrationDisplayNames.HubSpot,
@@ -3890,7 +3943,7 @@ var hubspotTaskConfigs = {
3890
3943
  ["HUBSPOT_GET_CONTACT" /* GetContact */]: {
3891
3944
  key: "HUBSPOT_GET_CONTACT" /* GetContact */,
3892
3945
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3893
- url: `${config4.workflowsApiUr}/functions/get-hubspot-contact`,
3946
+ url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-hubspot-contact`,
3894
3947
  customization: {
3895
3948
  provider: import_developer_studio_api5.IntegrationNames.HubSpot,
3896
3949
  product: import_developer_studio_api5.IntegrationDisplayNames.HubSpot,
@@ -3919,7 +3972,9 @@ var hubspotTaskConfigs = {
3919
3972
  ["HUBSPOT_UPDATE_CONTACT" /* UpdateContact */]: {
3920
3973
  key: "HUBSPOT_UPDATE_CONTACT" /* UpdateContact */,
3921
3974
  type: import_developer_studio_api5.WorkflowDefinitionTaskType.http,
3922
- url: `${config4.workflowsApiUr}/functions/update-hubspot-contact`,
3975
+ url: `${getWorkflowsEnv(
3976
+ "workflowsApiUr"
3977
+ )}/functions/update-hubspot-contact`,
3923
3978
  customization: {
3924
3979
  provider: import_developer_studio_api5.IntegrationNames.HubSpot,
3925
3980
  product: import_developer_studio_api5.IntegrationDisplayNames.HubSpot,
@@ -3959,7 +4014,9 @@ var hubspotTaskTemplates = {
3959
4014
  taskReferenceName: "hubspot_create_contact",
3960
4015
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3961
4016
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
3962
- uri: `${config4.workflowsApiUr}/functions/create-hubspot-contact`,
4017
+ uri: `${getWorkflowsEnv(
4018
+ "workflowsApiUr"
4019
+ )}/functions/create-hubspot-contact`,
3963
4020
  method: "POST",
3964
4021
  body: {
3965
4022
  properties: {
@@ -3983,7 +4040,7 @@ var hubspotTaskTemplates = {
3983
4040
  // ...workflowHttpTask.inputParameters,
3984
4041
  // http_request: {
3985
4042
  // ...workflowHttpTask.inputParameters.http_request,
3986
- // uri: `${config.workflowsApiUr}/functions/delete-hubspot-contact?contactId=#{contactId}`,
4043
+ // uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/delete-hubspot-contact?contactId=#{contactId}`,
3987
4044
  // method: 'DELETE',
3988
4045
  // headers: {
3989
4046
  // Accept: 'application/json',
@@ -3997,7 +4054,9 @@ var hubspotTaskTemplates = {
3997
4054
  taskReferenceName: "hubspot_get_contact",
3998
4055
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
3999
4056
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4000
- uri: `${config4.workflowsApiUr}/functions/get-hubspot-contact?contactId=#{contactId}`,
4057
+ uri: `${getWorkflowsEnv(
4058
+ "workflowsApiUr"
4059
+ )}/functions/get-hubspot-contact?contactId=#{contactId}`,
4001
4060
  method: "GET",
4002
4061
  headers: {
4003
4062
  Accept: "application/json",
@@ -4011,7 +4070,9 @@ var hubspotTaskTemplates = {
4011
4070
  taskReferenceName: "hubspot_update_contact",
4012
4071
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4013
4072
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4014
- uri: `${config4.workflowsApiUr}/functions/update-hubspot-contact?contactId=#{contactId}`,
4073
+ uri: `${getWorkflowsEnv(
4074
+ "workflowsApiUr"
4075
+ )}/functions/update-hubspot-contact?contactId=#{contactId}`,
4015
4076
  method: "PATCH",
4016
4077
  body: {
4017
4078
  properties: {
@@ -4105,7 +4166,6 @@ var hubSpotTriggerTemplates = {
4105
4166
 
4106
4167
  // src/views/Flows/Definitions/Mocks/LiveChat/index.ts
4107
4168
  var import_developer_studio_api6 = require("@livechat/developer-studio-api");
4108
- var config5 = getWorkflowsConfig();
4109
4169
  var webhookSpecs = {
4110
4170
  new_chat: {
4111
4171
  output: {
@@ -4674,7 +4734,9 @@ var livechatTaskConfigs = {
4674
4734
  ["LIVECHAT_TRANSFER_CHAT" /* TransferChat */]: {
4675
4735
  key: "LIVECHAT_TRANSFER_CHAT" /* TransferChat */,
4676
4736
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4677
- url: `${config5.workflowsApiUr}/functions/transfer-livechat-chat`,
4737
+ url: `${getWorkflowsEnv(
4738
+ "workflowsApiUr"
4739
+ )}/functions/transfer-livechat-chat`,
4678
4740
  customization: {
4679
4741
  provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4680
4742
  product: PRODUCT_NAMES.livechat,
@@ -4717,7 +4779,7 @@ var livechatTaskConfigs = {
4717
4779
  ["LIVECHAT_TAG_CHAT" /* TagChat */]: {
4718
4780
  key: "LIVECHAT_TAG_CHAT" /* TagChat */,
4719
4781
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4720
- url: `${config5.workflowsApiUr}/functions/tag-livechat-chat`,
4782
+ url: `${getWorkflowsEnv("workflowsApiUr")}/functions/tag-livechat-chat`,
4721
4783
  customization: {
4722
4784
  provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4723
4785
  product: PRODUCT_NAMES.livechat,
@@ -4753,7 +4815,9 @@ var livechatTaskConfigs = {
4753
4815
  ["LIVECHAT_CHAT_TRANSCRIPT" /* GetChatTranscript */]: {
4754
4816
  key: "LIVECHAT_CHAT_TRANSCRIPT" /* GetChatTranscript */,
4755
4817
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4756
- url: `${config5.workflowsApiUr}/functions/get-livechat-chat-transcript`,
4818
+ url: `${getWorkflowsEnv(
4819
+ "workflowsApiUr"
4820
+ )}/functions/get-livechat-chat-transcript`,
4757
4821
  customization: {
4758
4822
  provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4759
4823
  product: PRODUCT_NAMES.livechat,
@@ -4802,7 +4866,9 @@ var livechatTaskConfigs = {
4802
4866
  ["LIVECHAT_SEND_MESSAGE" /* SendMessage */]: {
4803
4867
  key: "LIVECHAT_SEND_MESSAGE" /* SendMessage */,
4804
4868
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4805
- url: `${config5.workflowsApiUr}/functions/send-livechat-agent-message`,
4869
+ url: `${getWorkflowsEnv(
4870
+ "workflowsApiUr"
4871
+ )}/functions/send-livechat-agent-message`,
4806
4872
  customization: {
4807
4873
  provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4808
4874
  product: PRODUCT_NAMES.livechat,
@@ -4841,7 +4907,9 @@ var livechatTaskConfigs = {
4841
4907
  ["LIVECHAT_SUPERVISE_CHAT" /* SuperviseChat */]: {
4842
4908
  key: "LIVECHAT_SUPERVISE_CHAT" /* SuperviseChat */,
4843
4909
  type: import_developer_studio_api6.WorkflowDefinitionTaskType.http,
4844
- url: `${config5.workflowsApiUr}/functions/supervise-livechat-chat`,
4910
+ url: `${getWorkflowsEnv(
4911
+ "workflowsApiUr"
4912
+ )}/functions/supervise-livechat-chat`,
4845
4913
  customization: {
4846
4914
  provider: `${import_developer_studio_api6.IntegrationNames.Text}-${PRODUCT_TYPE.LC}`,
4847
4915
  product: PRODUCT_NAMES.livechat,
@@ -4874,7 +4942,7 @@ var livechatTaskTemplates = {
4874
4942
  taskReferenceName: "livechat_tag_chat",
4875
4943
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4876
4944
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4877
- uri: `${config5.workflowsApiUr}/functions/tag-livechat-chat`,
4945
+ uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/tag-livechat-chat`,
4878
4946
  method: "POST",
4879
4947
  body: {
4880
4948
  chat_id: "#{chat_id}",
@@ -4893,7 +4961,9 @@ var livechatTaskTemplates = {
4893
4961
  taskReferenceName: "livechat_transfer_chat",
4894
4962
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4895
4963
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4896
- uri: `${config5.workflowsApiUr}/functions/transfer-livechat-chat`,
4964
+ uri: `${getWorkflowsEnv(
4965
+ "workflowsApiUr"
4966
+ )}/functions/transfer-livechat-chat`,
4897
4967
  method: "POST",
4898
4968
  body: {
4899
4969
  chat_id: "#{chat_id}",
@@ -4912,7 +4982,9 @@ var livechatTaskTemplates = {
4912
4982
  taskReferenceName: "livechat_get_chat_transcript",
4913
4983
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4914
4984
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4915
- uri: `${config5.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=#{chat_id}`,
4985
+ uri: `${getWorkflowsEnv(
4986
+ "workflowsApiUr"
4987
+ )}/functions/get-livechat-chat-transcript?chat_id=#{chat_id}`,
4916
4988
  method: "GET",
4917
4989
  headers: {
4918
4990
  Accept: "application/json",
@@ -4926,7 +4998,9 @@ var livechatTaskTemplates = {
4926
4998
  taskReferenceName: "livechat_send_message",
4927
4999
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4928
5000
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4929
- uri: `${config5.workflowsApiUr}/functions/send-livechat-agent-message`,
5001
+ uri: `${getWorkflowsEnv(
5002
+ "workflowsApiUr"
5003
+ )}/functions/send-livechat-agent-message`,
4930
5004
  method: "POST",
4931
5005
  body: {
4932
5006
  chat_id: "#{chat_id}",
@@ -4945,7 +5019,9 @@ var livechatTaskTemplates = {
4945
5019
  taskReferenceName: "livechat_supervise_chat",
4946
5020
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
4947
5021
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
4948
- uri: `${config5.workflowsApiUr}/functions/supervise-livechat-chat`,
5022
+ uri: `${getWorkflowsEnv(
5023
+ "workflowsApiUr"
5024
+ )}/functions/supervise-livechat-chat`,
4949
5025
  method: "POST",
4950
5026
  body: {
4951
5027
  chat_id: "#{chat_id}",
@@ -5250,7 +5326,6 @@ var livechatTriggerTemplates = {
5250
5326
 
5251
5327
  // src/views/Flows/Definitions/Mocks/MailChimp/index.ts
5252
5328
  var import_developer_studio_api7 = require("@livechat/developer-studio-api");
5253
- var config6 = getWorkflowsConfig();
5254
5329
  var mailchimpCampaignTrackingBody = {
5255
5330
  type: "object",
5256
5331
  required: ["opens", "html_clicks", "text_clicks"],
@@ -5437,7 +5512,9 @@ var mailchimpTaskConfigs = {
5437
5512
  ["MAILCHIMP_ADD_SUBSCRIBER" /* AddSubscriber */]: {
5438
5513
  key: "MAILCHIMP_ADD_SUBSCRIBER" /* AddSubscriber */,
5439
5514
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5440
- url: `${config6.workflowsApiUr}/functions/add-mailchimp-subscriber`,
5515
+ url: `${getWorkflowsEnv(
5516
+ "workflowsApiUr"
5517
+ )}/functions/add-mailchimp-subscriber`,
5441
5518
  customization: {
5442
5519
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5443
5520
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5480,7 +5557,9 @@ var mailchimpTaskConfigs = {
5480
5557
  ["MAILCHIMP_ADD_CAMPAIGN" /* AddCampaign */]: {
5481
5558
  key: "MAILCHIMP_ADD_CAMPAIGN" /* AddCampaign */,
5482
5559
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5483
- url: `${config6.workflowsApiUr}/functions/add-mailchimp-campaign`,
5560
+ url: `${getWorkflowsEnv(
5561
+ "workflowsApiUr"
5562
+ )}/functions/add-mailchimp-campaign`,
5484
5563
  customization: {
5485
5564
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5486
5565
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5525,7 +5604,9 @@ var mailchimpTaskConfigs = {
5525
5604
  ["MAILCHIMP_SEND_CAMPAIGN" /* SendCampaign */]: {
5526
5605
  key: "MAILCHIMP_SEND_CAMPAIGN" /* SendCampaign */,
5527
5606
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5528
- url: `${config6.workflowsApiUr}/functions/send-mailchimp-campaign`,
5607
+ url: `${getWorkflowsEnv(
5608
+ "workflowsApiUr"
5609
+ )}/functions/send-mailchimp-campaign`,
5529
5610
  customization: {
5530
5611
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5531
5612
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5556,7 +5637,9 @@ var mailchimpTaskConfigs = {
5556
5637
  ["MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER" /* AddOrUpdateSubscriber */]: {
5557
5638
  key: "MAILCHIMP_ADD_OR_UPDATE_SUBSCRIBER" /* AddOrUpdateSubscriber */,
5558
5639
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5559
- url: `${config6.workflowsApiUr}/functions/add-or-update-mailchimp-subscriber`,
5640
+ url: `${getWorkflowsEnv(
5641
+ "workflowsApiUr"
5642
+ )}/functions/add-or-update-mailchimp-subscriber`,
5560
5643
  customization: {
5561
5644
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5562
5645
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5604,7 +5687,9 @@ var mailchimpTaskConfigs = {
5604
5687
  ["MAILCHIMP_UPDATE_SUBSCRIBER" /* UpdateSubscriber */]: {
5605
5688
  key: "MAILCHIMP_UPDATE_SUBSCRIBER" /* UpdateSubscriber */,
5606
5689
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5607
- url: `${config6.workflowsApiUr}/functions/update-mailchimp-subscriber`,
5690
+ url: `${getWorkflowsEnv(
5691
+ "workflowsApiUr"
5692
+ )}/functions/update-mailchimp-subscriber`,
5608
5693
  customization: {
5609
5694
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5610
5695
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5652,7 +5737,9 @@ var mailchimpTaskConfigs = {
5652
5737
  ["MAILCHIMP_ARCHIVE_SUBSCRIBER" /* ArchiveSubscriber */]: {
5653
5738
  key: "MAILCHIMP_ARCHIVE_SUBSCRIBER" /* ArchiveSubscriber */,
5654
5739
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5655
- url: `${config6.workflowsApiUr}/functions/archive-mailchimp-subscriber`,
5740
+ url: `${getWorkflowsEnv(
5741
+ "workflowsApiUr"
5742
+ )}/functions/archive-mailchimp-subscriber`,
5656
5743
  customization: {
5657
5744
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5658
5745
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5687,7 +5774,9 @@ var mailchimpTaskConfigs = {
5687
5774
  ["MAILCHIMP_DELETE_SUBSCRIBER" /* DeleteSubscriber */]: {
5688
5775
  key: "MAILCHIMP_DELETE_SUBSCRIBER" /* DeleteSubscriber */,
5689
5776
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5690
- url: `${config6.workflowsApiUr}/functions/delete-mailchimp-subscriber`,
5777
+ url: `${getWorkflowsEnv(
5778
+ "workflowsApiUr"
5779
+ )}/functions/delete-mailchimp-subscriber`,
5691
5780
  customization: {
5692
5781
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5693
5782
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5722,7 +5811,9 @@ var mailchimpTaskConfigs = {
5722
5811
  ["MAILCHIMP_ADD_SUBSCRIBER_TAG" /* AddSubscriberTag */]: {
5723
5812
  key: "MAILCHIMP_ADD_SUBSCRIBER_TAG" /* AddSubscriberTag */,
5724
5813
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5725
- url: `${config6.workflowsApiUr}/functions/add-mailchimp-subscriber-tag`,
5814
+ url: `${getWorkflowsEnv(
5815
+ "workflowsApiUr"
5816
+ )}/functions/add-mailchimp-subscriber-tag`,
5726
5817
  customization: {
5727
5818
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5728
5819
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5762,7 +5853,9 @@ var mailchimpTaskConfigs = {
5762
5853
  ["MAILCHIMP_ADD_SUBSCRIBER_EVENT" /* AddSubscriberEvent */]: {
5763
5854
  key: "MAILCHIMP_ADD_SUBSCRIBER_EVENT" /* AddSubscriberEvent */,
5764
5855
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5765
- url: `${config6.workflowsApiUr}/functions/add-mailchimp-subscriber-event`,
5856
+ url: `${getWorkflowsEnv(
5857
+ "workflowsApiUr"
5858
+ )}/functions/add-mailchimp-subscriber-event`,
5766
5859
  customization: {
5767
5860
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5768
5861
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5818,7 +5911,9 @@ var mailchimpTaskConfigs = {
5818
5911
  ["MAILCHIMP_ADD_SUBSCRIBER_NOTE" /* AddSubscriberNote */]: {
5819
5912
  key: "MAILCHIMP_ADD_SUBSCRIBER_NOTE" /* AddSubscriberNote */,
5820
5913
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5821
- url: `${config6.workflowsApiUr}/functions/add-mailchimp-subscriber-note`,
5914
+ url: `${getWorkflowsEnv(
5915
+ "workflowsApiUr"
5916
+ )}/functions/add-mailchimp-subscriber-note`,
5822
5917
  customization: {
5823
5918
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5824
5919
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5858,7 +5953,9 @@ var mailchimpTaskConfigs = {
5858
5953
  ["MAILCHIMP_DELETE_SUBSCRIBER_TAG" /* DeleteSubscriberTag */]: {
5859
5954
  key: "MAILCHIMP_DELETE_SUBSCRIBER_TAG" /* DeleteSubscriberTag */,
5860
5955
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5861
- url: `${config6.workflowsApiUr}/functions/delete-mailchimp-subscriber-tag`,
5956
+ url: `${getWorkflowsEnv(
5957
+ "workflowsApiUr"
5958
+ )}/functions/delete-mailchimp-subscriber-tag`,
5862
5959
  customization: {
5863
5960
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5864
5961
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5897,7 +5994,9 @@ var mailchimpTaskConfigs = {
5897
5994
  ["MAILCHIMP_GET_SUBSCRIBER_TAGS" /* GetSubscriberTags */]: {
5898
5995
  key: "MAILCHIMP_GET_SUBSCRIBER_TAGS" /* GetSubscriberTags */,
5899
5996
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5900
- url: `${config6.workflowsApiUr}/functions/get-mailchimp-subscriber-tags`,
5997
+ url: `${getWorkflowsEnv(
5998
+ "workflowsApiUr"
5999
+ )}/functions/get-mailchimp-subscriber-tags`,
5901
6000
  customization: {
5902
6001
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5903
6002
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -5962,7 +6061,9 @@ var mailchimpTaskConfigs = {
5962
6061
  ["MAILCHIMP_GET_SUBSCRIBER" /* GetSubscriber */]: {
5963
6062
  key: "MAILCHIMP_GET_SUBSCRIBER" /* GetSubscriber */,
5964
6063
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
5965
- url: `${config6.workflowsApiUr}/functions/get-mailchimp-subscriber`,
6064
+ url: `${getWorkflowsEnv(
6065
+ "workflowsApiUr"
6066
+ )}/functions/get-mailchimp-subscriber`,
5966
6067
  customization: {
5967
6068
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
5968
6069
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -6137,7 +6238,9 @@ var mailchimpTaskConfigs = {
6137
6238
  ["MAILCHIMP_GET_SUBSCRIBERS" /* GetSubscribers */]: {
6138
6239
  key: "MAILCHIMP_GET_SUBSCRIBERS" /* GetSubscribers */,
6139
6240
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
6140
- url: `${config6.workflowsApiUr}/functions/find-mailchimp-subscribers`,
6241
+ url: `${getWorkflowsEnv(
6242
+ "workflowsApiUr"
6243
+ )}/functions/find-mailchimp-subscribers`,
6141
6244
  customization: {
6142
6245
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6143
6246
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -6313,7 +6416,9 @@ var mailchimpTaskConfigs = {
6313
6416
  ["MAILCHIMP_FIND_CAMPAIGN" /* FindCampaign */]: {
6314
6417
  key: "MAILCHIMP_FIND_CAMPAIGN" /* FindCampaign */,
6315
6418
  type: import_developer_studio_api7.WorkflowDefinitionTaskType.http,
6316
- url: `${config6.workflowsApiUr}/functions/find-mailchimp-campaign`,
6419
+ url: `${getWorkflowsEnv(
6420
+ "workflowsApiUr"
6421
+ )}/functions/find-mailchimp-campaign`,
6317
6422
  customization: {
6318
6423
  provider: import_developer_studio_api7.IntegrationNames.Mailchimp,
6319
6424
  product: import_developer_studio_api7.IntegrationDisplayNames.Mailchimp,
@@ -6475,7 +6580,9 @@ var mailchimpTaskTemplates = {
6475
6580
  taskReferenceName: "mailchimp_add_contact",
6476
6581
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6477
6582
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6478
- uri: `${config6.workflowsApiUr}/functions/add-mailchimp-subscriber`,
6583
+ uri: `${getWorkflowsEnv(
6584
+ "workflowsApiUr"
6585
+ )}/functions/add-mailchimp-subscriber`,
6479
6586
  method: "POST",
6480
6587
  body: {
6481
6588
  list_id: null,
@@ -6495,7 +6602,9 @@ var mailchimpTaskTemplates = {
6495
6602
  taskReferenceName: "mailchimp_add_campaign",
6496
6603
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6497
6604
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6498
- uri: `${config6.workflowsApiUr}/functions/add-mailchimp-campaign`,
6605
+ uri: `${getWorkflowsEnv(
6606
+ "workflowsApiUr"
6607
+ )}/functions/add-mailchimp-campaign`,
6499
6608
  method: "POST",
6500
6609
  body: {
6501
6610
  type: null,
@@ -6526,7 +6635,9 @@ var mailchimpTaskTemplates = {
6526
6635
  taskReferenceName: "mailchimp_send_campaign",
6527
6636
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6528
6637
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6529
- uri: `${config6.workflowsApiUr}/functions/send-mailchimp-campaign`,
6638
+ uri: `${getWorkflowsEnv(
6639
+ "workflowsApiUr"
6640
+ )}/functions/send-mailchimp-campaign`,
6530
6641
  method: "POST",
6531
6642
  body: {
6532
6643
  campaign_id: null
@@ -6543,7 +6654,9 @@ var mailchimpTaskTemplates = {
6543
6654
  taskReferenceName: "mailchimp_add_or_update_subscriber",
6544
6655
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6545
6656
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6546
- uri: `${config6.workflowsApiUr}/functions/add-or-update-mailchimp-subscriber`,
6657
+ uri: `${getWorkflowsEnv(
6658
+ "workflowsApiUr"
6659
+ )}/functions/add-or-update-mailchimp-subscriber`,
6547
6660
  method: "POST",
6548
6661
  body: {
6549
6662
  list_id: null,
@@ -6563,7 +6676,9 @@ var mailchimpTaskTemplates = {
6563
6676
  taskReferenceName: "mailchimp_update_subscriber",
6564
6677
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6565
6678
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6566
- uri: `${config6.workflowsApiUr}/functions/update-mailchimp-subscriber`,
6679
+ uri: `${getWorkflowsEnv(
6680
+ "workflowsApiUr"
6681
+ )}/functions/update-mailchimp-subscriber`,
6567
6682
  method: "POST",
6568
6683
  body: {
6569
6684
  list_id: null,
@@ -6583,7 +6698,9 @@ var mailchimpTaskTemplates = {
6583
6698
  taskReferenceName: "mailchimp_archive_subscriber",
6584
6699
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6585
6700
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6586
- uri: `${config6.workflowsApiUr}/functions/archive-mailchimp-subscriber`,
6701
+ uri: `${getWorkflowsEnv(
6702
+ "workflowsApiUr"
6703
+ )}/functions/archive-mailchimp-subscriber`,
6587
6704
  method: "POST",
6588
6705
  body: {
6589
6706
  list_id: null,
@@ -6601,7 +6718,9 @@ var mailchimpTaskTemplates = {
6601
6718
  taskReferenceName: "mailchimp_delete_subscriber",
6602
6719
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6603
6720
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6604
- uri: `${config6.workflowsApiUr}/functions/delete-mailchimp-subscriber`,
6721
+ uri: `${getWorkflowsEnv(
6722
+ "workflowsApiUr"
6723
+ )}/functions/delete-mailchimp-subscriber`,
6605
6724
  method: "POST",
6606
6725
  body: {
6607
6726
  list_id: null,
@@ -6619,7 +6738,9 @@ var mailchimpTaskTemplates = {
6619
6738
  taskReferenceName: "mailchimp_add_subscriber_tag",
6620
6739
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6621
6740
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6622
- uri: `${config6.workflowsApiUr}/functions/add-mailchimp-subscriber-tag`,
6741
+ uri: `${getWorkflowsEnv(
6742
+ "workflowsApiUr"
6743
+ )}/functions/add-mailchimp-subscriber-tag`,
6623
6744
  method: "POST",
6624
6745
  body: {
6625
6746
  list_id: null,
@@ -6638,7 +6759,9 @@ var mailchimpTaskTemplates = {
6638
6759
  taskReferenceName: "mailchimp_add_subscriber_event",
6639
6760
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6640
6761
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6641
- uri: `${config6.workflowsApiUr}/functions/add-mailchimp-subscriber-event`,
6762
+ uri: `${getWorkflowsEnv(
6763
+ "workflowsApiUr"
6764
+ )}/functions/add-mailchimp-subscriber-event`,
6642
6765
  method: "POST",
6643
6766
  body: {
6644
6767
  list_id: null,
@@ -6657,7 +6780,9 @@ var mailchimpTaskTemplates = {
6657
6780
  taskReferenceName: "mailchimp_add_subscriber_note",
6658
6781
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6659
6782
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6660
- uri: `${config6.workflowsApiUr}/functions/add-mailchimp-subscriber-note`,
6783
+ uri: `${getWorkflowsEnv(
6784
+ "workflowsApiUr"
6785
+ )}/functions/add-mailchimp-subscriber-note`,
6661
6786
  method: "POST",
6662
6787
  body: {
6663
6788
  list_id: null,
@@ -6676,7 +6801,9 @@ var mailchimpTaskTemplates = {
6676
6801
  taskReferenceName: "mailchimp_delete_subscriber_tag",
6677
6802
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6678
6803
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6679
- uri: `${config6.workflowsApiUr}/functions/delete-mailchimp-subscriber-tag`,
6804
+ uri: `${getWorkflowsEnv(
6805
+ "workflowsApiUr"
6806
+ )}/functions/delete-mailchimp-subscriber-tag`,
6680
6807
  method: "POST",
6681
6808
  body: {
6682
6809
  list_id: null,
@@ -6695,7 +6822,9 @@ var mailchimpTaskTemplates = {
6695
6822
  taskReferenceName: "mailchimp_get_subscriber_tags",
6696
6823
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6697
6824
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6698
- uri: `${config6.workflowsApiUr}/functions/get-mailchimp-subscriber-tags?list_id=#{list_id}&email=#{email}`,
6825
+ uri: `${getWorkflowsEnv(
6826
+ "workflowsApiUr"
6827
+ )}/functions/get-mailchimp-subscriber-tags?list_id=#{list_id}&email=#{email}`,
6699
6828
  method: "GET",
6700
6829
  body: {},
6701
6830
  headers: {
@@ -6710,7 +6839,9 @@ var mailchimpTaskTemplates = {
6710
6839
  taskReferenceName: "mailchimp_get_subscriber",
6711
6840
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6712
6841
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6713
- uri: `${config6.workflowsApiUr}/functions/get-mailchimp-subscriber?list_id=#{list_id}&email=#{email}`,
6842
+ uri: `${getWorkflowsEnv(
6843
+ "workflowsApiUr"
6844
+ )}/functions/get-mailchimp-subscriber?list_id=#{list_id}&email=#{email}`,
6714
6845
  method: "GET",
6715
6846
  body: {},
6716
6847
  headers: {
@@ -6725,7 +6856,9 @@ var mailchimpTaskTemplates = {
6725
6856
  taskReferenceName: "mailchimp_get_subscribers",
6726
6857
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6727
6858
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6728
- uri: `${config6.workflowsApiUr}/functions/find-mailchimp-subscribers?list_id=#{list_id}&query=#{query}`,
6859
+ uri: `${getWorkflowsEnv(
6860
+ "workflowsApiUr"
6861
+ )}/functions/find-mailchimp-subscribers?list_id=#{list_id}&query=#{query}`,
6729
6862
  method: "GET",
6730
6863
  body: {},
6731
6864
  headers: {
@@ -6740,7 +6873,9 @@ var mailchimpTaskTemplates = {
6740
6873
  taskReferenceName: "mailchimp_find_campaign",
6741
6874
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
6742
6875
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
6743
- uri: `${config6.workflowsApiUr}/functions/find-mailchimp-campaign?campaign_id=#{campaign_id}`,
6876
+ uri: `${getWorkflowsEnv(
6877
+ "workflowsApiUr"
6878
+ )}/functions/find-mailchimp-campaign?campaign_id=#{campaign_id}`,
6744
6879
  method: "POST",
6745
6880
  body: {},
6746
6881
  headers: {
@@ -6852,12 +6987,13 @@ var mailchimpTriggerTemplates = {
6852
6987
 
6853
6988
  // src/views/Flows/Definitions/Mocks/OpenAI/index.ts
6854
6989
  var import_developer_studio_api8 = require("@livechat/developer-studio-api");
6855
- var config7 = getWorkflowsConfig();
6856
6990
  var openAiTaskConfigs = {
6857
6991
  ["OPENAI_EXTRACT_ORDER_REQUEST" /* ExtractOrderRequest */]: {
6858
6992
  key: "OPENAI_EXTRACT_ORDER_REQUEST" /* ExtractOrderRequest */,
6859
6993
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
6860
- url: `${config7.workflowsApiUr}/functions/extract-order-from-text`,
6994
+ url: `${getWorkflowsEnv(
6995
+ "workflowsApiUr"
6996
+ )}/functions/extract-order-from-text`,
6861
6997
  customization: {
6862
6998
  provider: OTHER_PRODUCT_TYPE.OPENAI,
6863
6999
  product: "OpenAI",
@@ -6946,7 +7082,9 @@ var openAiTaskConfigs = {
6946
7082
  ["OPENAI_ANALYZE_TEXT_SENTIMENT" /* AnalyzeTextSentiment */]: {
6947
7083
  key: "OPENAI_ANALYZE_TEXT_SENTIMENT" /* AnalyzeTextSentiment */,
6948
7084
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
6949
- url: `${config7.workflowsApiUr}/functions/analyze-text-sentiment`,
7085
+ url: `${getWorkflowsEnv(
7086
+ "workflowsApiUr"
7087
+ )}/functions/analyze-text-sentiment`,
6950
7088
  customization: {
6951
7089
  provider: OTHER_PRODUCT_TYPE.OPENAI,
6952
7090
  product: "OpenAI",
@@ -6981,7 +7119,7 @@ var openAiTaskConfigs = {
6981
7119
  ["OPENAI_SUMMARIZE_TEXT" /* SummarizeText */]: {
6982
7120
  key: "OPENAI_SUMMARIZE_TEXT" /* SummarizeText */,
6983
7121
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
6984
- url: `${config7.workflowsApiUr}/functions/summarize-text`,
7122
+ url: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
6985
7123
  customization: {
6986
7124
  provider: OTHER_PRODUCT_TYPE.OPENAI,
6987
7125
  product: "OpenAI",
@@ -7016,7 +7154,7 @@ var openAiTaskConfigs = {
7016
7154
  ["OPENAI_MODERATE_TEXT" /* ModerateText */]: {
7017
7155
  key: "OPENAI_MODERATE_TEXT" /* ModerateText */,
7018
7156
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
7019
- url: `${config7.workflowsApiUr}/functions/moderate-text`,
7157
+ url: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
7020
7158
  customization: {
7021
7159
  provider: OTHER_PRODUCT_TYPE.OPENAI,
7022
7160
  product: "OpenAI",
@@ -7050,7 +7188,7 @@ var openAiTaskConfigs = {
7050
7188
  ["OPENAI_CATEGORIZE_TEXT" /* CategorizeText */]: {
7051
7189
  key: "OPENAI_CATEGORIZE_TEXT" /* CategorizeText */,
7052
7190
  type: import_developer_studio_api8.WorkflowDefinitionTaskType.http,
7053
- url: `${config7.workflowsApiUr}/functions/categorize-text`,
7191
+ url: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
7054
7192
  customization: {
7055
7193
  provider: OTHER_PRODUCT_TYPE.OPENAI,
7056
7194
  product: "OpenAI",
@@ -7097,7 +7235,9 @@ var openAiTaskTemplates = {
7097
7235
  taskReferenceName: "openai_extract_order_request",
7098
7236
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7099
7237
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7100
- uri: `${config7.workflowsApiUr}/functions/extract-order-from-text`,
7238
+ uri: `${getWorkflowsEnv(
7239
+ "workflowsApiUr"
7240
+ )}/functions/extract-order-from-text`,
7101
7241
  method: "POST",
7102
7242
  body: {
7103
7243
  text: "#{chat_transcript}"
@@ -7114,7 +7254,9 @@ var openAiTaskTemplates = {
7114
7254
  taskReferenceName: "openai_text_sentiment",
7115
7255
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7116
7256
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7117
- uri: `${config7.workflowsApiUr}/functions/analyze-text-sentiment`,
7257
+ uri: `${getWorkflowsEnv(
7258
+ "workflowsApiUr"
7259
+ )}/functions/analyze-text-sentiment`,
7118
7260
  method: "POST",
7119
7261
  body: {
7120
7262
  text: "#{chat_transcript}"
@@ -7131,7 +7273,7 @@ var openAiTaskTemplates = {
7131
7273
  taskReferenceName: "openai_summarize_text",
7132
7274
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7133
7275
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7134
- uri: `${config7.workflowsApiUr}/functions/summarize-text`,
7276
+ uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/summarize-text`,
7135
7277
  method: "POST",
7136
7278
  body: {
7137
7279
  text: "#{chat_transcript}"
@@ -7148,7 +7290,7 @@ var openAiTaskTemplates = {
7148
7290
  taskReferenceName: "openai_moderate_text",
7149
7291
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7150
7292
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7151
- uri: `${config7.workflowsApiUr}/functions/moderate-text`,
7293
+ uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/moderate-text`,
7152
7294
  method: "POST",
7153
7295
  body: {
7154
7296
  text: "#{chat_transcript}"
@@ -7165,7 +7307,7 @@ var openAiTaskTemplates = {
7165
7307
  taskReferenceName: "openai_categorize_text",
7166
7308
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
7167
7309
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
7168
- uri: `${config7.workflowsApiUr}/functions/categorize-text`,
7310
+ uri: `${getWorkflowsEnv("workflowsApiUr")}/functions/categorize-text`,
7169
7311
  method: "POST",
7170
7312
  body: {
7171
7313
  text: "#{chat_transcript}"
@@ -7181,7 +7323,6 @@ var openAiTaskTemplates = {
7181
7323
 
7182
7324
  // src/views/Flows/Definitions/Mocks/Shopify/index.ts
7183
7325
  var import_developer_studio_api9 = require("@livechat/developer-studio-api");
7184
- var config8 = getWorkflowsConfig();
7185
7326
  var shopifyCustomerAddressBody = {
7186
7327
  id: {
7187
7328
  type: "number",
@@ -7605,7 +7746,9 @@ var shopifyTaskConfigs = {
7605
7746
  ["SHOPIFY_CREATE_CUSTOMER" /* CreateCustomer */]: {
7606
7747
  key: "SHOPIFY_CREATE_CUSTOMER" /* CreateCustomer */,
7607
7748
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7608
- url: `${config8.workflowsApiUr}/functions/create-shopify-customer`,
7749
+ url: `${getWorkflowsEnv(
7750
+ "workflowsApiUr"
7751
+ )}/functions/create-shopify-customer`,
7609
7752
  customization: {
7610
7753
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7611
7754
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7629,7 +7772,9 @@ var shopifyTaskConfigs = {
7629
7772
  ["SHOPIFY_CREATE_ORDER" /* CreateOrder */]: {
7630
7773
  key: "SHOPIFY_CREATE_ORDER" /* CreateOrder */,
7631
7774
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7632
- url: `${config8.workflowsApiUr}/functions/create-shopify-order`,
7775
+ url: `${getWorkflowsEnv(
7776
+ "workflowsApiUr"
7777
+ )}/functions/create-shopify-order`,
7633
7778
  customization: {
7634
7779
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7635
7780
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7652,7 +7797,9 @@ var shopifyTaskConfigs = {
7652
7797
  ["SHOPIFY_CREATE_DRAFT_ORDER" /* CreateDraftOrder */]: {
7653
7798
  key: "SHOPIFY_CREATE_DRAFT_ORDER" /* CreateDraftOrder */,
7654
7799
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7655
- url: `${config8.workflowsApiUr}/functions/create-shopify-draft-order`,
7800
+ url: `${getWorkflowsEnv(
7801
+ "workflowsApiUr"
7802
+ )}/functions/create-shopify-draft-order`,
7656
7803
  customization: {
7657
7804
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7658
7805
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7675,7 +7822,9 @@ var shopifyTaskConfigs = {
7675
7822
  ["SHOPIFY_CREATE_PRODUCT" /* CreateProduct */]: {
7676
7823
  key: "SHOPIFY_CREATE_PRODUCT" /* CreateProduct */,
7677
7824
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7678
- url: `${config8.workflowsApiUr}/functions/create-shopify-product`,
7825
+ url: `${getWorkflowsEnv(
7826
+ "workflowsApiUr"
7827
+ )}/functions/create-shopify-product`,
7679
7828
  customization: {
7680
7829
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7681
7830
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7698,7 +7847,9 @@ var shopifyTaskConfigs = {
7698
7847
  ["SHOPIFY_CREATE_PRODUCT_VARIANT" /* CreateProductVariant */]: {
7699
7848
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7700
7849
  key: "SHOPIFY_CREATE_PRODUCT_VARIANT" /* CreateProductVariant */,
7701
- url: `${config8.workflowsApiUr}/functions/create-shopify-product-variant`,
7850
+ url: `${getWorkflowsEnv(
7851
+ "workflowsApiUr"
7852
+ )}/functions/create-shopify-product-variant`,
7702
7853
  customization: {
7703
7854
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7704
7855
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7721,7 +7872,9 @@ var shopifyTaskConfigs = {
7721
7872
  ["SHOPIFY_GET_CUSTOMER" /* GetCustomer */]: {
7722
7873
  key: "SHOPIFY_GET_CUSTOMER" /* GetCustomer */,
7723
7874
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7724
- url: `${config8.workflowsApiUr}/functions/get-shopify-customer`,
7875
+ url: `${getWorkflowsEnv(
7876
+ "workflowsApiUr"
7877
+ )}/functions/get-shopify-customer`,
7725
7878
  customization: {
7726
7879
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7727
7880
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7750,7 +7903,9 @@ var shopifyTaskConfigs = {
7750
7903
  ["SHOPIFY_GET_CUSTOMER_ORDERS" /* GetCustomerOrders */]: {
7751
7904
  key: "SHOPIFY_GET_CUSTOMER_ORDERS" /* GetCustomerOrders */,
7752
7905
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7753
- url: `${config8.workflowsApiUr}/functions/get-shopify-customer-orders`,
7906
+ url: `${getWorkflowsEnv(
7907
+ "workflowsApiUr"
7908
+ )}/functions/get-shopify-customer-orders`,
7754
7909
  customization: {
7755
7910
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7756
7911
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7782,7 +7937,9 @@ var shopifyTaskConfigs = {
7782
7937
  ["SHOPIFY_GET_CUSTOMER_LAST_ORDER" /* GetCustomerLastOrder */]: {
7783
7938
  key: "SHOPIFY_GET_CUSTOMER_LAST_ORDER" /* GetCustomerLastOrder */,
7784
7939
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7785
- url: `${config8.workflowsApiUr}/functions/get-shopify-customer-last-order`,
7940
+ url: `${getWorkflowsEnv(
7941
+ "workflowsApiUr"
7942
+ )}/functions/get-shopify-customer-last-order`,
7786
7943
  customization: {
7787
7944
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7788
7945
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7811,7 +7968,7 @@ var shopifyTaskConfigs = {
7811
7968
  ["SHOPIFY_GET_PRODUCT" /* GetProduct */]: {
7812
7969
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7813
7970
  key: "SHOPIFY_GET_PRODUCT" /* GetProduct */,
7814
- url: `${config8.workflowsApiUr}/functions/get-shopify-product`,
7971
+ url: `${getWorkflowsEnv("workflowsApiUr")}/functions/get-shopify-product`,
7815
7972
  customization: {
7816
7973
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7817
7974
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7841,7 +7998,9 @@ var shopifyTaskConfigs = {
7841
7998
  ["SHOPIFY_GET_PRODUCT_VARIANT" /* GetProductVariant */]: {
7842
7999
  key: "SHOPIFY_GET_PRODUCT_VARIANT" /* GetProductVariant */,
7843
8000
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7844
- url: `${config8.workflowsApiUr}/functions/get-shopify-product-variant`,
8001
+ url: `${getWorkflowsEnv(
8002
+ "workflowsApiUr"
8003
+ )}/functions/get-shopify-product-variant`,
7845
8004
  customization: {
7846
8005
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7847
8006
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7874,7 +8033,9 @@ var shopifyTaskConfigs = {
7874
8033
  ["SHOPIFY_UPDATE_INVENTORY_QUANTITY" /* UpdateInventoryQuantity */]: {
7875
8034
  key: "SHOPIFY_UPDATE_INVENTORY_QUANTITY" /* UpdateInventoryQuantity */,
7876
8035
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7877
- url: `${config8.workflowsApiUr}/functions/update-shopify-inventory-quantity`,
8036
+ url: `${getWorkflowsEnv(
8037
+ "workflowsApiUr"
8038
+ )}/functions/update-shopify-inventory-quantity`,
7878
8039
  customization: {
7879
8040
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7880
8041
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7940,7 +8101,9 @@ var shopifyTaskConfigs = {
7940
8101
  ["SHOPIFY_UPDATE_ORDER" /* UpdateOrder */]: {
7941
8102
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7942
8103
  key: "SHOPIFY_UPDATE_ORDER" /* UpdateOrder */,
7943
- url: `${config8.workflowsApiUr}/functions/update-shopify-order`,
8104
+ url: `${getWorkflowsEnv(
8105
+ "workflowsApiUr"
8106
+ )}/functions/update-shopify-order`,
7944
8107
  customization: {
7945
8108
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7946
8109
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7963,7 +8126,9 @@ var shopifyTaskConfigs = {
7963
8126
  ["SHOPIFY_UPDATE_PRODUCT" /* UpdateProduct */]: {
7964
8127
  key: "SHOPIFY_UPDATE_PRODUCT" /* UpdateProduct */,
7965
8128
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7966
- url: `${config8.workflowsApiUr}/functions/update-shopify-product`,
8129
+ url: `${getWorkflowsEnv(
8130
+ "workflowsApiUr"
8131
+ )}/functions/update-shopify-product`,
7967
8132
  customization: {
7968
8133
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7969
8134
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -7986,7 +8151,9 @@ var shopifyTaskConfigs = {
7986
8151
  ["SHOPIFY_UPDATE_PRODUCT_VARIANT" /* UpdateProductVariant */]: {
7987
8152
  key: "SHOPIFY_UPDATE_PRODUCT_VARIANT" /* UpdateProductVariant */,
7988
8153
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
7989
- url: `${config8.workflowsApiUr}/functions/update-shopify-product-variant`,
8154
+ url: `${getWorkflowsEnv(
8155
+ "workflowsApiUr"
8156
+ )}/functions/update-shopify-product-variant`,
7990
8157
  customization: {
7991
8158
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
7992
8159
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -8009,7 +8176,9 @@ var shopifyTaskConfigs = {
8009
8176
  ["SHOPIFY_UPDATE_CUSTOMER" /* UpdateCustomer */]: {
8010
8177
  key: "SHOPIFY_UPDATE_CUSTOMER" /* UpdateCustomer */,
8011
8178
  type: import_developer_studio_api9.WorkflowDefinitionTaskType.http,
8012
- url: `${config8.workflowsApiUr}/functions/update-shopify-customer`,
8179
+ url: `${getWorkflowsEnv(
8180
+ "workflowsApiUr"
8181
+ )}/functions/update-shopify-customer`,
8013
8182
  customization: {
8014
8183
  provider: import_developer_studio_api9.IntegrationNames.Shopify,
8015
8184
  product: import_developer_studio_api9.IntegrationDisplayNames.Shopify,
@@ -8036,7 +8205,9 @@ var shopifyTaskTemplates = {
8036
8205
  taskReferenceName: "shopify_create_customer",
8037
8206
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8038
8207
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8039
- uri: `${config8.workflowsApiUr}/functions/create-shopify-customer`,
8208
+ uri: `${getWorkflowsEnv(
8209
+ "workflowsApiUr"
8210
+ )}/functions/create-shopify-customer`,
8040
8211
  method: "POST",
8041
8212
  body: {
8042
8213
  first_name: "#{first_name}",
@@ -8056,7 +8227,9 @@ var shopifyTaskTemplates = {
8056
8227
  taskReferenceName: "shopify_create_order",
8057
8228
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8058
8229
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8059
- uri: `${config8.workflowsApiUr}/functions/create-shopify-order`,
8230
+ uri: `${getWorkflowsEnv(
8231
+ "workflowsApiUr"
8232
+ )}/functions/create-shopify-order`,
8060
8233
  method: "POST",
8061
8234
  body: {},
8062
8235
  headers: {
@@ -8072,7 +8245,9 @@ var shopifyTaskTemplates = {
8072
8245
  taskReferenceName: "shopify_create_draft_order",
8073
8246
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8074
8247
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8075
- uri: `${config8.workflowsApiUr}/functions/create-shopify-draft-order`,
8248
+ uri: `${getWorkflowsEnv(
8249
+ "workflowsApiUr"
8250
+ )}/functions/create-shopify-draft-order`,
8076
8251
  method: "POST",
8077
8252
  body: {},
8078
8253
  headers: {
@@ -8088,7 +8263,9 @@ var shopifyTaskTemplates = {
8088
8263
  taskReferenceName: "shopify_create_product",
8089
8264
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8090
8265
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8091
- uri: `${config8.workflowsApiUr}/functions/create-shopify-product`,
8266
+ uri: `${getWorkflowsEnv(
8267
+ "workflowsApiUr"
8268
+ )}/functions/create-shopify-product`,
8092
8269
  method: "POST",
8093
8270
  body: {},
8094
8271
  headers: {
@@ -8104,7 +8281,9 @@ var shopifyTaskTemplates = {
8104
8281
  taskReferenceName: "shopify_create_product_variant",
8105
8282
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8106
8283
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8107
- uri: `${config8.workflowsApiUr}/functions/create-shopify-product-variant`,
8284
+ uri: `${getWorkflowsEnv(
8285
+ "workflowsApiUr"
8286
+ )}/functions/create-shopify-product-variant`,
8108
8287
  method: "POST",
8109
8288
  body: {},
8110
8289
  headers: {
@@ -8120,7 +8299,9 @@ var shopifyTaskTemplates = {
8120
8299
  taskReferenceName: "shopify_get_customer",
8121
8300
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8122
8301
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8123
- uri: `${config8.workflowsApiUr}/functions/get-shopify-customer?email=#{email}`,
8302
+ uri: `${getWorkflowsEnv(
8303
+ "workflowsApiUr"
8304
+ )}/functions/get-shopify-customer?email=#{email}`,
8124
8305
  method: "GET",
8125
8306
  body: {},
8126
8307
  headers: {
@@ -8136,7 +8317,9 @@ var shopifyTaskTemplates = {
8136
8317
  taskReferenceName: "shopify_get_customer_orders",
8137
8318
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8138
8319
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8139
- uri: `${config8.workflowsApiUr}/functions/get-shopify-customer-orders?email=#{email}`,
8320
+ uri: `${getWorkflowsEnv(
8321
+ "workflowsApiUr"
8322
+ )}/functions/get-shopify-customer-orders?email=#{email}`,
8140
8323
  method: "GET",
8141
8324
  body: {},
8142
8325
  headers: {
@@ -8152,7 +8335,9 @@ var shopifyTaskTemplates = {
8152
8335
  taskReferenceName: "shopify_get_customer_last_order",
8153
8336
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8154
8337
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8155
- uri: `${config8.workflowsApiUr}/functions/get-shopify-customer-last-order?email=#{email}`,
8338
+ uri: `${getWorkflowsEnv(
8339
+ "workflowsApiUr"
8340
+ )}/functions/get-shopify-customer-last-order?email=#{email}`,
8156
8341
  method: "GET",
8157
8342
  body: {},
8158
8343
  headers: {
@@ -8168,7 +8353,9 @@ var shopifyTaskTemplates = {
8168
8353
  taskReferenceName: "shopify_get_product",
8169
8354
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8170
8355
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8171
- uri: `${config8.workflowsApiUr}/functions/get-shopify-product?product_id=#{product_id}`,
8356
+ uri: `${getWorkflowsEnv(
8357
+ "workflowsApiUr"
8358
+ )}/functions/get-shopify-product?product_id=#{product_id}`,
8172
8359
  method: "GET",
8173
8360
  body: {},
8174
8361
  headers: {
@@ -8184,7 +8371,9 @@ var shopifyTaskTemplates = {
8184
8371
  taskReferenceName: "shopify_get_product_variant",
8185
8372
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8186
8373
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8187
- uri: `${config8.workflowsApiUr}/functions/get-shopify-product-variant?product_id=#{product_id}&title=#{title}`,
8374
+ uri: `${getWorkflowsEnv(
8375
+ "workflowsApiUr"
8376
+ )}/functions/get-shopify-product-variant?product_id=#{product_id}&title=#{title}`,
8188
8377
  method: "GET",
8189
8378
  body: {},
8190
8379
  headers: {
@@ -8200,7 +8389,9 @@ var shopifyTaskTemplates = {
8200
8389
  taskReferenceName: "shopify_update_inventory_quantity",
8201
8390
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8202
8391
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8203
- uri: `${config8.workflowsApiUr}/functions/update-shopify-inventory-quantity`,
8392
+ uri: `${getWorkflowsEnv(
8393
+ "workflowsApiUr"
8394
+ )}/functions/update-shopify-inventory-quantity`,
8204
8395
  method: "PATCH",
8205
8396
  body: {
8206
8397
  inventory_item_id: "#{inventory_item_id}",
@@ -8219,7 +8410,9 @@ var shopifyTaskTemplates = {
8219
8410
  taskReferenceName: "shopify_update_order",
8220
8411
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8221
8412
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8222
- uri: `${config8.workflowsApiUr}/functions/update-shopify-order`,
8413
+ uri: `${getWorkflowsEnv(
8414
+ "workflowsApiUr"
8415
+ )}/functions/update-shopify-order`,
8223
8416
  method: "PATCH",
8224
8417
  body: {},
8225
8418
  headers: {
@@ -8235,7 +8428,9 @@ var shopifyTaskTemplates = {
8235
8428
  taskReferenceName: "shopify_update_product",
8236
8429
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8237
8430
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8238
- uri: `${config8.workflowsApiUr}/functions/update-shopify-product`,
8431
+ uri: `${getWorkflowsEnv(
8432
+ "workflowsApiUr"
8433
+ )}/functions/update-shopify-product`,
8239
8434
  method: "PATCH",
8240
8435
  body: {},
8241
8436
  headers: {
@@ -8251,7 +8446,9 @@ var shopifyTaskTemplates = {
8251
8446
  taskReferenceName: "shopify_update_product_variant",
8252
8447
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8253
8448
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8254
- uri: `${config8.workflowsApiUr}/functions/update-shopify-product-variant`,
8449
+ uri: `${getWorkflowsEnv(
8450
+ "workflowsApiUr"
8451
+ )}/functions/update-shopify-product-variant`,
8255
8452
  method: "PATCH",
8256
8453
  body: {},
8257
8454
  headers: {
@@ -8267,7 +8464,9 @@ var shopifyTaskTemplates = {
8267
8464
  taskReferenceName: "shopify_update_customer",
8268
8465
  inputParameters: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters), {
8269
8466
  http_request: __spreadProps(__spreadValues({}, workflowHttpTask.inputParameters.http_request), {
8270
- uri: `${config8.workflowsApiUr}/functions/update-shopify-customer`,
8467
+ uri: `${getWorkflowsEnv(
8468
+ "workflowsApiUr"
8469
+ )}/functions/update-shopify-customer`,
8271
8470
  method: "PATCH",
8272
8471
  body: {},
8273
8472
  headers: {
@@ -8641,17 +8840,17 @@ var WORKFLOW_SCHEMA = {
8641
8840
  },
8642
8841
  then: WORKFLOW_HTTP_TASK_SCHEMA()
8643
8842
  },
8644
- ...Object.values(workflowItemConfigs.tasks).map((config12) => {
8843
+ ...Object.values(workflowItemConfigs.tasks).map((config4) => {
8645
8844
  var _a, _b;
8646
8845
  return {
8647
8846
  if: {
8648
8847
  properties: {
8649
8848
  type: { const: import_developer_studio_api10.WorkflowDefinitionTaskType.http },
8650
- name: { const: config12.key }
8849
+ name: { const: config4.key }
8651
8850
  }
8652
8851
  },
8653
- then: WORKFLOW_HTTP_TASK_SCHEMA(config12.key, {
8654
- body: (_b = (_a = config12.specification.input) == null ? void 0 : _a.properties) == null ? void 0 : _b.body
8852
+ then: WORKFLOW_HTTP_TASK_SCHEMA(config4.key, {
8853
+ body: (_b = (_a = config4.specification.input) == null ? void 0 : _a.properties) == null ? void 0 : _b.body
8655
8854
  })
8656
8855
  };
8657
8856
  })
@@ -8742,13 +8941,13 @@ var WORKFLOW_SCHEMA = {
8742
8941
  description: "This object holds the declaration of your workflow trigger.",
8743
8942
  default: {},
8744
8943
  allOf: [
8745
- ...Object.values(workflowItemConfigs.triggers).map((config12) => {
8944
+ ...Object.values(workflowItemConfigs.triggers).map((config4) => {
8746
8945
  var _a, _b;
8747
- if (config12.type === "webhook") {
8946
+ if (config4.type === "webhook") {
8748
8947
  return {
8749
8948
  if: {
8750
8949
  properties: {
8751
- type: { const: config12.type }
8950
+ type: { const: config4.type }
8752
8951
  }
8753
8952
  },
8754
8953
  then: {
@@ -8758,20 +8957,20 @@ var WORKFLOW_SCHEMA = {
8758
8957
  webhook: {
8759
8958
  if: {
8760
8959
  properties: {
8761
- source: { const: config12.customization.provider }
8960
+ source: { const: config4.customization.provider }
8762
8961
  }
8763
8962
  },
8764
8963
  then: {
8765
8964
  required: ["source", "event", "headers"],
8766
8965
  properties: {
8767
- source: { const: config12.customization.provider },
8966
+ source: { const: config4.customization.provider },
8768
8967
  event: {
8769
8968
  if: {
8770
8969
  properties: {
8771
- name: { const: config12.name }
8970
+ name: { const: config4.name }
8772
8971
  }
8773
8972
  },
8774
- then: (_a = config12.specification.input) != null ? _a : {}
8973
+ then: (_a = config4.specification.input) != null ? _a : {}
8775
8974
  }
8776
8975
  }
8777
8976
  }
@@ -8780,15 +8979,15 @@ var WORKFLOW_SCHEMA = {
8780
8979
  }
8781
8980
  };
8782
8981
  }
8783
- if (config12.type === "system") {
8982
+ if (config4.type === "system") {
8784
8983
  return {
8785
8984
  if: {
8786
8985
  properties: {
8787
- type: { const: config12.type },
8788
- name: { const: config12.key }
8986
+ type: { const: config4.type },
8987
+ name: { const: config4.key }
8789
8988
  }
8790
8989
  },
8791
- then: (_b = config12.specification.input) != null ? _b : {}
8990
+ then: (_b = config4.specification.input) != null ? _b : {}
8792
8991
  };
8793
8992
  }
8794
8993
  throw new Error("Invalid trigger type");
@@ -9493,10 +9692,10 @@ var workflowBuilderUtils = {
9493
9692
  }
9494
9693
  };
9495
9694
  }
9496
- const config12 = workflowBuilderUtils.getTriggerConfig({
9695
+ const config4 = workflowBuilderUtils.getTriggerConfig({
9497
9696
  type: "manual_only"
9498
9697
  });
9499
- return config12;
9698
+ return config4;
9500
9699
  },
9501
9700
  getItemConfig(item) {
9502
9701
  var _a;
@@ -9891,7 +10090,7 @@ var getTasksErrors = (workflow, frames, products) => {
9891
10090
  var _a;
9892
10091
  const globalFrame = frames.global;
9893
10092
  const frame = frames.tasks[task2.taskReferenceName];
9894
- const config12 = (_a = frame.__meta) == null ? void 0 : _a.config;
10093
+ const config4 = (_a = frame.__meta) == null ? void 0 : _a.config;
9895
10094
  const resolvingErrors = workflowBuilderUtils.getMatchesInObject(task2).map((match2) => {
9896
10095
  const segments = match2.rawValue.split(".");
9897
10096
  const resolved = workflowBuilderUtils.resolveTextByContext(
@@ -9961,10 +10160,10 @@ var getTasksErrors = (workflow, frames, products) => {
9961
10160
  params: {}
9962
10161
  };
9963
10162
  });
9964
- const activationError = config12 && config12.customization.provider.startsWith(import_developer_studio_api15.IntegrationNames.Text) && !products.find(({ product }) => product === config12.customization.product) ? {
10163
+ const activationError = config4 && config4.customization.provider.startsWith(import_developer_studio_api15.IntegrationNames.Text) && !products.find(({ product }) => product === config4.customization.product) ? {
9965
10164
  instancePath: `/definition/tasks/${index}`,
9966
10165
  keyword: "activation",
9967
- message: `${config12.customization.product} not activated`,
10166
+ message: `${config4.customization.product} not activated`,
9968
10167
  params: {}
9969
10168
  } : void 0;
9970
10169
  return [
@@ -9977,7 +10176,7 @@ var getTasksErrors = (workflow, frames, products) => {
9977
10176
  var getTriggerErrors = (workflow, frames, products) => {
9978
10177
  var _a;
9979
10178
  const frame = frames.trigger;
9980
- const config12 = (_a = frame == null ? void 0 : frame.__meta) == null ? void 0 : _a.config;
10179
+ const config4 = (_a = frame == null ? void 0 : frame.__meta) == null ? void 0 : _a.config;
9981
10180
  const resolvingErrors = workflowBuilderUtils.getMatchesInObject(workflow.trigger).map((match2) => {
9982
10181
  const segments = match2.rawValue.split(".");
9983
10182
  const resolved = workflowBuilderUtils.resolveTextByContext(
@@ -10025,10 +10224,10 @@ var getTriggerErrors = (workflow, frames, products) => {
10025
10224
  params: {}
10026
10225
  };
10027
10226
  });
10028
- const activationError = config12 && config12.customization.provider.startsWith(import_developer_studio_api15.IntegrationNames.Text) && !products.find(({ product }) => product === config12.customization.product) ? {
10227
+ const activationError = config4 && config4.customization.provider.startsWith(import_developer_studio_api15.IntegrationNames.Text) && !products.find(({ product }) => product === config4.customization.product) ? {
10029
10228
  instancePath: `/trigger`,
10030
10229
  keyword: "activation",
10031
- message: `${config12.customization.product} not activated`,
10230
+ message: `${config4.customization.product} not activated`,
10032
10231
  params: {}
10033
10232
  } : void 0;
10034
10233
  console.log("activationError: ", activationError);
@@ -12378,10 +12577,10 @@ var import_developer_studio_ui_react11 = require("@livechat/developer-studio-ui-
12378
12577
  function convertToTreeNode(obj, meta, nodeName, path) {
12379
12578
  var _a, _b, _c, _d, _e, _f, _g;
12380
12579
  const index = (_a = obj.__meta) == null ? void 0 : _a.index;
12381
- const config12 = (_b = obj.__meta) == null ? void 0 : _b.config;
12580
+ const config4 = (_b = obj.__meta) == null ? void 0 : _b.config;
12382
12581
  const properties = (_c = obj.__meta) == null ? void 0 : _c.properties;
12383
12582
  const currentSpec = meta.specification;
12384
- const customization = config12 == null ? void 0 : config12.customization;
12583
+ const customization = config4 == null ? void 0 : config4.customization;
12385
12584
  const node2 = meta.dummy ? {
12386
12585
  type: typeof obj,
12387
12586
  name: nodeName,
@@ -12399,7 +12598,7 @@ function convertToTreeNode(obj, meta, nodeName, path) {
12399
12598
  path: `${path != null ? path : ""}`,
12400
12599
  relativePath: meta.baseRelativePath && path && path.startsWith(meta.baseRelativePath) ? path.replace(`${meta.baseRelativePath}.`, "") : "",
12401
12600
  children: [],
12402
- canAddChildren: (_g = config12 == null ? void 0 : config12.specification) == null ? void 0 : _g.additionalProperties,
12601
+ canAddChildren: (_g = config4 == null ? void 0 : config4.specification) == null ? void 0 : _g.additionalProperties,
12403
12602
  __meta: {
12404
12603
  source: {
12405
12604
  index: index != null ? index : meta.index,
@@ -13013,23 +13212,23 @@ var Tags_default = Tags;
13013
13212
 
13014
13213
  // src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/overrides/Fields/CustomTags/TagsInput/utils.ts
13015
13214
  var createTagFromPath = (path, frame) => {
13016
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
13215
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
13017
13216
  const segments = path.split(".");
13018
13217
  const relativePath = segments.slice(segments[0] === "workflow" ? 2 : 1).join(".");
13019
13218
  const contentRelativePath = segments.slice(segments[0] === "workflow" ? segments[2] === "body" ? 3 : 2 : 4).join(".");
13020
- const meta = frame ? segments[0] === "workflow" ? segments[1] === "input" ? (_a = frame.workflow.input) == null ? void 0 : _a.__meta : segments[1] === "credentials" ? frame.workflow.credentials.__meta : void 0 : frame[segments[0]].__meta : void 0;
13021
- const config12 = workflowBuilderUtils.getItemConfigByReference(path);
13022
- const customization = (_c = (_b = meta == null ? void 0 : meta.config) == null ? void 0 : _b.customization) != null ? _c : config12 == null ? void 0 : config12.customization;
13023
- const specification = (_h = workflowBuilderUtils.extractByPath(
13219
+ const meta = frame ? segments[0] === "workflow" ? segments[1] === "input" ? (_a = frame.workflow.input) == null ? void 0 : _a.__meta : segments[1] === "credentials" ? frame.workflow.credentials.__meta : void 0 : (_b = frame[segments[0]]) == null ? void 0 : _b.__meta : void 0;
13220
+ const config4 = workflowBuilderUtils.getItemConfigByReference(path);
13221
+ const customization = (_d = (_c = meta == null ? void 0 : meta.config) == null ? void 0 : _c.customization) != null ? _d : config4 == null ? void 0 : config4.customization;
13222
+ const specification = (_i = workflowBuilderUtils.extractByPath(
13024
13223
  relativePath.split(".").join(".properties."),
13025
- (_g = (_e = (_d = meta == null ? void 0 : meta.config) == null ? void 0 : _d.specification) == null ? void 0 : _e.properties) != null ? _g : (_f = config12 == null ? void 0 : config12.specification.output) == null ? void 0 : _f.properties
13026
- )) == null ? void 0 : _h[0];
13224
+ (_h = (_f = (_e = meta == null ? void 0 : meta.config) == null ? void 0 : _e.specification) == null ? void 0 : _f.properties) != null ? _h : (_g = config4 == null ? void 0 : config4.specification.output) == null ? void 0 : _g.properties
13225
+ )) == null ? void 0 : _i[0];
13027
13226
  const data = specification ? {
13028
- title: (_j = (_i = specification.title) != null ? _i : segments.at(-1)) != null ? _j : "",
13227
+ title: (_k = (_j = specification.title) != null ? _j : segments.at(-1)) != null ? _k : "",
13029
13228
  type: specification.type,
13030
13229
  description: specification.description
13031
13230
  } : {
13032
- title: (_k = segments.at(-1)) != null ? _k : ""
13231
+ title: (_l = segments.at(-1)) != null ? _l : ""
13033
13232
  };
13034
13233
  let invalid = false;
13035
13234
  let invalidReason = "";
@@ -13047,7 +13246,7 @@ var createTagFromPath = (path, frame) => {
13047
13246
  path: relativePath,
13048
13247
  relativePath: contentRelativePath,
13049
13248
  name: data.title,
13050
- type: (_l = data.type) != null ? _l : "",
13249
+ type: (_m = data.type) != null ? _m : "",
13051
13250
  description: data.description,
13052
13251
  invalid,
13053
13252
  invalidReason,
@@ -14906,8 +15105,8 @@ function SwitchNode({
14906
15105
  var _a, _b, _c, _d, _e, _f, _g, _h;
14907
15106
  const sourceNode = nodes.find((node1) => node1.id === (node2 == null ? void 0 : node2.source));
14908
15107
  if (sourceNode) {
14909
- const config12 = workflowBuilderUtils.getTaskConfig(sourceNode.data);
14910
- const output = (_b = (_a = config12.specification.output) == null ? void 0 : _a.properties) == null ? void 0 : _b.output;
15108
+ const config4 = workflowBuilderUtils.getTaskConfig(sourceNode.data);
15109
+ const output = (_b = (_a = config4.specification.output) == null ? void 0 : _a.properties) == null ? void 0 : _b.output;
14911
15110
  const body = isJSONSchema7(output) && isJSONSchema7((_c = output.properties) == null ? void 0 : _c.response) && isJSONSchema7((_e = (_d = output.properties) == null ? void 0 : _d.response.properties) == null ? void 0 : _e.body) ? (_h = (_g = (_f = output.properties) == null ? void 0 : _f.response) == null ? void 0 : _g.properties) == null ? void 0 : _h.body : void 0;
14912
15111
  const inputParameters = (body == null ? void 0 : body.type) === "object" ? body.properties : {};
14913
15112
  const formattedInputParameters = {};
@@ -15498,7 +15697,7 @@ function EditNodeWrapper() {
15498
15697
  if (!data) {
15499
15698
  return /* @__PURE__ */ jsx2(Fragment4, {});
15500
15699
  }
15501
- const config12 = (_b = frame == null ? void 0 : frame.__meta) == null ? void 0 : _b.config;
15700
+ const config4 = (_b = frame == null ? void 0 : frame.__meta) == null ? void 0 : _b.config;
15502
15701
  const readonly = !workflow.draft;
15503
15702
  const contentHandler = () => {
15504
15703
  var _a2, _b2;
@@ -15583,7 +15782,7 @@ function EditNodeWrapper() {
15583
15782
  );
15584
15783
  }
15585
15784
  };
15586
- const revertIconColor = getWorkflowsEnv("isHeadless") && ((config12 == null ? void 0 : config12.customization.icon) === import_developer_studio_api23.IntegrationNames.OpenAI || (config12 == null ? void 0 : config12.customization.icon) === import_developer_studio_api23.IntegrationNames.BigCommerce);
15785
+ const revertIconColor = getWorkflowsEnv("isHeadless") && ((config4 == null ? void 0 : config4.customization.icon) === import_developer_studio_api23.IntegrationNames.OpenAI || (config4 == null ? void 0 : config4.customization.icon) === import_developer_studio_api23.IntegrationNames.BigCommerce);
15587
15786
  return /* @__PURE__ */ jsxs2(Wrapper3, { children: [
15588
15787
  /* @__PURE__ */ jsxs2(import_developer_studio_ui_react20.Row, { center: true, setRowPadding: "12px 24px", spaceBetween: true, children: [
15589
15788
  /* @__PURE__ */ jsx2(
@@ -15593,13 +15792,13 @@ function EditNodeWrapper() {
15593
15792
  max-width: 80%;
15594
15793
  `,
15595
15794
  children: /* @__PURE__ */ jsxs2(Title6, { children: [
15596
- (config12 == null ? void 0 : config12.customization.product) ? /* @__PURE__ */ jsx2(
15795
+ (config4 == null ? void 0 : config4.customization.product) ? /* @__PURE__ */ jsx2(
15597
15796
  ProductIcon_default,
15598
15797
  {
15599
15798
  center: true,
15600
15799
  disabled: false,
15601
15800
  height: 10,
15602
- product: config12.customization.icon,
15801
+ product: config4.customization.icon,
15603
15802
  revertColors: revertIconColor,
15604
15803
  width: 10
15605
15804
  }
@@ -15616,9 +15815,9 @@ function EditNodeWrapper() {
15616
15815
  /* @__PURE__ */ jsxs2(import_developer_studio_ui_react20.Column, { noFlexBasis: true, notPadded: true, children: [
15617
15816
  /* @__PURE__ */ jsxs2("strong", { children: [
15618
15817
  ((_c = frame == null ? void 0 : frame.__meta) == null ? void 0 : _c.index) !== void 0 ? `${frame.__meta.index}. ` : "",
15619
- (_d = config12 == null ? void 0 : config12.customization.displayName) != null ? _d : data.type === NodeTypes.switch ? "Condition" : data.type === NodeTypes.http ? "Custom HTTP" : data.type === NodeTypes.terminate ? "End workflow" : ""
15818
+ (_d = config4 == null ? void 0 : config4.customization.displayName) != null ? _d : data.type === NodeTypes.switch ? "Condition" : data.type === NodeTypes.http ? "Custom HTTP" : data.type === NodeTypes.terminate ? "End workflow" : ""
15620
15819
  ] }),
15621
- (_e = config12 == null ? void 0 : config12.customization.description) != null ? _e : data.type === NodeTypes.switch ? "Conditional execution" : data.type === NodeTypes.http ? "Make an HTTP request" : data.type === NodeTypes.terminate ? "End the workflow" : ""
15820
+ (_e = config4 == null ? void 0 : config4.customization.description) != null ? _e : data.type === NodeTypes.switch ? "Conditional execution" : data.type === NodeTypes.http ? "Make an HTTP request" : data.type === NodeTypes.terminate ? "End the workflow" : ""
15622
15821
  ] })
15623
15822
  ] })
15624
15823
  }
@@ -16210,7 +16409,6 @@ var OneMessagesProvider = ({
16210
16409
  const { user } = (0, import_developer_studio_ui_react21.useUserContext)();
16211
16410
  const isLoading = generateAiResponseMutation.isLoading;
16212
16411
  const sendMessage = (message) => __async(void 0, null, function* () {
16213
- const config12 = getWorkflowsConfig();
16214
16412
  setIsError(null);
16215
16413
  setEvents((prevEvents) => [
16216
16414
  ...prevEvents,
@@ -16230,7 +16428,7 @@ var OneMessagesProvider = ({
16230
16428
  ]);
16231
16429
  try {
16232
16430
  const response = yield generateAiResponseMutation.mutateAsync({
16233
- agent_id: config12.aiAgentId,
16431
+ agent_id: getWorkflowsEnv("aiAgentId"),
16234
16432
  account_id: user == null ? void 0 : user.auth.account_id,
16235
16433
  organization: user == null ? void 0 : user.auth.organization_id,
16236
16434
  token: user == null ? void 0 : user.auth.access_token,
@@ -18725,7 +18923,7 @@ function AddWorkflowTaskOptions({
18725
18923
  var Options_default = AddWorkflowTaskOptions;
18726
18924
 
18727
18925
  // src/views/Flows/Definitions/Edit/Tasks/Add.tsx
18728
- var config9 = [
18926
+ var config2 = [
18729
18927
  // {
18730
18928
  // name: 'system',
18731
18929
  // displayName: 'System tasks',
@@ -18847,7 +19045,7 @@ function AddWorkflowTask({ basePath, onClose }) {
18847
19045
  (0, import_react87.useEffect)(() => {
18848
19046
  var _a, _b, _c, _d, _e, _f;
18849
19047
  if (!params.task) {
18850
- const firstTask = (_c = (_b = (_a = config9.find((el) => el.name === params.service)) == null ? void 0 : _a.values.sort((a, b) => a.name.localeCompare(b.name))) == null ? void 0 : _b[0]) == null ? void 0 : _c.key;
19048
+ const firstTask = (_c = (_b = (_a = config2.find((el) => el.name === params.service)) == null ? void 0 : _a.values.sort((a, b) => a.name.localeCompare(b.name))) == null ? void 0 : _b[0]) == null ? void 0 : _c.key;
18851
19049
  navigate(`${basePath}/${params.service}/${firstTask}`, {
18852
19050
  state: location.state
18853
19051
  });
@@ -18956,7 +19154,7 @@ function AddWorkflowTask({ basePath, onClose }) {
18956
19154
  )
18957
19155
  }
18958
19156
  ),
18959
- config9.map(({ name, displayName, icon: icon2, values }) => {
19157
+ config2.map(({ name, displayName, icon: icon2, values }) => {
18960
19158
  const revertIconColor = getWorkflowsEnv("isHeadless") && (name === "openai" || name === import_developer_studio_api25.IntegrationNames.BigCommerce);
18961
19159
  if (search) {
18962
19160
  if (values.some(
@@ -19032,7 +19230,7 @@ function AddWorkflowTask({ basePath, onClose }) {
19032
19230
  `,
19033
19231
  setColumnPadding: "0 20px 0 16px",
19034
19232
  width: 10,
19035
- children: params.service ? config9.map(({ name, displayName, values, icon: icon2 }) => {
19233
+ children: params.service ? config2.map(({ name, displayName, values, icon: icon2 }) => {
19036
19234
  if (params.service === name.toLowerCase()) {
19037
19235
  const options2 = values.map(({ key, name: name2, secondaryText }) => ({
19038
19236
  key,
@@ -19155,7 +19353,7 @@ function AddWorkflowTriggerOptions({
19155
19353
  var Options_default2 = AddWorkflowTriggerOptions;
19156
19354
 
19157
19355
  // src/views/Flows/Definitions/Edit/Triggers/Add.tsx
19158
- var config10 = [
19356
+ var config3 = [
19159
19357
  {
19160
19358
  name: OTHER_TYPES.SYSTEM,
19161
19359
  displayName: "General",
@@ -19247,7 +19445,7 @@ function AddWorkflowTrigger({ basePath, onClose }) {
19247
19445
  (0, import_react90.useEffect)(() => {
19248
19446
  var _a, _b, _c;
19249
19447
  if (!params.trigger) {
19250
- const firstTrigger = (_c = (_b = (_a = config10.find((el) => el.name === params.service)) == null ? void 0 : _a.values.sort((a, b) => a.name.localeCompare(b.name))) == null ? void 0 : _b[0]) == null ? void 0 : _c.key;
19448
+ const firstTrigger = (_c = (_b = (_a = config3.find((el) => el.name === params.service)) == null ? void 0 : _a.values.sort((a, b) => a.name.localeCompare(b.name))) == null ? void 0 : _b[0]) == null ? void 0 : _c.key;
19251
19449
  navigate(`${basePath}/${params.service}/${firstTrigger}`);
19252
19450
  }
19253
19451
  const triggers = params.service ? workflowItemTemplates.triggers[params.service] : void 0;
@@ -19319,7 +19517,7 @@ function AddWorkflowTrigger({ basePath, onClose }) {
19319
19517
  )
19320
19518
  }
19321
19519
  ),
19322
- config10.map(({ name, displayName, icon: icon2, values }) => {
19520
+ config3.map(({ name, displayName, icon: icon2, values }) => {
19323
19521
  const revertIconColor = getWorkflowsEnv("isHeadless") && (name === import_developer_studio_api26.IntegrationNames.OpenAI || name === import_developer_studio_api26.IntegrationNames.BigCommerce);
19324
19522
  if (search) {
19325
19523
  if (values.some(
@@ -19395,7 +19593,7 @@ function AddWorkflowTrigger({ basePath, onClose }) {
19395
19593
  `,
19396
19594
  setColumnPadding: "0 20px 0 16px",
19397
19595
  width: 10,
19398
- children: params.service ? config10.map(({ name, displayName, values, icon: icon2 }) => {
19596
+ children: params.service ? config3.map(({ name, displayName, values, icon: icon2 }) => {
19399
19597
  var _a;
19400
19598
  if (((_a = params.service) == null ? void 0 : _a.toLowerCase()) === name.toLowerCase()) {
19401
19599
  const options2 = values.map(({ key, name: name2, secondaryText }) => ({
@@ -19859,7 +20057,6 @@ var import_react_router_dom17 = require("react-router-dom");
19859
20057
  // src/views/Flows/Templates/api.mocks.tsx
19860
20058
  var import_design_system_icons32 = require("@livechat/design-system-icons");
19861
20059
  var import_developer_studio_api27 = require("@livechat/developer-studio-api");
19862
- var config11 = getWorkflowsConfig();
19863
20060
  var flowTemplates = [
19864
20061
  {
19865
20062
  id: "1",
@@ -19909,7 +20106,9 @@ var flowTemplates = [
19909
20106
  type: "HTTP",
19910
20107
  inputParameters: {
19911
20108
  http_request: {
19912
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20109
+ uri: `${getWorkflowsEnv(
20110
+ "workflowsApiUr"
20111
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
19913
20112
  method: "GET",
19914
20113
  headers: {
19915
20114
  Accept: "application/json",
@@ -19925,7 +20124,9 @@ var flowTemplates = [
19925
20124
  type: "HTTP",
19926
20125
  inputParameters: {
19927
20126
  http_request: {
19928
- uri: `${config11.workflowsApiUr}/functions/summarize-text`,
20127
+ uri: `${getWorkflowsEnv(
20128
+ "workflowsApiUr"
20129
+ )}/functions/summarize-text`,
19929
20130
  body: {
19930
20131
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
19931
20132
  },
@@ -19944,7 +20145,9 @@ var flowTemplates = [
19944
20145
  type: "HTTP",
19945
20146
  inputParameters: {
19946
20147
  http_request: {
19947
- uri: `${config11.workflowsApiUr}/functions/create-helpdesk-ticket`,
20148
+ uri: `${getWorkflowsEnv(
20149
+ "workflowsApiUr"
20150
+ )}/functions/create-helpdesk-ticket`,
19948
20151
  body: {
19949
20152
  message: {
19950
20153
  text: "${openai_summarize_text_1.output.response.body.summary}"
@@ -20021,7 +20224,9 @@ var flowTemplates = [
20021
20224
  type: "HTTP",
20022
20225
  inputParameters: {
20023
20226
  http_request: {
20024
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20227
+ uri: `${getWorkflowsEnv(
20228
+ "workflowsApiUr"
20229
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20025
20230
  method: "GET",
20026
20231
  headers: {
20027
20232
  Accept: "application/json",
@@ -20037,7 +20242,9 @@ var flowTemplates = [
20037
20242
  type: "HTTP",
20038
20243
  inputParameters: {
20039
20244
  http_request: {
20040
- uri: `${config11.workflowsApiUr}/functions/analyze-text-sentiment`,
20245
+ uri: `${getWorkflowsEnv(
20246
+ "workflowsApiUr"
20247
+ )}/functions/analyze-text-sentiment`,
20041
20248
  body: {
20042
20249
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
20043
20250
  },
@@ -20056,7 +20263,9 @@ var flowTemplates = [
20056
20263
  type: "HTTP",
20057
20264
  inputParameters: {
20058
20265
  http_request: {
20059
- uri: `${config11.workflowsApiUr}/functions/create-helpdesk-ticket`,
20266
+ uri: `${getWorkflowsEnv(
20267
+ "workflowsApiUr"
20268
+ )}/functions/create-helpdesk-ticket`,
20060
20269
  body: {
20061
20270
  message: {
20062
20271
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
@@ -20082,7 +20291,9 @@ var flowTemplates = [
20082
20291
  type: "HTTP",
20083
20292
  inputParameters: {
20084
20293
  http_request: {
20085
- uri: `${config11.workflowsApiUr}/functions/add-mailchimp-subscriber-event`,
20294
+ uri: `${getWorkflowsEnv(
20295
+ "workflowsApiUr"
20296
+ )}/functions/add-mailchimp-subscriber-event`,
20086
20297
  body: {
20087
20298
  name: "Competitor Mention",
20088
20299
  email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
@@ -20173,7 +20384,9 @@ var flowTemplates = [
20173
20384
  asyncComplete: false,
20174
20385
  http_request: {
20175
20386
  method: "GET",
20176
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20387
+ uri: `${getWorkflowsEnv(
20388
+ "workflowsApiUr"
20389
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20177
20390
  headers: {
20178
20391
  Accept: "application/json",
20179
20392
  "x-cred-access-token": "${workflow.credentials.text.access_token}"
@@ -20189,7 +20402,9 @@ var flowTemplates = [
20189
20402
  asyncComplete: false,
20190
20403
  http_request: {
20191
20404
  method: "POST",
20192
- uri: `${config11.workflowsApiUr}/functions/summarize-text`,
20405
+ uri: `${getWorkflowsEnv(
20406
+ "workflowsApiUr"
20407
+ )}/functions/summarize-text`,
20193
20408
  body: {
20194
20409
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
20195
20410
  },
@@ -20208,7 +20423,9 @@ var flowTemplates = [
20208
20423
  asyncComplete: false,
20209
20424
  http_request: {
20210
20425
  method: "POST",
20211
- uri: `${config11.workflowsApiUr}/functions/create-helpdesk-ticket`,
20426
+ uri: `${getWorkflowsEnv(
20427
+ "workflowsApiUr"
20428
+ )}/functions/create-helpdesk-ticket`,
20212
20429
  body: {
20213
20430
  requester: {
20214
20431
  email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
@@ -20231,7 +20448,9 @@ var flowTemplates = [
20231
20448
  type: "HTTP",
20232
20449
  inputParameters: {
20233
20450
  http_request: {
20234
- uri: `${config11.workflowsApiUr}/functions/add-mailchimp-subscriber-note`,
20451
+ uri: `${getWorkflowsEnv(
20452
+ "workflowsApiUr"
20453
+ )}/functions/add-mailchimp-subscriber-note`,
20235
20454
  body: {
20236
20455
  note: "Feedback from chat ID ${workflow.input.body.chat_id}",
20237
20456
  email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
@@ -20320,7 +20539,9 @@ var flowTemplates = [
20320
20539
  asyncComplete: false,
20321
20540
  http_request: {
20322
20541
  method: "GET",
20323
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20542
+ uri: `${getWorkflowsEnv(
20543
+ "workflowsApiUr"
20544
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20324
20545
  headers: {
20325
20546
  Accept: "application/json",
20326
20547
  "x-cred-access-token": "${workflow.credentials.text.access_token}"
@@ -20333,7 +20554,9 @@ var flowTemplates = [
20333
20554
  type: "HTTP",
20334
20555
  inputParameters: {
20335
20556
  http_request: {
20336
- uri: `${config11.workflowsApiUr}/functions/get-shopify-customer?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
20557
+ uri: `${getWorkflowsEnv(
20558
+ "workflowsApiUr"
20559
+ )}/functions/get-shopify-customer?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
20337
20560
  method: "GET",
20338
20561
  headers: {
20339
20562
  Accept: "application/json",
@@ -20350,7 +20573,9 @@ var flowTemplates = [
20350
20573
  type: "HTTP",
20351
20574
  inputParameters: {
20352
20575
  http_request: {
20353
- uri: `${config11.workflowsApiUr}/functions/analyze-text-sentiment`,
20576
+ uri: `${getWorkflowsEnv(
20577
+ "workflowsApiUr"
20578
+ )}/functions/analyze-text-sentiment`,
20354
20579
  body: {
20355
20580
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
20356
20581
  },
@@ -20369,7 +20594,9 @@ var flowTemplates = [
20369
20594
  type: "HTTP",
20370
20595
  inputParameters: {
20371
20596
  http_request: {
20372
- uri: `${config11.workflowsApiUr}/functions/add-mailchimp-campaign`,
20597
+ uri: `${getWorkflowsEnv(
20598
+ "workflowsApiUr"
20599
+ )}/functions/add-mailchimp-campaign`,
20373
20600
  body: {
20374
20601
  type: "regular",
20375
20602
  settings: {
@@ -20470,7 +20697,9 @@ var flowTemplates = [
20470
20697
  asyncComplete: false,
20471
20698
  http_request: {
20472
20699
  method: "GET",
20473
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20700
+ uri: `${getWorkflowsEnv(
20701
+ "workflowsApiUr"
20702
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20474
20703
  headers: {
20475
20704
  Accept: "application/json",
20476
20705
  "x-cred-access-token": "${workflow.credentials.text.access_token}"
@@ -20486,7 +20715,9 @@ var flowTemplates = [
20486
20715
  asyncComplete: false,
20487
20716
  http_request: {
20488
20717
  method: "POST",
20489
- uri: `${config11.workflowsApiUr}/functions/analyze-text-sentiment`,
20718
+ uri: `${getWorkflowsEnv(
20719
+ "workflowsApiUr"
20720
+ )}/functions/analyze-text-sentiment`,
20490
20721
  body: {
20491
20722
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
20492
20723
  },
@@ -20505,7 +20736,9 @@ var flowTemplates = [
20505
20736
  asyncComplete: false,
20506
20737
  http_request: {
20507
20738
  method: "POST",
20508
- uri: `${config11.workflowsApiUr}/functions/add-or-update-mailchimp-subscriber`,
20739
+ uri: `${getWorkflowsEnv(
20740
+ "workflowsApiUr"
20741
+ )}/functions/add-or-update-mailchimp-subscriber`,
20509
20742
  body: {
20510
20743
  list_id: null,
20511
20744
  email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
@@ -20527,7 +20760,9 @@ var flowTemplates = [
20527
20760
  asyncComplete: false,
20528
20761
  http_request: {
20529
20762
  method: "POST",
20530
- uri: `${config11.workflowsApiUr}/functions/add-mailchimp-subscriber-tag`,
20763
+ uri: `${getWorkflowsEnv(
20764
+ "workflowsApiUr"
20765
+ )}/functions/add-mailchimp-subscriber-tag`,
20531
20766
  body: {
20532
20767
  list_id: null,
20533
20768
  email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
@@ -20598,7 +20833,9 @@ var flowTemplates = [
20598
20833
  type: "HTTP",
20599
20834
  inputParameters: {
20600
20835
  http_request: {
20601
- uri: `${config11.workflowsApiUr}/functions/send-livechat-agent-message`,
20836
+ uri: `${getWorkflowsEnv(
20837
+ "workflowsApiUr"
20838
+ )}/functions/send-livechat-agent-message`,
20602
20839
  body: {
20603
20840
  chat_id: "${workflow.input.body.chat.id}",
20604
20841
  message: "Welcome to our service! How can we assist you today?",
@@ -20677,7 +20914,9 @@ var flowTemplates = [
20677
20914
  inputParameters: {
20678
20915
  asyncComplete: false,
20679
20916
  http_request: {
20680
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20917
+ uri: `${getWorkflowsEnv(
20918
+ "workflowsApiUr"
20919
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20681
20920
  method: "GET",
20682
20921
  headers: {
20683
20922
  Accept: "application/json",
@@ -20693,7 +20932,9 @@ var flowTemplates = [
20693
20932
  inputParameters: {
20694
20933
  asyncComplete: false,
20695
20934
  http_request: {
20696
- uri: `${config11.workflowsApiUr}/functions/summarize-text`,
20935
+ uri: `${getWorkflowsEnv(
20936
+ "workflowsApiUr"
20937
+ )}/functions/summarize-text`,
20697
20938
  body: {
20698
20939
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"
20699
20940
  },
@@ -20712,7 +20953,9 @@ var flowTemplates = [
20712
20953
  inputParameters: {
20713
20954
  asyncComplete: false,
20714
20955
  http_request: {
20715
- uri: `${config11.workflowsApiUr}/functions/create-helpdesk-ticket`,
20956
+ uri: `${getWorkflowsEnv(
20957
+ "workflowsApiUr"
20958
+ )}/functions/create-helpdesk-ticket`,
20716
20959
  body: {
20717
20960
  message: {
20718
20961
  text: "${openai_summarize_text_1.output.response.body.summary}"
@@ -20801,7 +21044,9 @@ var flowTemplates = [
20801
21044
  inputParameters: {
20802
21045
  asyncComplete: false,
20803
21046
  http_request: {
20804
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
21047
+ uri: `${getWorkflowsEnv(
21048
+ "workflowsApiUr"
21049
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
20805
21050
  method: "GET",
20806
21051
  headers: {
20807
21052
  Accept: "application/json",
@@ -20817,7 +21062,9 @@ var flowTemplates = [
20817
21062
  inputParameters: {
20818
21063
  asyncComplete: false,
20819
21064
  http_request: {
20820
- uri: `${config11.workflowsApiUr}/functions/get-shopify-customer-last-order?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
21065
+ uri: `${getWorkflowsEnv(
21066
+ "workflowsApiUr"
21067
+ )}/functions/get-shopify-customer-last-order?email=\${livechat_get_chat_transcript_1.output.response.body.customer_email}`,
20821
21068
  body: {},
20822
21069
  method: "GET",
20823
21070
  headers: {
@@ -20835,7 +21082,9 @@ var flowTemplates = [
20835
21082
  inputParameters: {
20836
21083
  asyncComplete: false,
20837
21084
  http_request: {
20838
- uri: `${config11.workflowsApiUr}/functions/send-livechat-agent-message`,
21085
+ uri: `${getWorkflowsEnv(
21086
+ "workflowsApiUr"
21087
+ )}/functions/send-livechat-agent-message`,
20839
21088
  body: {
20840
21089
  chat_id: "${workflow.input.body.chat.id}",
20841
21090
  message: "Last Order ID: ${shopify_get_customer_last_order_1.output.response.body.id}, Customer Name: ${shopify_get_customer_last_order_1.output.response.body.customer.first_name}",
@@ -20910,7 +21159,9 @@ var flowTemplates = [
20910
21159
  inputParameters: {
20911
21160
  asyncComplete: false,
20912
21161
  http_request: {
20913
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
21162
+ uri: `${getWorkflowsEnv(
21163
+ "workflowsApiUr"
21164
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
20914
21165
  method: "GET",
20915
21166
  headers: {
20916
21167
  Accept: "application/json",
@@ -20926,7 +21177,9 @@ var flowTemplates = [
20926
21177
  inputParameters: {
20927
21178
  asyncComplete: false,
20928
21179
  http_request: {
20929
- uri: `${config11.workflowsApiUr}/functions/create-hubspot-contact`,
21180
+ uri: `${getWorkflowsEnv(
21181
+ "workflowsApiUr"
21182
+ )}/functions/create-hubspot-contact`,
20930
21183
  body: {
20931
21184
  properties: {
20932
21185
  email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
@@ -21003,7 +21256,9 @@ var flowTemplates = [
21003
21256
  inputParameters: {
21004
21257
  asyncComplete: false,
21005
21258
  http_request: {
21006
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
21259
+ uri: `${getWorkflowsEnv(
21260
+ "workflowsApiUr"
21261
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat.id}`,
21007
21262
  method: "GET",
21008
21263
  headers: {
21009
21264
  Accept: "application/json",
@@ -21019,7 +21274,9 @@ var flowTemplates = [
21019
21274
  inputParameters: {
21020
21275
  asyncComplete: false,
21021
21276
  http_request: {
21022
- uri: `${config11.workflowsApiUr}/functions/create-helpdesk-ticket`,
21277
+ uri: `${getWorkflowsEnv(
21278
+ "workflowsApiUr"
21279
+ )}/functions/create-helpdesk-ticket`,
21023
21280
  body: {
21024
21281
  message: {
21025
21282
  text: "A new chat has been initiated with ${livechat_get_chat_transcript_1.output.response.body.customer_first_name} Email: ${livechat_get_chat_transcript_1.output.response.body.customer_email}"
@@ -21105,7 +21362,9 @@ var flowTemplates = [
21105
21362
  inputParameters: {
21106
21363
  asyncComplete: false,
21107
21364
  http_request: {
21108
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
21365
+ uri: `${getWorkflowsEnv(
21366
+ "workflowsApiUr"
21367
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
21109
21368
  method: "GET",
21110
21369
  headers: {
21111
21370
  Accept: "application/json",
@@ -21121,7 +21380,9 @@ var flowTemplates = [
21121
21380
  inputParameters: {
21122
21381
  asyncComplete: false,
21123
21382
  http_request: {
21124
- uri: `${config11.workflowsApiUr}/functions/create-hubspot-contact`,
21383
+ uri: `${getWorkflowsEnv(
21384
+ "workflowsApiUr"
21385
+ )}/functions/create-hubspot-contact`,
21125
21386
  body: {
21126
21387
  properties: {
21127
21388
  email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
@@ -21145,7 +21406,9 @@ var flowTemplates = [
21145
21406
  asyncComplete: false,
21146
21407
  http_request: {
21147
21408
  method: "POST",
21148
- uri: `${config11.workflowsApiUr}/functions/add-or-update-mailchimp-subscriber`,
21409
+ uri: `${getWorkflowsEnv(
21410
+ "workflowsApiUr"
21411
+ )}/functions/add-or-update-mailchimp-subscriber`,
21149
21412
  body: {
21150
21413
  list_id: null,
21151
21414
  email: "${livechat_get_chat_transcript_1.output.response.body.customer_email}",
@@ -21223,7 +21486,9 @@ var flowTemplates = [
21223
21486
  inputParameters: {
21224
21487
  asyncComplete: false,
21225
21488
  http_request: {
21226
- uri: `${config11.workflowsApiUr}/functions/supervise-livechat-chat`,
21489
+ uri: `${getWorkflowsEnv(
21490
+ "workflowsApiUr"
21491
+ )}/functions/supervise-livechat-chat`,
21227
21492
  body: {
21228
21493
  chat_id: "${workflow.input.body.chat_id}",
21229
21494
  user_id: "add your email"
@@ -21243,7 +21508,9 @@ var flowTemplates = [
21243
21508
  inputParameters: {
21244
21509
  asyncComplete: false,
21245
21510
  http_request: {
21246
- uri: `${config11.workflowsApiUr}/functions/send-livechat-agent-message`,
21511
+ uri: `${getWorkflowsEnv(
21512
+ "workflowsApiUr"
21513
+ )}/functions/send-livechat-agent-message`,
21247
21514
  body: {
21248
21515
  chat_id: "${workflow.input.body.chat_id}",
21249
21516
  message: "Hi, please remember to request reviews from customers. Keep up the great work!",
@@ -21319,7 +21586,9 @@ var flowTemplates = [
21319
21586
  inputParameters: {
21320
21587
  asyncComplete: false,
21321
21588
  http_request: {
21322
- uri: `${config11.workflowsApiUr}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
21589
+ uri: `${getWorkflowsEnv(
21590
+ "workflowsApiUr"
21591
+ )}/functions/get-livechat-chat-transcript?chat_id=\${workflow.input.body.chat_id}`,
21323
21592
  method: "GET",
21324
21593
  headers: {
21325
21594
  Accept: "application/json",
@@ -21335,7 +21604,9 @@ var flowTemplates = [
21335
21604
  inputParameters: {
21336
21605
  asyncComplete: false,
21337
21606
  http_request: {
21338
- uri: `${config11.workflowsApiUr}/functions/create-helpdesk-ticket`,
21607
+ uri: `${getWorkflowsEnv(
21608
+ "workflowsApiUr"
21609
+ )}/functions/create-helpdesk-ticket`,
21339
21610
  body: {
21340
21611
  message: {
21341
21612
  text: "${livechat_get_chat_transcript_1.output.response.body.chat_transcript}"