From ac14bcb7309c4a74221bb4ce5914382c8cc56584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Wed, 4 Jul 2018 14:08:10 +0200 Subject: [PATCH] [ADD] mail: abstract thread model Thread model that group all kinds of threads, including frontend threads (e.g. website livechat). --- .../src/js/models/threads/abstract_thread.js | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 addons/mail/static/src/js/models/threads/abstract_thread.js 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; + +});