{
    "factory_numbers": [],
    "events": {
        "order_new": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": true,
            "factory": false,
            "template": "🆕 *Comandă nouă* — {order_code}\n👤 Client: {client_name}\n🏢 Dealer: {dealer_name}\n🪟 Sistem: {tip_sistem}\n💰 Total: {total} RON",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": true,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": true,
                "value": true,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "payment_new": {
            "on": true,
            "roles": [
                "admin",
                "supervisor"
            ],
            "dealer": true,
            "factory": false,
            "template": "💳 *Plată înregistrată* — comanda {order_code}\n💰 Sumă: {amount} RON\n📅 Data: {payment_date}\n💼 Metodă: {payment_method}\n👤 Client: {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": true
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "status_validata": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": true,
            "factory": false,
            "template": "📦 *Comanda {order_code}*\n✅ Status: *Validată*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": true,
                "value": true,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "status_in_curs": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": true,
            "factory": false,
            "template": "📦 *Comanda {order_code}*\n⚙️ Status: *În producție*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": true,
                "value": false,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "status_finalizata": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": true,
            "factory": false,
            "template": "📦 *Comanda {order_code}*\n🏁 Status: *Finalizată*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": true
            },
            "fields": {
                "phone": true,
                "value": true,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "status_expediata": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": true,
            "factory": false,
            "template": "📦 *Comanda {order_code}*\n🚚 Status: *Expediată*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": true
            },
            "fields": {
                "phone": true,
                "value": true,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "status_livrata": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": true,
            "factory": false,
            "template": "📦 *Comanda {order_code}*\n📬 Status: *Livrată*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": true
            },
            "fields": {
                "phone": true,
                "value": true,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "status_blocata": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": true,
            "factory": false,
            "template": "📦 *Comanda {order_code}*\n⛔ Status: *BLOCATĂ*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": true,
                "value": true,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "status_anulata": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": true,
            "factory": false,
            "template": "📦 *Comanda {order_code}*\n🚫 Status: *ANULATĂ*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": true
            },
            "fields": {
                "phone": true,
                "value": true,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "retur_dealer": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": true,
            "factory": false,
            "template": "↩️ *Comanda {order_code}* a fost întoarsă pentru corecție\n📝 Motiv: {retur_motiv}\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": true
            },
            "fields": {
                "phone": true,
                "value": true,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "prod_status": {
            "on": true,
            "roles": [
                "admin",
                "productie"
            ],
            "dealer": false,
            "factory": false,
            "template": "⚙️ *Comanda {order_code}*\n🏭 Producție: *{prod_label}*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": false,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        },
        "sticla_status": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": false,
            "factory": false,
            "template": "🪟 *Comanda {order_code}*\n{slot_label}: *{slot_state}*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": false,
            "docs": {
                "order_link": true,
                "sketch": true,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": true,
                "consultant": true,
                "consultant_contact": true
            }
        },
        "profile_status": {
            "on": false,
            "roles": [
                "admin",
                "achizitii",
                "productie"
            ],
            "dealer": false,
            "factory": false,
            "template": "🧱 *Comanda {order_code}*\n{slot_label}: *{slot_state}*\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": false,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        },
        "slot_obs": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": false,
            "factory": false,
            "template": "💬 *Observație — {slot_label}*\n📦 Comanda {order_code}\n📝 {note}\n👤 Scrisă de: {obs_user}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": false,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        },
        "glass_launch_needed": {
            "on": true,
            "roles": [
                "achizitii"
            ],
            "dealer": false,
            "factory": false,
            "template": "🪟 Trebuie să lansezi cotele de sticlă la comanda *{order_code}*\n🏢 Firma: {dealer_name}\n📝 Referință: {reference}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": false,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        },
        "proforma_needed": {
            "on": true,
            "roles": [
                "contabilitate"
            ],
            "dealer": false,
            "factory": false,
            "template": "🧾 Trebuie să generezi factura PROFORMĂ la comanda *{order_code}*\n🏢 Dealer: {dealer_name}\n📦 Cod comandă: {order_code}\n💰 Valoare: {total} lei",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": false,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        },
        "doc_attached": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": false,
            "factory": false,
            "template": "📎 *Document nou* — comanda {order_code}\n🗂️ {doc_label}\n📄 {file_name}\n{observations}\n👤 {client_name}",
            "icons": true,
            "wa": true,
            "mail": false,
            "docs": {
                "order_link": false,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        },
        "order_note": {
            "on": true,
            "roles": [],
            "dealer": true,
            "factory": false,
            "template": "💬 *Mesaj nou* — comanda {order_code}\n👤 De la: {msg_from}\n📝 {note}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": true,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        },
        "account_new": {
            "on": true,
            "roles": [
                "admin"
            ],
            "dealer": false,
            "factory": false,
            "template": "👋 *Cont nou creat*\n👤 {full_name}\n🏢 {firma_nume}\n✉️ {email}\n🏷️ {role}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": false,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        },
        "promo_new": {
            "on": false,
            "roles": [
                "dealer",
                "agent"
            ],
            "dealer": false,
            "factory": false,
            "template": "🎉 *Promoție nouă*\n{title}\n{message}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": false,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        },
        "system": {
            "on": false,
            "roles": [
                "admin"
            ],
            "dealer": false,
            "factory": false,
            "template": "🔔 *{title}*\n{message}",
            "icons": true,
            "wa": true,
            "mail": true,
            "docs": {
                "order_link": false,
                "sketch": false,
                "offer_pdf": false,
                "invoice_pdf": false
            },
            "fields": {
                "phone": false,
                "value": false,
                "system": false,
                "consultant": false,
                "consultant_contact": false
            }
        }
    },
    "updated": "2026-07-03T11:15:03+03:00"
}