2017-01-31 13:13:06 +00:00
|
|
|
{
|
|
|
|
"module": "client",
|
2017-05-30 07:54:35 +00:00
|
|
|
"name": "Clients",
|
2018-03-12 11:31:50 +00:00
|
|
|
"icon": "person",
|
2017-07-03 06:38:45 +00:00
|
|
|
"validations" : true,
|
2019-01-28 15:24:45 +00:00
|
|
|
"menu": [
|
|
|
|
{"state": "client.card.basicData", "icon": "settings"},
|
|
|
|
{"state": "client.card.fiscalData", "icon": "account_balance"},
|
|
|
|
{"state": "client.card.billingData", "icon": "icon-payment"},
|
|
|
|
{"state": "client.card.address.index", "icon": "local_shipping"},
|
|
|
|
{"state": "client.card.note.index", "icon": "insert_drive_file"},
|
|
|
|
{"state": "client.card.credit.index", "icon": "credit_card"},
|
|
|
|
{"state": "client.card.greuge.index", "icon": "work"},
|
|
|
|
{"state": "client.card.risk.index", "icon": "icon-invoices"},
|
|
|
|
{"state": "client.card.recovery.index", "icon": "icon-recovery"},
|
|
|
|
{"state": "client.card.log", "icon": "history"},
|
|
|
|
{
|
|
|
|
"description": "Others",
|
|
|
|
"icon": "more",
|
|
|
|
"childs": [
|
|
|
|
{"state": "client.card.webAccess", "icon": "cloud"},
|
|
|
|
{"state": "client.card.mandate", "icon": "pan_tool"},
|
|
|
|
{"state": "client.card.creditInsurance.index", "icon": "icon-solunion"},
|
|
|
|
{"state": "client.card.contact", "icon": "contact_phone"},
|
|
|
|
{"state": "client.card.sample.index", "icon": "mail"},
|
|
|
|
{"state": "client.card.webPayment", "icon": "icon-onlinepayment"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"keybindings": [
|
|
|
|
{"key": "c", "state": "client.index"}
|
|
|
|
],
|
2017-01-31 13:13:06 +00:00
|
|
|
"routes": [
|
|
|
|
{
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/client",
|
|
|
|
"state": "client",
|
|
|
|
"abstract": true,
|
|
|
|
"component": "ui-view",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Clients",
|
2017-11-09 10:39:41 +00:00
|
|
|
"acl": ["employee"]
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/index?q",
|
|
|
|
"state": "client.index",
|
2018-07-25 13:14:03 +00:00
|
|
|
"component": "vn-client-index",
|
2019-01-27 23:26:01 +00:00
|
|
|
"description": "Clients"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-06-03 11:01:47 +00:00
|
|
|
"url": "/create",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.create",
|
2018-07-25 13:14:03 +00:00
|
|
|
"component": "vn-client-create",
|
|
|
|
"description": "New client"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/:id",
|
|
|
|
"state": "client.card",
|
2017-05-23 07:20:21 +00:00
|
|
|
"abstract": true,
|
2017-01-31 13:13:06 +00:00
|
|
|
"component": "vn-client-card"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/summary",
|
|
|
|
"state": "client.card.summary",
|
|
|
|
"component": "vn-client-summary",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Summary",
|
2018-05-23 12:26:51 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-01-31 13:13:06 +00:00
|
|
|
"url": "/basic-data",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.basicData",
|
2017-01-31 13:13:06 +00:00
|
|
|
"component": "vn-client-basic-data",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Basic data",
|
2017-01-31 13:13:06 +00:00
|
|
|
"params": {
|
2017-10-05 07:20:40 +00:00
|
|
|
"client": "$ctrl.client"
|
2017-05-25 09:48:10 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-01-31 13:13:06 +00:00
|
|
|
"url": "/fiscal-data",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.fiscalData",
|
2017-01-31 13:13:06 +00:00
|
|
|
"component": "vn-client-fiscal-data",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Fiscal data",
|
2017-01-31 13:13:06 +00:00
|
|
|
"params": {
|
2017-10-05 07:20:40 +00:00
|
|
|
"client": "$ctrl.client"
|
2017-05-25 09:48:10 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-05-23 08:58:17 +00:00
|
|
|
"url": "/billing-data",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.billingData",
|
2017-05-23 08:58:17 +00:00
|
|
|
"component": "vn-client-billing-data",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Pay method",
|
2017-05-23 08:58:17 +00:00
|
|
|
"params": {
|
2017-10-05 07:20:40 +00:00
|
|
|
"client": "$ctrl.client"
|
2017-05-25 09:48:10 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/address",
|
|
|
|
"state": "client.card.address",
|
2017-05-23 12:36:54 +00:00
|
|
|
"component": "ui-view",
|
|
|
|
"abstract": true
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/index",
|
|
|
|
"state": "client.card.address.index",
|
|
|
|
"component": "vn-client-address-index",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Addresses",
|
2017-01-31 13:13:06 +00:00
|
|
|
"params": {
|
2017-10-05 07:20:40 +00:00
|
|
|
"client": "$ctrl.client"
|
2018-11-05 14:06:13 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-05-23 12:36:54 +00:00
|
|
|
"url": "/create",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.address.create",
|
2018-07-25 13:14:03 +00:00
|
|
|
"component": "vn-client-address-create",
|
|
|
|
"description": "New address"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-05-23 12:36:54 +00:00
|
|
|
"url": "/:addressId/edit",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.address.edit",
|
2018-07-25 13:14:03 +00:00
|
|
|
"component": "vn-client-address-edit",
|
|
|
|
"description": "Edit address"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-01-31 13:13:06 +00:00
|
|
|
"url": "/web-access",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.webAccess",
|
2017-01-31 13:13:06 +00:00
|
|
|
"component": "vn-client-web-access",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Web access",
|
2017-01-31 13:13:06 +00:00
|
|
|
"params": {
|
2017-10-05 07:20:40 +00:00
|
|
|
"client": "$ctrl.client"
|
2018-11-05 14:06:13 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/note",
|
|
|
|
"state": "client.card.note",
|
2017-05-23 12:36:54 +00:00
|
|
|
"component": "ui-view",
|
|
|
|
"abstract": true
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/index",
|
|
|
|
"state": "client.card.note.index",
|
|
|
|
"component": "vn-client-note",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Notes",
|
2017-01-31 13:13:06 +00:00
|
|
|
"params": {
|
2017-10-05 07:20:40 +00:00
|
|
|
"client": "$ctrl.client"
|
2017-05-25 09:48:10 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-05-23 12:36:54 +00:00
|
|
|
"url": "/create",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.note.create",
|
2018-07-25 13:14:03 +00:00
|
|
|
"component": "vn-note-create",
|
|
|
|
"description": "New note"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-12-04 07:17:29 +00:00
|
|
|
"url": "/credit",
|
|
|
|
"abstract": true,
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.credit",
|
2017-12-04 07:17:29 +00:00
|
|
|
"component": "ui-view"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/index",
|
|
|
|
"state": "client.card.credit.index",
|
|
|
|
"component": "vn-client-credit-index",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Credits",
|
2017-12-04 07:17:29 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
2018-02-15 12:04:48 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-12-04 07:17:29 +00:00
|
|
|
"url": "/create",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.credit.create",
|
2017-12-04 07:17:29 +00:00
|
|
|
"component": "vn-client-credit-create",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "New credit",
|
2018-10-23 09:25:51 +00:00
|
|
|
"acl": ["teamBoss"],
|
2017-12-04 07:17:29 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-12-04 07:17:29 +00:00
|
|
|
"url": "/greuge",
|
|
|
|
"abstract": true,
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.greuge",
|
2017-12-04 07:17:29 +00:00
|
|
|
"component": "ui-view"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/index",
|
|
|
|
"state": "client.card.greuge.index",
|
|
|
|
"component": "vn-client-greuge-index",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Greuges",
|
2017-12-04 07:17:29 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-12-04 07:17:29 +00:00
|
|
|
"url": "/create",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.greuge.create",
|
2017-12-04 07:17:29 +00:00
|
|
|
"component": "vn-client-greuge-create",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "New greuge",
|
2018-10-23 09:25:51 +00:00
|
|
|
"acl": ["salesAssistant"],
|
2017-12-04 07:17:29 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2017-12-13 07:04:53 +00:00
|
|
|
"url": "/mandate",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.mandate",
|
2017-12-13 07:04:53 +00:00
|
|
|
"component": "vn-client-mandate",
|
2018-11-05 14:06:13 +00:00
|
|
|
"description": "Mandates"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-10-19 06:40:32 +00:00
|
|
|
"url": "/risk",
|
|
|
|
"abstract": true,
|
|
|
|
"state": "client.card.risk",
|
|
|
|
"component": "ui-view"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-10-19 06:40:32 +00:00
|
|
|
"url": "/index",
|
|
|
|
"state": "client.card.risk.index",
|
|
|
|
"component": "vn-client-risk-index",
|
2018-12-19 10:22:16 +00:00
|
|
|
"description": "Balance",
|
2018-10-19 06:40:32 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
2018-03-01 13:01:45 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-10-24 12:10:48 +00:00
|
|
|
"url": "/create?payed&companyFk&bankFk&payedAmount",
|
|
|
|
"state": "client.card.risk.create",
|
|
|
|
"component": "vn-client-risk-create",
|
|
|
|
"description": "New payment",
|
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-03-01 10:55:28 +00:00
|
|
|
"url": "/recovery",
|
|
|
|
"abstract": true,
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.recovery",
|
2018-03-01 10:55:28 +00:00
|
|
|
"component": "ui-view"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/index",
|
|
|
|
"state": "client.card.recovery.index",
|
|
|
|
"component": "vn-client-recovery-index",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Recoveries",
|
2018-03-01 10:55:28 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-03-01 10:55:28 +00:00
|
|
|
"url": "/create",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.recovery.create",
|
2018-03-01 10:55:28 +00:00
|
|
|
"component": "vn-client-recovery-create",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "New recovery",
|
2018-03-01 10:55:28 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/credit-insurance",
|
2018-03-14 10:36:57 +00:00
|
|
|
"abstract": true,
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.creditInsurance",
|
2018-03-14 10:36:57 +00:00
|
|
|
"component": "ui-view",
|
|
|
|
"acl": ["creditInsurance"]
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/index",
|
|
|
|
"state": "client.card.creditInsurance.index",
|
|
|
|
"component": "vn-client-credit-insurance-index",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Credit contracts",
|
2019-01-30 12:32:25 +00:00
|
|
|
"acl": ["creditInsurance"],
|
2018-03-14 10:36:57 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
2018-11-05 14:06:13 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-03-14 10:36:57 +00:00
|
|
|
"url": "/create",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.creditInsurance.create",
|
|
|
|
"component": "vn-client-credit-insurance-create",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "New insurance",
|
2018-03-14 10:36:57 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/insurance",
|
2018-03-14 10:36:57 +00:00
|
|
|
"abstract": true,
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.creditInsurance.insurance",
|
2018-03-14 10:36:57 +00:00
|
|
|
"component": "ui-view",
|
|
|
|
"acl": ["creditInsurance"]
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-05-23 12:26:51 +00:00
|
|
|
"url": "/:classificationId/index",
|
|
|
|
"state": "client.card.creditInsurance.insurance.index",
|
|
|
|
"component": "vn-client-credit-insurance-insurance-index",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "Requested credits",
|
2018-11-05 14:06:13 +00:00
|
|
|
"acl": ["creditInsurance"],
|
2018-03-14 10:36:57 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-03-14 10:36:57 +00:00
|
|
|
"url": "/:classificationId/create",
|
2018-05-23 12:26:51 +00:00
|
|
|
"state": "client.card.creditInsurance.insurance.create",
|
|
|
|
"component": "vn-client-credit-insurance-insurance-create",
|
2018-07-25 13:14:03 +00:00
|
|
|
"description": "New credit",
|
2018-03-14 10:36:57 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-06-26 07:41:27 +00:00
|
|
|
"url": "/contact",
|
|
|
|
"state": "client.card.contact",
|
2018-07-31 09:08:22 +00:00
|
|
|
"component": "vn-client-contact",
|
|
|
|
"description": "Contacts",
|
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-07-31 09:08:22 +00:00
|
|
|
"url": "/sample",
|
|
|
|
"abstract": true,
|
|
|
|
"state": "client.card.sample",
|
2018-06-26 07:41:27 +00:00
|
|
|
"component": "ui-view"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-06-26 07:41:27 +00:00
|
|
|
"url": "/index",
|
2018-07-31 09:08:22 +00:00
|
|
|
"state": "client.card.sample.index",
|
|
|
|
"component": "vn-client-sample-index",
|
|
|
|
"description": "Samples",
|
2018-06-26 07:41:27 +00:00
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
2018-07-31 09:08:22 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-07-31 09:08:22 +00:00
|
|
|
"url": "/create",
|
|
|
|
"state": "client.card.sample.create",
|
|
|
|
"component": "vn-client-sample-create",
|
|
|
|
"description": "Send sample",
|
|
|
|
"params": {
|
|
|
|
"client": "$ctrl.client"
|
2018-06-26 07:41:27 +00:00
|
|
|
}
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-09-28 13:00:12 +00:00
|
|
|
"url": "/web-payment",
|
|
|
|
"state": "client.card.webPayment",
|
|
|
|
"component": "vn-client-web-payment",
|
2018-11-05 14:06:13 +00:00
|
|
|
"description": "Web Payment"
|
2019-01-28 15:24:45 +00:00
|
|
|
}, {
|
2018-10-29 10:56:55 +00:00
|
|
|
"url" : "/log",
|
|
|
|
"state": "client.card.log",
|
|
|
|
"component": "vn-client-log",
|
2018-11-05 14:06:13 +00:00
|
|
|
"description": "Log"
|
|
|
|
}
|
2017-01-31 13:13:06 +00:00
|
|
|
]
|
|
|
|
}
|