summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/models/threads/abstract_thread.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-07-04 14:08:10 +0200
committerAlexandre Kühn <aku@odoo.com>2018-07-19 13:58:34 +0200
commitac14bcb7309c4a74221bb4ce5914382c8cc56584 (patch)
treea461c586e0428078bf07c2f1ce08c1b237836d9c /addons/mail/static/src/js/models/threads/abstract_thread.js
parent448cceffaa812fa5e10f67b290f4bfc93369800f (diff)
[ADD] mail: abstract thread model
Thread model that group all kinds of threads, including frontend threads (e.g. website livechat).
Diffstat (limited to 'addons/mail/static/src/js/models/threads/abstract_thread.js')
-rw-r--r--addons/mail/static/src/js/models/threads/abstract_thread.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/models/threads/abstract_thread.js b/addons/mail/static/src/js/models/threads/abstract_thread.js
new file mode 100644
index 00000000000..3ea263fa996
--- /dev/null
+++ b/addons/mail/static/src/js/models/threads/abstract_thread.js
@@ -0,0 +1,22 @@
+odoo.define('mail.model.AbstractThread', function (require) {
+"use strict";
+
+var Class = require('web.Class');
+
+/**
+ * Abstract thread is the super class of all threads, either backend threads
+ * (which are compatible with mail service) or website livechats.
+ */
+var AbstractThread = Class.extend({
+ init: function (parent, data) {},
+
+ //--------------------------------------------------------------------------
+ // Public
+ //--------------------------------------------------------------------------
+
+ getMessages: function () {},
+});
+
+return AbstractThread;
+
+});