{
    "customLogicPreProcessors": [
        {
          "className": "ext_communicator.CoordinatesFactory"
        }
    ],
    "customLogicRawDataPreProcessors": [
        {
            "className": "FilterByConditions",
            "parameters": {
                "conditions": [
                    [
                        { "key": "viewingChannel", "conditionalOperator": "contains", "value": "WEB_PIANAROTALIANA" }
                    ]
                ]
            }
        }
    ],
    "fields": [
        {
            "from": "title",
            "to": "title",
            "type": "multilanguage"
        },
        {
            "from": "subtitle",
            "to": "subtitle",
            "type": "multilanguage"
        },
        {
            "from": "menuTitle",
            "to": "menuTitle",
            "type": "multilanguage"
        },
        {
            "from": "shortDescription",
            "to": "shortDescription",
            "type": "multilanguage"
        },
        {
            "from": "description",
            "to": "description",
            "type": "multilanguage"
        },
        {
            "from": "genericRelationsTitle",
            "to": "genericRelationsTitle",
            "type": "multilanguage"
        },
        {
            "from": "name",
            "to": "name",
            "type": "multilanguage"
        },
        {
            "from": "website",
            "to": "website",
            "type": "multilanguage"
        },
        {
            "from": "fullRate",
            "to": "descriptiveBasePrice",
            "type": "multilanguage"
        },
        {
            "from": "reducedRate",
            "to": "reducedRate",
            "type": "multilanguage"
        },
        {
            "from": "freeFor",
            "to": "freeFor",
            "type": "multilanguage"
        },
        {
            "from": "descriptiveDate",
            "to": "descriptiveDate",
            "type": "multilanguage"
        },
        {
            "from": "descriptiveTime",
            "to": "descriptiveTime",
            "type": "multilanguage"
        },
        {
            "from": "disabled",
            "to": "disabled",
            "type": "multilanguage"
        },
        {
            "from": "mainImage",
            "customLogicProcessors": [
                {
                    "className": "ChangeMapKeysNames",
                    "parameters": {
                        "mappings": [
                            {
                                "from": "largeUrl",
                                "to": "url"
                            }
                        ]
                    }
                }
            ],
            "to": "mainImage",
            "type": "image"
        },
        {
            "from": "galleries",
            "customLogicProcessors": [
                {
                    "className": "GetFirstOccurrence"
                },
                {
                    "className": "list.ChangeMapKeysNames",
                    "parameters": {
                        "mappings": [
                            {
                                "from": "largeUrl",
                                "to": "url"
                            }
                        ]
                    }
                }
            ],
            "to": "galleries",
            "type": "gallery"
        },
        {
            "from": "email",
            "to": "email",
            "type": "standard"
        },
        {
            "from": "telephone",
            "to": "telephone",
            "type": "standard"
        },
        {
            "from": "fax",
            "to": "fax",
            "type": "standard"
        },
        {
            "from": "mobile",
            "to": "mobile",
            "type": "standard"
        },
        {
            "from": "facebook",
            "to": "facebook",
            "type": "link"
        },
        {
            "from": "instagram",
            "to": "instagram",
            "type": "link"
        },
        {
            "from": "twitter",
            "to": "twitter",
            "type": "link"
        },
        {
            "from": "youtube",
            "to": "youtube",
            "type": "link"
        },
        {
            "from": "vimeo",
            "to": "vimeo",
            "type": "link"
        },
        {
            "from": "coordinates",
            "to": "point",
            "type": "geoCoordinates"
        },
        {
            "from": "altitude",
            "to": "altitude",
            "convertBlankToNull": true,
            "type": "standard"
        }, 
        {
            "from": "eventLocality",
            "customLogicProcessors": [
                {
                    "className": "map.Put",
                    "parameters": {
                        "key": "it"
                    }
                },
                {
                    "className": "map.Put",
                    "parameters": {
                        "key": "en",
                        "copyFromKey": "it"
                    }
                },
                {
                    "className": "map.Put",
                    "parameters": {
                        "key": "de",
                        "copyFromKey": "it"
                    }
                }
            ],
            "to": "eventLocality",
            "type": "multilanguage"
        },
        {
            "from": "eventAddress",
            "customLogicProcessors": [
                {
                    "className": "map.FillEmptyFields",
                    "parameters": {
                        "sourceKey": "it",
                        "fallbackToFirst": true
                    }
                }
            ],
            "to": "eventAddress",
            "type": "multilanguage"
        }, 
        {
            "from": "free",
            "to": "free",
            "type": "checkbox"
        },
        {
            "from": "relatedDestination",
            "to": "relatedDestination",
            "type": "standard"
        },
        {
            "from": "bookingLink",
            "to": "bookingUrl",
            "type": "standard"
        },
        {
            "from": "availabilities",
            "to": "availabilities",
            "type": "availabilities"
        },
        {
            "from": "descriptiveBasePrice",
            "to": "descriptiveBasePrice",
            "type": "multilanguage"
        },
        {
            "from": "surname",
            "to": "surname",
            "type": "standard"
        },
        {
            "from": "address",
            "to": "address",
            "type": "standard"
        },
        {
            "from": "province",
            "to": "province",
            "type": "standard"
        },
        {
            "from": "zipCode",
            "to": "zipCode",
            "type": "standard"
        },
        {
            "from": "village",
            "to": "village",
            "type": "standard"
        },
        {
            "from": "country",
            "to": "country",
            "type": "standard"
        },
        {
            "from": "email2",
            "to": "email2",
            "type": "standard"
        },
        {
            "from": "telephone2",
            "to": "telephone2",
            "type": "standard"
        },
        {
            "from": "website2",
            "to": "website2",
            "type": "standard"
        },
        {
            "from": "email2",
            "to": "email2",
            "type": "standard"
        },
        {
            "from": "tags",
            "customLogicProcessors": [
                {
                    "className": "TagsMatch",
                    "parameters": {
                        "matches": {
                            "EV_ATTIVITA_OUTDOOR": "EV_ATTIVITA_OUTDOOR",
                            "EV_A_RITMO_LENTO": "EV_A_RITMO_LENTO",
                            "EV_CON_ANIMALI": "EV_CON_ANIMALI",
                            "EV_ENOGASTRONOMIA": "EV_ENOGASTRONOMIA",
                            "EV_FAMIGLIE_BAMBINI": "EV_FAMIGLIE_BAMBINI",
                            "EV_INTRATTENIMENTO": "EV_INTRATTENIMENTO",
                            "EV_SE_PIOVE": "EV_SE_PIOVE",
                            "EV_TOP_EVENT": "EV_TOP_EVENT"
                        }
                    }
                }
            ],
            "to": "tags",
            "type": "tags"
        }
    ],
    "customLogicPostProcessors": [
        {
            "className": "FilterAvailabilities",
            "parameters": {
                "currentAndFuture": true
            }
        }
    ],
    "customLogicProcessedDataPostProcessors": [
        {
            "className": "Order",
            "parameters": {
                "order": [
                    { "fieldName": "date", "type": "ASC" }
                ]
            }
        }
    ]
}