{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1100","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1100/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1100/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1100/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1100","id":111473544,"number":1100,"title":"Module Hooks","user":{"login":"alisalaah","id":277910,"avatar_url":"https://avatars.githubusercontent.com/u/277910?v=3","gravatar_id":"","url":"https://api.github.com/users/alisalaah","html_url":"https://github.com/alisalaah","followers_url":"https://api.github.com/users/alisalaah/followers","following_url":"https://api.github.com/users/alisalaah/following{/other_user}","gists_url":"https://api.github.com/users/alisalaah/gists{/gist_id}","starred_url":"https://api.github.com/users/alisalaah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alisalaah/subscriptions","organizations_url":"https://api.github.com/users/alisalaah/orgs","repos_url":"https://api.github.com/users/alisalaah/repos","events_url":"https://api.github.com/users/alisalaah/events{/privacy}","received_events_url":"https://api.github.com/users/alisalaah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T19:26:27Z","updated_at":"2015-10-14T19:28:21Z","closed_at":null,"body":"While looking at the LiveChat module it's clear that all code should live inside of modules completely but they still need to tie into parts of the core interface.  While we already have a LiveChat section inside the Administration area now we need to make sure it's templates and function are inside the module completely (not sure how it hooks at the time of this ticket).\r\n\r\nMoving forward the module needs to hook the following ways also (html concepts included) where a new section needs to go in the dropdown between \"My Account\" and \"Administration\" to have all the LiveChat features and the other screenshot shows the LiveChat area with tabs for Depts, Ops, etc. The Main Nav (below history) would need an area for chats as well as accepting new ones that can flash, sound notif, desktop notif and mobile notif (etc.)\r\n\r\nThere needs to be a way to write these templates and code from the module and then pass them to the core to be in the right places and then the templates + code can live in the module and so on.  We can work together first to make the above examples work in the rocketchat-livechat module as an example for all future modules.\r\n\r\n![screen shot 2015-10-15 at 02 22 18](https://cloud.githubusercontent.com/assets/277910/10494985/9cf0b16a-72e3-11e5-9ad5-94a048cc5db3.png)\r\n\r\n![screen shot 2015-10-15 at 01 46 16](https://cloud.githubusercontent.com/assets/277910/10494854/ed1a5aa2-72e2-11e5-8631-46b492944060.png)\r\n\r\n![screen shot 2015-10-15 at 01 48 25](https://cloud.githubusercontent.com/assets/277910/10494853/ed18b760-72e2-11e5-9233-7870a600e64c.png)\r\n\r\n![screen shot 2015-10-15 at 01 55 05](https://cloud.githubusercontent.com/assets/277910/10494862/fc5f88e8-72e2-11e5-84a6-bceed2a08a75.png)"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/148168264","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1100#issuecomment-148168264","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1100","id":148168264,"user":{"login":"alisalaah","id":277910,"avatar_url":"https://avatars.githubusercontent.com/u/277910?v=3","gravatar_id":"","url":"https://api.github.com/users/alisalaah","html_url":"https://github.com/alisalaah","followers_url":"https://api.github.com/users/alisalaah/followers","following_url":"https://api.github.com/users/alisalaah/following{/other_user}","gists_url":"https://api.github.com/users/alisalaah/gists{/gist_id}","starred_url":"https://api.github.com/users/alisalaah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alisalaah/subscriptions","organizations_url":"https://api.github.com/users/alisalaah/orgs","repos_url":"https://api.github.com/users/alisalaah/repos","events_url":"https://api.github.com/users/alisalaah/events{/privacy}","received_events_url":"https://api.github.com/users/alisalaah/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T19:28:20Z","updated_at":"2015-10-14T19:28:20Z","body":"Also with future Roles / Perms - per https://github.com/RocketChat/Rocket.Chat/issues/1063 - a module needs to also send the core new permissions that can be assigned to roles.  In LiveChat this would be something like \"is-operator\" \"view-livechat-admin\" etc."}}