{ "module": "worker", "name": "Workers", "icon" : "icon-worker", "validations" : true, "menu": [ {"state": "worker.card.basicData", "icon": "settings"}, {"state": "worker.card.pbx", "icon": "icon-pbx"}, {"state": "worker.card.calendar", "icon": "icon-calendar"} ], "routes": [ { "url": "/worker", "state": "worker", "abstract": true, "component": "ui-view", "description": "Workers" }, { "url": "/index?q", "state": "worker.index", "component": "vn-worker-index", "description": "Workers" }, { "url" : "/summary", "state": "worker.card.summary", "component": "vn-worker-summary", "description": "Summary", "params": { "worker": "$ctrl.worker" } }, { "url": "/:id", "state": "worker.card", "component": "vn-worker-card", "abstract": true, "description": "Detail" }, { "url": "/basic-data", "state": "worker.card.basicData", "component": "vn-worker-basic-data", "description": "Basic data", "params": { "worker": "$ctrl.worker" }, "acl": ["developer"] }, { "url": "/pbx", "state": "worker.card.pbx", "component": "vn-worker-pbx", "description": "Private Branch Exchange", "params": { "worker": "$ctrl.worker" }, "acl": ["hr"] }, { "url": "/calendar", "state": "worker.card.calendar", "component": "vn-worker-calendar", "description": "Calendar", "params": { "worker": "$ctrl.worker" } }, { "url" : "/department", "state": "worker.department", "component": "vn-worker-department", "description": "Departments" } ] }