diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-05-18 13:17:42 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-05-28 07:30:12 +0200 |
| commit | 2aeb7637689e3bd0e124b8effeb3f294e80eaad1 (patch) | |
| tree | 1fce7bec5c0c5d8b511d1d0bb8437ff20ddd0732 /addons/im_support/static/src/js/support_bus.js | |
| parent | 10161f9d61fd4107ac48abdd6e243b3c9c7405cb (diff) | |
[ADD] im_support
This rev. adds a new module enabling the livechat support from
the webclient. It allows employee users to communicate with
livechat operators of another database, assuming that a counterpart
addon is installed on that database.
Task 26762
Co-authored-by: Adrien Dieudonne <adr@odoo.com>
Diffstat (limited to 'addons/im_support/static/src/js/support_bus.js')
| -rw-r--r-- | addons/im_support/static/src/js/support_bus.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/addons/im_support/static/src/js/support_bus.js b/addons/im_support/static/src/js/support_bus.js new file mode 100644 index 00000000000..70c4e1dd3c1 --- /dev/null +++ b/addons/im_support/static/src/js/support_bus.js @@ -0,0 +1,28 @@ +odoo.define('im_support.SupportBus', function (require) { +"use strict"; + +/** + * This module instantiates and exports the instance of the Bus, parameterized + * to poll the Support server. + */ + +var supportSession = require('im_support.SupportSession'); + +var bus = require('bus.bus'); + +var Bus; +if(typeof Storage !== "undefined"){ + Bus = bus.CrossTabBus; +} else { + Bus = bus.Bus; +} + +var params = { + session: supportSession, + pollRoute: '/longpolling/support_poll', +}; + +return new Bus(params); + +}); + |
