367 lines
10 KiB
JSON
367 lines
10 KiB
JSON
{
|
|
"module": "client",
|
|
"name": "Clients",
|
|
"icon": "person",
|
|
"validations" : true,
|
|
"routes": [
|
|
{
|
|
"url": "/client",
|
|
"state": "client",
|
|
"abstract": true,
|
|
"component": "ui-view",
|
|
"description": "Clients",
|
|
"acl": ["employee"]
|
|
},
|
|
{
|
|
"url": "/index?q",
|
|
"state": "client.index",
|
|
"component": "vn-client-index",
|
|
"description": "List"
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "client.create",
|
|
"component": "vn-client-create",
|
|
"description": "New client"
|
|
},
|
|
{
|
|
"url": "/:id",
|
|
"state": "client.card",
|
|
"abstract": true,
|
|
"component": "vn-client-card"
|
|
},
|
|
{
|
|
"url": "/summary",
|
|
"state": "client.card.summary",
|
|
"component": "vn-client-summary",
|
|
"description": "Summary",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
}
|
|
},
|
|
{
|
|
"url": "/basic-data",
|
|
"state": "client.card.basicData",
|
|
"component": "vn-client-basic-data",
|
|
"description": "Basic data",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "settings"
|
|
}
|
|
},
|
|
{
|
|
"url": "/fiscal-data",
|
|
"state": "client.card.fiscalData",
|
|
"component": "vn-client-fiscal-data",
|
|
"description": "Fiscal data",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "account_balance"
|
|
}
|
|
},
|
|
{
|
|
"url": "/billing-data",
|
|
"state": "client.card.billingData",
|
|
"component": "vn-client-billing-data",
|
|
"description": "Pay method",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "icon-payment"
|
|
}
|
|
},
|
|
{
|
|
"url": "/address",
|
|
"state": "client.card.address",
|
|
"component": "ui-view",
|
|
"abstract": true
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "client.card.address.index",
|
|
"component": "vn-client-address-index",
|
|
"description": "Addresses",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "local_shipping"
|
|
}
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "client.card.address.create",
|
|
"component": "vn-client-address-create",
|
|
"description": "New address"
|
|
},
|
|
{
|
|
"url": "/:addressId/edit",
|
|
"state": "client.card.address.edit",
|
|
"component": "vn-client-address-edit",
|
|
"description": "Edit address"
|
|
},
|
|
{
|
|
"url": "/web-access",
|
|
"state": "client.card.webAccess",
|
|
"component": "vn-client-web-access",
|
|
"description": "Web access",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "cloud"
|
|
}
|
|
},
|
|
{
|
|
"url": "/note",
|
|
"state": "client.card.note",
|
|
"component": "ui-view",
|
|
"abstract": true
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "client.card.note.index",
|
|
"component": "vn-client-note",
|
|
"description": "Notes",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "insert_drive_file"
|
|
}
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "client.card.note.create",
|
|
"component": "vn-note-create",
|
|
"description": "New note"
|
|
},
|
|
{
|
|
"url": "/credit",
|
|
"abstract": true,
|
|
"state": "client.card.credit",
|
|
"component": "ui-view"
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "client.card.credit.index",
|
|
"component": "vn-client-credit-index",
|
|
"description": "Credits",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "credit_card"
|
|
}
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "client.card.credit.create",
|
|
"component": "vn-client-credit-create",
|
|
"description": "New credit",
|
|
"acl": ["teamBoss"],
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
}
|
|
},
|
|
{
|
|
"url": "/greuge",
|
|
"abstract": true,
|
|
"state": "client.card.greuge",
|
|
"component": "ui-view"
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "client.card.greuge.index",
|
|
"component": "vn-client-greuge-index",
|
|
"description": "Greuges",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "work"
|
|
}
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "client.card.greuge.create",
|
|
"component": "vn-client-greuge-create",
|
|
"description": "New greuge",
|
|
"acl": ["salesAssistant"],
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
}
|
|
},
|
|
{
|
|
"url": "/mandate",
|
|
"state": "client.card.mandate",
|
|
"component": "vn-client-mandate",
|
|
"description": "Mandates",
|
|
"menu": {
|
|
"icon": "pan_tool"
|
|
}
|
|
},
|
|
{
|
|
"url": "/risk",
|
|
"abstract": true,
|
|
"state": "client.card.risk",
|
|
"component": "ui-view"
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "client.card.risk.index",
|
|
"component": "vn-client-risk-index",
|
|
"description": "Risk",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "icon-invoices"
|
|
}
|
|
},
|
|
{
|
|
"url": "/recovery",
|
|
"abstract": true,
|
|
"state": "client.card.recovery",
|
|
"component": "ui-view"
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "client.card.recovery.index",
|
|
"component": "vn-client-recovery-index",
|
|
"description": "Recoveries",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "icon-recovery"
|
|
}
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "client.card.recovery.create",
|
|
"component": "vn-client-recovery-create",
|
|
"description": "New recovery",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
}
|
|
},
|
|
{
|
|
"url": "/credit-insurance",
|
|
"abstract": true,
|
|
"state": "client.card.creditInsurance",
|
|
"component": "ui-view",
|
|
"acl": ["creditInsurance"]
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "client.card.creditInsurance.index",
|
|
"component": "vn-client-credit-insurance-index",
|
|
"description": "Credit contracts",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "icon-solunion"
|
|
},
|
|
"acl": ["creditInsurance"]
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "client.card.creditInsurance.create",
|
|
"component": "vn-client-credit-insurance-create",
|
|
"description": "New insurance",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
}
|
|
},
|
|
{
|
|
"url": "/insurance",
|
|
"abstract": true,
|
|
"state": "client.card.creditInsurance.insurance",
|
|
"component": "ui-view",
|
|
"acl": ["creditInsurance"]
|
|
},
|
|
{
|
|
"url": "/:classificationId/index",
|
|
"state": "client.card.creditInsurance.insurance.index",
|
|
"component": "vn-client-credit-insurance-insurance-index",
|
|
"description": "Requested credits",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
}
|
|
},
|
|
{
|
|
"url": "/:classificationId/create",
|
|
"state": "client.card.creditInsurance.insurance.create",
|
|
"component": "vn-client-credit-insurance-insurance-create",
|
|
"description": "New credit",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
}
|
|
},
|
|
{
|
|
"url": "/contact",
|
|
"state": "client.card.contact",
|
|
"component": "vn-client-contact",
|
|
"description": "Contacts",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "contact_phone"
|
|
}
|
|
},
|
|
{
|
|
"url": "/sample",
|
|
"abstract": true,
|
|
"state": "client.card.sample",
|
|
"component": "ui-view"
|
|
},
|
|
{
|
|
"url": "/index",
|
|
"state": "client.card.sample.index",
|
|
"component": "vn-client-sample-index",
|
|
"description": "Samples",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
},
|
|
"menu": {
|
|
"icon": "mail"
|
|
}
|
|
},
|
|
{
|
|
"url": "/create",
|
|
"state": "client.card.sample.create",
|
|
"component": "vn-client-sample-create",
|
|
"description": "Send sample",
|
|
"params": {
|
|
"client": "$ctrl.client"
|
|
}
|
|
},
|
|
{
|
|
"url": "/web-payment",
|
|
"state": "client.card.webPayment",
|
|
"component": "vn-client-web-payment",
|
|
"description": "Web Payment",
|
|
"menu": {
|
|
"icon": ""
|
|
}
|
|
},
|
|
{
|
|
"url" : "/history",
|
|
"state": "client.card.history",
|
|
"component": "vn-client-history",
|
|
"description": "History",
|
|
"menu": {
|
|
"icon": "history"
|
|
}
|
|
}
|
|
]
|
|
}
|