From 58aec22fc3f8c098e1dc7b9559ce5634a057738c Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Fri, 8 Aug 2014 12:20:44 +0000 Subject: [PATCH] Remove compiled files from the reository --- .gitignore | 14 + src/mibew/js/compiled/.keep | 0 src/mibew/js/compiled/brws.js | 8 - src/mibew/js/compiled/chat/app.js | 8 - .../collection_views/messages_collection.js | 8 - .../collection_views/status_collection.js | 8 - .../js/compiled/chat/collections/messages.js | 8 - .../js/compiled/chat/collections/status.js | 8 - src/mibew/js/compiled/chat/init.js | 8 - src/mibew/js/compiled/chat/layouts/chat.js | 8 - .../js/compiled/chat/layouts/invitation.js | 8 - .../js/compiled/chat/layouts/leave_message.js | 8 - src/mibew/js/compiled/chat/layouts/survey.js | 8 - .../chat/mibewapi_chat_interaction.js | 8 - .../js/compiled/chat/model_views/avatar.js | 8 - .../chat/model_views/controls/close.js | 8 - .../chat/model_views/controls/history.js | 8 - .../chat/model_views/controls/redirect.js | 8 - .../chat/model_views/controls/refresh.js | 8 - .../chat/model_views/controls/secure_mode.js | 8 - .../chat/model_views/controls/send_mail.js | 8 - .../chat/model_views/controls/sound.js | 8 - .../chat/model_views/controls/user_name.js | 8 - .../leave_message_description.js | 8 - .../leave_message/leave_message_form.js | 8 - .../leave_message_sent_description.js | 8 - .../chat/model_views/messages/message.js | 8 - .../chat/model_views/messages/message_form.js | 8 - .../chat/model_views/status/base_status.js | 8 - .../chat/model_views/status/message.js | 8 - .../chat/model_views/status/typing.js | 8 - .../model_views/survey/base_survey_form.js | 8 - .../chat/model_views/survey/survey_form.js | 8 - src/mibew/js/compiled/chat/models/avatar.js | 8 - .../js/compiled/chat/models/chat_user.js | 8 - .../js/compiled/chat/models/controls/close.js | 8 - .../compiled/chat/models/controls/history.js | 8 - .../compiled/chat/models/controls/redirect.js | 8 - .../compiled/chat/models/controls/refresh.js | 8 - .../chat/models/controls/secure_mode.js | 8 - .../chat/models/controls/send_mail.js | 8 - .../js/compiled/chat/models/controls/sound.js | 8 - .../chat/models/controls/user_name.js | 8 - .../leave_message/leave_message_form.js | 8 - .../chat/models/messages/message_form.js | 8 - .../chat/models/sound_managers/base.js | 8 - .../chat/models/sound_managers/chat.js | 8 - .../chat/models/status/base_status.js | 8 - .../js/compiled/chat/models/status/message.js | 8 - .../js/compiled/chat/models/status/typing.js | 8 - .../chat/models/survey/base_survey_form.js | 8 - .../chat/models/survey/survey_form.js | 8 - src/mibew/js/compiled/chat/modules/chat.js | 8 - .../js/compiled/chat/modules/invitation.js | 8 - .../js/compiled/chat/modules/leave_message.js | 8 - src/mibew/js/compiled/chat/modules/survey.js | 8 - .../js/compiled/chat/regions/messages.js | 8 - src/mibew/js/compiled/chat_app.js | 379 ------------------ .../collection_views/base_collection.js | 8 - .../collection_views/controls_collection.js | 8 - .../compiled/default/collections/controls.js | 8 - .../js/compiled/default/handlebars_helpers.js | 8 - src/mibew/js/compiled/default/init.js | 8 - src/mibew/js/compiled/default/localization.js | 8 - .../compiled/default/model_views/control.js | 8 - .../compiled/default/model_views/message.js | 8 - src/mibew/js/compiled/default/models/base.js | 8 - .../js/compiled/default/models/control.js | 8 - .../js/compiled/default/models/message.js | 8 - src/mibew/js/compiled/default/models/page.js | 8 - .../js/compiled/default/models/thread.js | 8 - src/mibew/js/compiled/default/models/user.js | 8 - src/mibew/js/compiled/default/server.js | 8 - src/mibew/js/compiled/default/utils.js | 8 - src/mibew/js/compiled/default_app.js | 113 ------ src/mibew/js/compiled/mibewapi.js | 8 - src/mibew/js/compiled/soundcheck.js | 8 - src/mibew/js/compiled/thread_log/app.js | 8 - .../collection_views/messages_collection.js | 8 - .../thread_log/collections/messages.js | 8 - src/mibew/js/compiled/thread_log_app.js | 22 - src/mibew/js/compiled/update.js | 8 - src/mibew/js/compiled/users/app.js | 8 - .../collection_views/agents_collection.js | 8 - .../collection_views/threads_collection.js | 8 - .../collection_views/visitors_collection.js | 8 - .../js/compiled/users/collections/agents.js | 8 - .../js/compiled/users/collections/threads.js | 8 - .../js/compiled/users/collections/visitors.js | 8 - src/mibew/js/compiled/users/init.js | 8 - .../users/mibewapi_users_interaction.js | 8 - .../js/compiled/users/model_views/agent.js | 8 - .../compiled/users/model_views/no_threads.js | 8 - .../compiled/users/model_views/no_visitors.js | 8 - .../users/model_views/queued_thread.js | 8 - .../users/model_views/status_panel.js | 8 - .../js/compiled/users/model_views/visitor.js | 8 - src/mibew/js/compiled/users/models/agent.js | 8 - .../js/compiled/users/models/queued_thread.js | 8 - .../js/compiled/users/models/status_panel.js | 8 - src/mibew/js/compiled/users/models/visitor.js | 8 - src/mibew/js/compiled/users_app.js | 134 ------- src/mibew/js/compiled/widget.js | 8 - .../styles/dialogs/default/js/compiled/.keep | 0 .../dialogs/default/js/compiled/scripts.js | 8 - .../templates_compiled/client_side/.keep | 0 .../client_side/templates.js | 7 - .../templates_compiled/client_side/.keep | 0 .../client_side/default_app.tpl.js | 7 - .../client_side/users_app.tpl.js | 7 - 110 files changed, 14 insertions(+), 1453 deletions(-) create mode 100644 src/mibew/js/compiled/.keep delete mode 100644 src/mibew/js/compiled/brws.js delete mode 100644 src/mibew/js/compiled/chat/app.js delete mode 100644 src/mibew/js/compiled/chat/collection_views/messages_collection.js delete mode 100644 src/mibew/js/compiled/chat/collection_views/status_collection.js delete mode 100644 src/mibew/js/compiled/chat/collections/messages.js delete mode 100644 src/mibew/js/compiled/chat/collections/status.js delete mode 100644 src/mibew/js/compiled/chat/init.js delete mode 100644 src/mibew/js/compiled/chat/layouts/chat.js delete mode 100644 src/mibew/js/compiled/chat/layouts/invitation.js delete mode 100644 src/mibew/js/compiled/chat/layouts/leave_message.js delete mode 100644 src/mibew/js/compiled/chat/layouts/survey.js delete mode 100644 src/mibew/js/compiled/chat/mibewapi_chat_interaction.js delete mode 100644 src/mibew/js/compiled/chat/model_views/avatar.js delete mode 100644 src/mibew/js/compiled/chat/model_views/controls/close.js delete mode 100644 src/mibew/js/compiled/chat/model_views/controls/history.js delete mode 100644 src/mibew/js/compiled/chat/model_views/controls/redirect.js delete mode 100644 src/mibew/js/compiled/chat/model_views/controls/refresh.js delete mode 100644 src/mibew/js/compiled/chat/model_views/controls/secure_mode.js delete mode 100644 src/mibew/js/compiled/chat/model_views/controls/send_mail.js delete mode 100644 src/mibew/js/compiled/chat/model_views/controls/sound.js delete mode 100644 src/mibew/js/compiled/chat/model_views/controls/user_name.js delete mode 100644 src/mibew/js/compiled/chat/model_views/leave_message/leave_message_description.js delete mode 100644 src/mibew/js/compiled/chat/model_views/leave_message/leave_message_form.js delete mode 100644 src/mibew/js/compiled/chat/model_views/leave_message/leave_message_sent_description.js delete mode 100644 src/mibew/js/compiled/chat/model_views/messages/message.js delete mode 100644 src/mibew/js/compiled/chat/model_views/messages/message_form.js delete mode 100644 src/mibew/js/compiled/chat/model_views/status/base_status.js delete mode 100644 src/mibew/js/compiled/chat/model_views/status/message.js delete mode 100644 src/mibew/js/compiled/chat/model_views/status/typing.js delete mode 100644 src/mibew/js/compiled/chat/model_views/survey/base_survey_form.js delete mode 100644 src/mibew/js/compiled/chat/model_views/survey/survey_form.js delete mode 100644 src/mibew/js/compiled/chat/models/avatar.js delete mode 100644 src/mibew/js/compiled/chat/models/chat_user.js delete mode 100644 src/mibew/js/compiled/chat/models/controls/close.js delete mode 100644 src/mibew/js/compiled/chat/models/controls/history.js delete mode 100644 src/mibew/js/compiled/chat/models/controls/redirect.js delete mode 100644 src/mibew/js/compiled/chat/models/controls/refresh.js delete mode 100644 src/mibew/js/compiled/chat/models/controls/secure_mode.js delete mode 100644 src/mibew/js/compiled/chat/models/controls/send_mail.js delete mode 100644 src/mibew/js/compiled/chat/models/controls/sound.js delete mode 100644 src/mibew/js/compiled/chat/models/controls/user_name.js delete mode 100644 src/mibew/js/compiled/chat/models/leave_message/leave_message_form.js delete mode 100644 src/mibew/js/compiled/chat/models/messages/message_form.js delete mode 100644 src/mibew/js/compiled/chat/models/sound_managers/base.js delete mode 100644 src/mibew/js/compiled/chat/models/sound_managers/chat.js delete mode 100644 src/mibew/js/compiled/chat/models/status/base_status.js delete mode 100644 src/mibew/js/compiled/chat/models/status/message.js delete mode 100644 src/mibew/js/compiled/chat/models/status/typing.js delete mode 100644 src/mibew/js/compiled/chat/models/survey/base_survey_form.js delete mode 100644 src/mibew/js/compiled/chat/models/survey/survey_form.js delete mode 100644 src/mibew/js/compiled/chat/modules/chat.js delete mode 100644 src/mibew/js/compiled/chat/modules/invitation.js delete mode 100644 src/mibew/js/compiled/chat/modules/leave_message.js delete mode 100644 src/mibew/js/compiled/chat/modules/survey.js delete mode 100644 src/mibew/js/compiled/chat/regions/messages.js delete mode 100644 src/mibew/js/compiled/chat_app.js delete mode 100644 src/mibew/js/compiled/default/collection_views/base_collection.js delete mode 100644 src/mibew/js/compiled/default/collection_views/controls_collection.js delete mode 100644 src/mibew/js/compiled/default/collections/controls.js delete mode 100644 src/mibew/js/compiled/default/handlebars_helpers.js delete mode 100644 src/mibew/js/compiled/default/init.js delete mode 100644 src/mibew/js/compiled/default/localization.js delete mode 100644 src/mibew/js/compiled/default/model_views/control.js delete mode 100644 src/mibew/js/compiled/default/model_views/message.js delete mode 100644 src/mibew/js/compiled/default/models/base.js delete mode 100644 src/mibew/js/compiled/default/models/control.js delete mode 100644 src/mibew/js/compiled/default/models/message.js delete mode 100644 src/mibew/js/compiled/default/models/page.js delete mode 100644 src/mibew/js/compiled/default/models/thread.js delete mode 100644 src/mibew/js/compiled/default/models/user.js delete mode 100644 src/mibew/js/compiled/default/server.js delete mode 100644 src/mibew/js/compiled/default/utils.js delete mode 100644 src/mibew/js/compiled/default_app.js delete mode 100644 src/mibew/js/compiled/mibewapi.js delete mode 100644 src/mibew/js/compiled/soundcheck.js delete mode 100644 src/mibew/js/compiled/thread_log/app.js delete mode 100644 src/mibew/js/compiled/thread_log/collection_views/messages_collection.js delete mode 100644 src/mibew/js/compiled/thread_log/collections/messages.js delete mode 100644 src/mibew/js/compiled/thread_log_app.js delete mode 100644 src/mibew/js/compiled/update.js delete mode 100644 src/mibew/js/compiled/users/app.js delete mode 100644 src/mibew/js/compiled/users/collection_views/agents_collection.js delete mode 100644 src/mibew/js/compiled/users/collection_views/threads_collection.js delete mode 100644 src/mibew/js/compiled/users/collection_views/visitors_collection.js delete mode 100644 src/mibew/js/compiled/users/collections/agents.js delete mode 100644 src/mibew/js/compiled/users/collections/threads.js delete mode 100644 src/mibew/js/compiled/users/collections/visitors.js delete mode 100644 src/mibew/js/compiled/users/init.js delete mode 100644 src/mibew/js/compiled/users/mibewapi_users_interaction.js delete mode 100644 src/mibew/js/compiled/users/model_views/agent.js delete mode 100644 src/mibew/js/compiled/users/model_views/no_threads.js delete mode 100644 src/mibew/js/compiled/users/model_views/no_visitors.js delete mode 100644 src/mibew/js/compiled/users/model_views/queued_thread.js delete mode 100644 src/mibew/js/compiled/users/model_views/status_panel.js delete mode 100644 src/mibew/js/compiled/users/model_views/visitor.js delete mode 100644 src/mibew/js/compiled/users/models/agent.js delete mode 100644 src/mibew/js/compiled/users/models/queued_thread.js delete mode 100644 src/mibew/js/compiled/users/models/status_panel.js delete mode 100644 src/mibew/js/compiled/users/models/visitor.js delete mode 100644 src/mibew/js/compiled/users_app.js delete mode 100644 src/mibew/js/compiled/widget.js create mode 100644 src/mibew/styles/dialogs/default/js/compiled/.keep delete mode 100644 src/mibew/styles/dialogs/default/js/compiled/scripts.js create mode 100644 src/mibew/styles/dialogs/default/templates_compiled/client_side/.keep delete mode 100644 src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js create mode 100644 src/mibew/styles/pages/default/templates_compiled/client_side/.keep delete mode 100644 src/mibew/styles/pages/default/templates_compiled/client_side/default_app.tpl.js delete mode 100644 src/mibew/styles/pages/default/templates_compiled/client_side/users_app.tpl.js diff --git a/.gitignore b/.gitignore index 34522ced..25cb1ebd 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,17 @@ src/mibew/vendor # Do not index node.js modules that are used for building src/node_modules + +# Do not index compiled js files of the core +src/mibew/js/compiled/* +!src/mibew/js/compiled/.keep + +# Do not index compiled files of chat styles +src/mibew/styles/dialogs/default/templates_compiled/client_side/* +!src/mibew/styles/dialogs/default/templates_compiled/client_side/.keep +src/mibew/styles/dialogs/default/js/compiled/* +!src/mibew/styles/dialogs/default/js/compiled/.keep + +# Do not index compiled files of page styles +src/mibew/styles/pages/default/templates_compiled/client_side/* +!src/mibew/styles/pages/default/templates_compiled/client_side/.keep diff --git a/src/mibew/js/compiled/.keep b/src/mibew/js/compiled/.keep new file mode 100644 index 00000000..e69de29b diff --git a/src/mibew/js/compiled/brws.js b/src/mibew/js/compiled/brws.js deleted file mode 100644 index 33e0b74e..00000000 --- a/src/mibew/js/compiled/brws.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function detectAgent(){for(var e=["opera","msie","safari","firefox","netscape","mozilla"],t=navigator.userAgent.toLowerCase(),n=0;nn;n++)t=s.messages[n],t.kind==d?"object"==typeof t.data&&null!==t.data&&(l=t.plugin||!1,a="process:"+(l!==!1?l+":":"")+"plugin:message",i={messageData:t,model:!1},this.trigger(a,i),i.model&&(i.model.get("id")||i.model.set({id:t.id}),o.push(i.model))):o.push(new e.Models.Message(t));o.length>0&&this.add(o)},updateMessagesFunctionBuilder:function(){var s=e.Objects.Models.thread,t=e.Objects.Models.user;return[{"function":"updateMessages",arguments:{"return":{messages:"messages",lastId:"lastId"},references:{},threadId:s.get("id"),token:s.get("token"),lastId:s.get("lastId"),user:!t.get("isAgent")}}]},add:function(){var e=Array.prototype.slice.apply(arguments),t=s.Collection.prototype.add.apply(this,e);return this.trigger("multiple:add"),t}})}(Mibew,Backbone,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/collections/status.js b/src/mibew/js/compiled/chat/collections/status.js deleted file mode 100644 index 75a0b62d..00000000 --- a/src/mibew/js/compiled/chat/collections/status.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(t,e){t.Collections.Status=e.Collection.extend({comparator:function(t){return t.get("weight")}})}(Mibew,Backbone); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/init.js b/src/mibew/js/compiled/chat/init.js deleted file mode 100644 index 6f7e1e66..00000000 --- a/src/mibew/js/compiled/chat/init.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(i){i.Regions={},i.Layouts={},i.Application=new Backbone.Marionette.Application}(Mibew); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/layouts/chat.js b/src/mibew/js/compiled/chat/layouts/chat.js deleted file mode 100644 index 7ed4f560..00000000 --- a/src/mibew/js/compiled/chat/layouts/chat.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,a){e.Layouts.Chat=a.Marionette.Layout.extend({template:Handlebars.templates["chat/layout"],regions:{controlsRegion:"#controls-region",avatarRegion:"#avatar-region",messagesRegion:{selector:"#messages-region",regionType:e.Regions.Messages},statusRegion:"#status-region",messageFormRegion:"#message-form-region"},serializeData:function(){var a=e.Objects.Models;return{page:a.page.toJSON(),user:a.user.toJSON()}}})}(Mibew,Backbone); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/layouts/invitation.js b/src/mibew/js/compiled/chat/layouts/invitation.js deleted file mode 100644 index 0351ec40..00000000 --- a/src/mibew/js/compiled/chat/layouts/invitation.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t){e.Layouts.Invitation=t.Marionette.Layout.extend({template:Handlebars.templates["invitation/layout"],regions:{messagesRegion:{selector:"#invitation-messages-region",regionType:e.Regions.Messages}}})}(Mibew,Backbone); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/layouts/leave_message.js b/src/mibew/js/compiled/chat/layouts/leave_message.js deleted file mode 100644 index a2cd99f0..00000000 --- a/src/mibew/js/compiled/chat/layouts/leave_message.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,a){e.Layouts.LeaveMessage=a.Marionette.Layout.extend({template:Handlebars.templates["leave_message/layout"],regions:{leaveMessageFormRegion:"#content-wrapper",descriptionRegion:"#description-region"},serializeData:function(){return{page:e.Objects.Models.page.toJSON()}}})}(Mibew,Backbone); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/layouts/survey.js b/src/mibew/js/compiled/chat/layouts/survey.js deleted file mode 100644 index d7175c03..00000000 --- a/src/mibew/js/compiled/chat/layouts/survey.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t){e.Layouts.Survey=t.Marionette.Layout.extend({template:Handlebars.templates["survey/layout"],regions:{surveyFormRegion:"#content-wrapper"},serializeData:function(){return{page:e.Objects.Models.page.toJSON()}}})}(Mibew,Backbone); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/mibewapi_chat_interaction.js b/src/mibew/js/compiled/chat/mibewapi_chat_interaction.js deleted file mode 100644 index 7ccd0a4e..00000000 --- a/src/mibew/js/compiled/chat/mibewapi_chat_interaction.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -MibewAPIChatInteraction=function(){this.mandatoryArguments=function(){return{"*":{threadId:null,token:null,"return":{},references:{}},result:{errorCode:0}}},this.getReservedFunctionsNames=function(){return["result"]}},MibewAPIChatInteraction.prototype=new MibewAPIInteraction; \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/avatar.js b/src/mibew/js/compiled/chat/model_views/avatar.js deleted file mode 100644 index 0cc6190b..00000000 --- a/src/mibew/js/compiled/chat/model_views/avatar.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,a,t){e.Views.Avatar=a.Marionette.ItemView.extend({template:t.templates["chat/avatar"],className:"avatar",modelEvents:{change:"render"}})}(Mibew,Backbone,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/controls/close.js b/src/mibew/js/compiled/chat/model_views/controls/close.js deleted file mode 100644 index 848e223d..00000000 --- a/src/mibew/js/compiled/chat/model_views/controls/close.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,o,t){e.Views.CloseControl=e.Views.Control.extend({template:o.templates["chat/controls/close"],events:t.extend({},e.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var o=e.Localization.get("Are you sure want to leave chat?");(o===!1||confirm(o))&&this.model.closeThread()}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/controls/history.js b/src/mibew/js/compiled/chat/model_views/controls/history.js deleted file mode 100644 index f25ed58c..00000000 --- a/src/mibew/js/compiled/chat/model_views/controls/history.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,o){e.Views.HistoryControl=e.Views.Control.extend({template:t.templates["chat/controls/history"],events:o.extend({},e.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var t=e.Objects.Models.user,o=this.model.get("link");if(t.get("isAgent")&&o){var s=this.model.get("windowParams");o=o.replace("&","&","g");var n=window.open(o,"UserHistory",s);null!==n&&(n.focus(),n.opener=window)}}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/controls/redirect.js b/src/mibew/js/compiled/chat/model_views/controls/redirect.js deleted file mode 100644 index c3acbbeb..00000000 --- a/src/mibew/js/compiled/chat/model_views/controls/redirect.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,i){e.Views.RedirectControl=e.Views.Control.extend({template:t.templates["chat/controls/redirect"],events:i.extend({},e.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){e.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var t=this.model.toJSON();return t.user=e.Objects.Models.user.toJSON(),t},redirect:function(){var t=e.Objects.Models.user;if(t.get("isAgent")&&t.get("canPost")){var i=this.model.get("link");if(i){var s=e.Objects.Models.page.get("style"),n="";s&&(n=(-1===i.indexOf("?")?"?":"&")+"style="+s),window.location.href=i.replace(/\&\;/g,"&")+n}}}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/controls/refresh.js b/src/mibew/js/compiled/chat/model_views/controls/refresh.js deleted file mode 100644 index 4118cc51..00000000 --- a/src/mibew/js/compiled/chat/model_views/controls/refresh.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,r){e.Views.RefreshControl=e.Views.Control.extend({template:t.templates["chat/controls/refresh"],events:r.extend({},e.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/controls/secure_mode.js b/src/mibew/js/compiled/chat/model_views/controls/secure_mode.js deleted file mode 100644 index b2d52385..00000000 --- a/src/mibew/js/compiled/chat/model_views/controls/secure_mode.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,o){e.Views.SecureModeControl=e.Views.Control.extend({template:t.templates["chat/controls/secure_mode"],events:o.extend({},e.Views.Control.prototype.events,{click:"secure"}),secure:function(){var t=this.model.get("link");if(t){var o=e.Objects.Models.page.get("style");window.location.href=t.replace(/\&\;/g,"&")+(o?"&style="+o:"")}}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/controls/send_mail.js b/src/mibew/js/compiled/chat/model_views/controls/send_mail.js deleted file mode 100644 index f1c16249..00000000 --- a/src/mibew/js/compiled/chat/model_views/controls/send_mail.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,n,t){e.Views.SendMailControl=e.Views.Control.extend({template:n.templates["chat/controls/send_mail"],events:t.extend({},e.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var n=this.model.get("link"),t=e.Objects.Models.page;if(n){var l=this.model.get("windowParams"),o=t.get("style"),i="";o&&(i=(-1===n.indexOf("?")?"?":"&")+"style="+o),n=n.replace(/\&\;/g,"&")+i;var a=window.open(n,"ForwardMail",l);null!==a&&(a.focus(),a.opener=window)}}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/controls/sound.js b/src/mibew/js/compiled/chat/model_views/controls/sound.js deleted file mode 100644 index 32a9a1ba..00000000 --- a/src/mibew/js/compiled/chat/model_views/controls/sound.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,o){e.Views.SoundControl=e.Views.Control.extend({template:t.templates["chat/controls/sound"],events:o.extend({},e.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.toggle()}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/controls/user_name.js b/src/mibew/js/compiled/chat/model_views/controls/user_name.js deleted file mode 100644 index b1b7a715..00000000 --- a/src/mibew/js/compiled/chat/model_views/controls/user_name.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,n,t){e.Views.UserNameControl=e.Views.Control.extend({template:n.templates["chat/controls/user_name"],events:t.extend({},e.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){e.Objects.Models.user.on("change:name",this.hideNameInput,this),this.nameInput=e.Objects.Models.user.get("defaultName")},serializeData:function(){var n=this.model.toJSON();return n.user=e.Objects.Models.user.toJSON(),n.nameInput=this.nameInput,n},inputKeyDown:function(e){var n=e.which;(13==n||10==n)&&this.changeName()},hideNameInput:function(){this.nameInput=!1,this.render()},showNameInput:function(){this.nameInput=!0,this.render()},changeName:function(){var e=this.ui.nameInput.val();this.model.changeName(e)}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/leave_message/leave_message_description.js b/src/mibew/js/compiled/chat/model_views/leave_message/leave_message_description.js deleted file mode 100644 index ee065d81..00000000 --- a/src/mibew/js/compiled/chat/model_views/leave_message/leave_message_description.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,a){e.Views.LeaveMessageDescription=t.Marionette.ItemView.extend({template:a.templates["leave_message/description"],serializeData:function(){return{page:e.Objects.Models.page.toJSON()}}})}(Mibew,Backbone,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/leave_message/leave_message_form.js b/src/mibew/js/compiled/chat/model_views/leave_message/leave_message_form.js deleted file mode 100644 index 3861201f..00000000 --- a/src/mibew/js/compiled/chat/model_views/leave_message/leave_message_form.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,a){var s=e.Views.BaseSurveyForm;e.Views.LeaveMessageForm=s.extend({template:t.templates["leave_message/form"],events:a.extend({},s.prototype.events,{"click #send-message":"submitForm"}),ui:a.extend({},s.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:a.extend({},s.prototype.modelEvents,{"submit:error":"hideAjaxLoader showError submitError"}),submitForm:function(){this.showAjaxLoader();var e={};this.model.get("groups")&&(e.groupId=this.ui.groupSelect.val()),e.name=this.ui.name.val()||"",e.email=this.ui.email.val()||"",e.message=this.ui.message.val()||"",this.model.get("showCaptcha")&&(e.captcha=this.ui.captcha.val()||""),this.model.set(e,{validate:!0}),this.model.submit()},submitError:function(e,t){if(t.code==e.ERROR_WRONG_CAPTCHA&&e.get("showCaptcha")){var a=this.ui.captchaImg.attr("src");a=a.replace(/\?d\=[0-9]+/,""),this.ui.captchaImg.attr("src",a+"?d="+(new Date).getTime())}}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/leave_message/leave_message_sent_description.js b/src/mibew/js/compiled/chat/model_views/leave_message/leave_message_sent_description.js deleted file mode 100644 index b9e9c9cf..00000000 --- a/src/mibew/js/compiled/chat/model_views/leave_message/leave_message_sent_description.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,a){e.Views.LeaveMessageSentDescription=t.Marionette.ItemView.extend({template:a.templates["leave_message/sent_description"],serializeData:function(){return{page:e.Objects.Models.page.toJSON()}}})}(Mibew,Backbone,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/messages/message.js b/src/mibew/js/compiled/chat/model_views/messages/message.js deleted file mode 100644 index d1bbb4e0..00000000 --- a/src/mibew/js/compiled/chat/model_views/messages/message.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,s){e.Views.Message=e.Views.Message.extend({template:s.templates["chat/message"]})}(Mibew,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/messages/message_form.js b/src/mibew/js/compiled/chat/model_views/messages/message_form.js deleted file mode 100644 index ef716678..00000000 --- a/src/mibew/js/compiled/chat/model_views/messages/message_form.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,s,t){e.Views.MessageForm=s.Marionette.ItemView.extend({template:t.templates["chat/message_form"],events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},initialize:function(){e.Objects.Models.user.on("change:canPost",this.render,this)},serializeData:function(){var s=this.model.toJSON();return s.user=e.Objects.Models.user.toJSON(),s},postMessage:function(){var s=this.ui.message.val();""!=s&&(this.disableInput(),this.model.postMessage(s)),e.Objects.Collections.messages.on("multiple:add",this.postMessageComplete,this)},messageKeyDown:function(e){var s=e.which,t=e.ctrlKey;(13==s&&(t||this.model.get("ignoreCtrl"))||10==s)&&this.postMessage()},enableInput:function(){this.ui.message.removeAttr("disabled")},disableInput:function(){this.ui.message.attr("disabled","disabled")},clearInput:function(){this.ui.message.val("").change()},postMessageComplete:function(){this.clearInput(),this.enableInput(),this.focused&&this.ui.focus(),e.Objects.Collections.messages.off("multiple:add",this.postMessageComplete,this)},selectPredefinedAnswer:function(){var e=this.ui.message,s=this.ui.predefinedAnswer,t=s.get(0).selectedIndex;t&&(e.val(this.model.get("predefinedAnswers")[t-1].full).change(),e.focus(),s.get(0).selectedIndex=0)},checkUserTyping:function(){var s=e.Objects.Models.user,t=""!=this.ui.message.val();t!=s.get("typing")&&s.set({typing:t})},setFocus:function(){this.focused=!0},dropFocus:function(){this.focused=!1}})}(Mibew,Backbone,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/status/base_status.js b/src/mibew/js/compiled/chat/model_views/status/base_status.js deleted file mode 100644 index 80cd33fa..00000000 --- a/src/mibew/js/compiled/chat/model_views/status/base_status.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,s){e.Views.Status=t.Marionette.ItemView.extend({template:s.templates["chat/status/base"],className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})}(Mibew,Backbone,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/status/message.js b/src/mibew/js/compiled/chat/model_views/status/message.js deleted file mode 100644 index 61532677..00000000 --- a/src/mibew/js/compiled/chat/model_views/status/message.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t){e.Views.StatusMessage=e.Views.Status.extend({template:t.templates["chat/status/message"]})}(Mibew,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/status/typing.js b/src/mibew/js/compiled/chat/model_views/status/typing.js deleted file mode 100644 index 40439206..00000000 --- a/src/mibew/js/compiled/chat/model_views/status/typing.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(t,e){t.Views.StatusTyping=t.Views.Status.extend({template:e.templates["chat/status/typing"]})}(Mibew,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/survey/base_survey_form.js b/src/mibew/js/compiled/chat/model_views/survey/base_survey_form.js deleted file mode 100644 index 4c9d6a05..00000000 --- a/src/mibew/js/compiled/chat/model_views/survey/base_survey_form.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,r){e.Views.BaseSurveyForm=r.Marionette.ItemView.extend({events:{'change select[name="group"]':"changeGroupDescription","submit form":"preventSubmit"},ui:{groupSelect:'select[name="group"]',groupDescription:"#groupDescription",name:'input[name="name"]',email:'input[name="email"]',message:'textarea[name="message"]',errors:".errors",ajaxLoader:"#ajax-loader"},modelEvents:{invalid:"hideAjaxLoader showError","submit:error":"hideAjaxLoader showError"},preventSubmit:function(e){e.preventDefault()},changeGroupDescription:function(){var e=this.ui.groupSelect.prop("selectedIndex"),r=this.model.get("groups")[e].description||"";this.ui.groupDescription.text(r)},showError:function(e,r){var o;o="string"==typeof r?r:r.message,this.ui.errors.html(o)},serializeData:function(){var r=this.model.toJSON();return r.page=e.Objects.Models.page.toJSON(),r},showAjaxLoader:function(){this.ui.ajaxLoader.show()},hideAjaxLoader:function(){this.ui.ajaxLoader.hide()}})}(Mibew,Backbone); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/model_views/survey/survey_form.js b/src/mibew/js/compiled/chat/model_views/survey/survey_form.js deleted file mode 100644 index de203661..00000000 --- a/src/mibew/js/compiled/chat/model_views/survey/survey_form.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,s,t){var i=e.Views.BaseSurveyForm;e.Views.SurveyForm=i.extend({template:s.templates["survey/form"],events:t.extend({},i.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){this.showAjaxLoader();var e={};this.model.get("groups")&&(e.groupId=this.ui.groupSelect.val()),this.model.get("canChangeName")&&(e.name=this.ui.name.val()||""),this.model.get("showEmail")&&(e.email=this.ui.email.val()||""),this.model.get("showMessage")&&(e.message=this.ui.message.val()||""),this.model.set(e,{validate:!0}),this.model.submit()}})}(Mibew,Handlebars,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/chat/models/avatar.js b/src/mibew/js/compiled/chat/models/avatar.js deleted file mode 100644 index 9dbd3f84..00000000 --- a/src/mibew/js/compiled/chat/models/avatar.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(i,e){i.Models.Avatar=i.Models.Base.extend({defaults:{imageLink:!1},initialize:function(){this.registeredFunctions=[],this.registeredFunctions.push(i.Objects.server.registerFunction("setupAvatar",e.bind(this.apiSetupAvatar,this)))},finalize:function(){for(var e=0;el;l++)s=t.messages[l],s.kind==i?"object"==typeof s.data&&null!==s.data&&(o=s.plugin||!1,n="process:"+(o!==!1?o+":":"")+"plugin:message",a={messageData:s,model:!1},this.trigger(n,a),a.model&&(a.model.get("id")||a.model.set({id:s.id}),r.push(a.model))):r.push(new e.Models.Message(s));r.length>0&&this.add(r)},updateMessagesFunctionBuilder:function(){var t=e.Objects.Models.thread,s=e.Objects.Models.user;return[{"function":"updateMessages",arguments:{"return":{messages:"messages",lastId:"lastId"},references:{},threadId:t.get("id"),token:t.get("token"),lastId:t.get("lastId"),user:!s.get("isAgent")}}]},add:function(){var e=Array.prototype.slice.apply(arguments),s=t.Collection.prototype.add.apply(this,e);return this.trigger("multiple:add"),s}})}(Mibew,Backbone,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Collections.Status=t.Collection.extend({comparator:function(e){return e.get("weight")}})}(Mibew,Backbone),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.Status=t.Marionette.ItemView.extend({template:s.templates["chat/status/base"],className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})}(Mibew,Backbone,Handlebars),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Views.BaseSurveyForm=t.Marionette.ItemView.extend({events:{'change select[name="group"]':"changeGroupDescription","submit form":"preventSubmit"},ui:{groupSelect:'select[name="group"]',groupDescription:"#groupDescription",name:'input[name="name"]',email:'input[name="email"]',message:'textarea[name="message"]',errors:".errors",ajaxLoader:"#ajax-loader"},modelEvents:{invalid:"hideAjaxLoader showError","submit:error":"hideAjaxLoader showError"},preventSubmit:function(e){e.preventDefault()},changeGroupDescription:function(){var e=this.ui.groupSelect.prop("selectedIndex"),t=this.model.get("groups")[e].description||"";this.ui.groupDescription.text(t)},showError:function(e,t){var s;s="string"==typeof t?t:t.message,this.ui.errors.html(s)},serializeData:function(){var t=this.model.toJSON();return t.page=e.Objects.Models.page.toJSON(),t},showAjaxLoader:function(){this.ui.ajaxLoader.show()},hideAjaxLoader:function(){this.ui.ajaxLoader.hide()}})}(Mibew,Backbone),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.Avatar=t.Marionette.ItemView.extend({template:s.templates["chat/avatar"],className:"avatar",modelEvents:{change:"render"}})}(Mibew,Backbone,Handlebars),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.CloseControl=e.Views.Control.extend({template:t.templates["chat/controls/close"],events:s.extend({},e.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var t=e.Localization.get("Are you sure want to leave chat?");(t===!1||confirm(t))&&this.model.closeThread()}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.HistoryControl=e.Views.Control.extend({template:t.templates["chat/controls/history"],events:s.extend({},e.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var t=e.Objects.Models.user,s=this.model.get("link");if(t.get("isAgent")&&s){var o=this.model.get("windowParams");s=s.replace("&","&","g");var n=window.open(s,"UserHistory",o);null!==n&&(n.focus(),n.opener=window)}}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.RedirectControl=e.Views.Control.extend({template:t.templates["chat/controls/redirect"],events:s.extend({},e.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){e.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var t=this.model.toJSON();return t.user=e.Objects.Models.user.toJSON(),t},redirect:function(){var t=e.Objects.Models.user;if(t.get("isAgent")&&t.get("canPost")){var s=this.model.get("link");if(s){var o=e.Objects.Models.page.get("style"),n="";o&&(n=(-1===s.indexOf("?")?"?":"&")+"style="+o),window.location.href=s.replace(/\&\;/g,"&")+n}}}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.RefreshControl=e.Views.Control.extend({template:t.templates["chat/controls/refresh"],events:s.extend({},e.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.SecureModeControl=e.Views.Control.extend({template:t.templates["chat/controls/secure_mode"],events:s.extend({},e.Views.Control.prototype.events,{click:"secure"}),secure:function(){var t=this.model.get("link");if(t){var s=e.Objects.Models.page.get("style");window.location.href=t.replace(/\&\;/g,"&")+(s?"&style="+s:"")}}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.SendMailControl=e.Views.Control.extend({template:t.templates["chat/controls/send_mail"],events:s.extend({},e.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var t=this.model.get("link"),s=e.Objects.Models.page;if(t){var o=this.model.get("windowParams"),n=s.get("style"),a="";n&&(a=(-1===t.indexOf("?")?"?":"&")+"style="+n),t=t.replace(/\&\;/g,"&")+a;var i=window.open(t,"ForwardMail",o);null!==i&&(i.focus(),i.opener=window)}}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.SoundControl=e.Views.Control.extend({template:t.templates["chat/controls/sound"],events:s.extend({},e.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.toggle()}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.UserNameControl=e.Views.Control.extend({template:t.templates["chat/controls/user_name"],events:s.extend({},e.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){e.Objects.Models.user.on("change:name",this.hideNameInput,this),this.nameInput=e.Objects.Models.user.get("defaultName")},serializeData:function(){var t=this.model.toJSON();return t.user=e.Objects.Models.user.toJSON(),t.nameInput=this.nameInput,t},inputKeyDown:function(e){var t=e.which;(13==t||10==t)&&this.changeName()},hideNameInput:function(){this.nameInput=!1,this.render()},showNameInput:function(){this.nameInput=!0,this.render()},changeName:function(){var e=this.ui.nameInput.val();this.model.changeName(e)}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.LeaveMessageDescription=t.Marionette.ItemView.extend({template:s.templates["leave_message/description"],serializeData:function(){return{page:e.Objects.Models.page.toJSON()}}})}(Mibew,Backbone,Handlebars),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){var o=e.Views.BaseSurveyForm;e.Views.LeaveMessageForm=o.extend({template:t.templates["leave_message/form"],events:s.extend({},o.prototype.events,{"click #send-message":"submitForm"}),ui:s.extend({},o.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:s.extend({},o.prototype.modelEvents,{"submit:error":"hideAjaxLoader showError submitError"}),submitForm:function(){this.showAjaxLoader();var e={};this.model.get("groups")&&(e.groupId=this.ui.groupSelect.val()),e.name=this.ui.name.val()||"",e.email=this.ui.email.val()||"",e.message=this.ui.message.val()||"",this.model.get("showCaptcha")&&(e.captcha=this.ui.captcha.val()||""),this.model.set(e,{validate:!0}),this.model.submit()},submitError:function(e,t){if(t.code==e.ERROR_WRONG_CAPTCHA&&e.get("showCaptcha")){var s=this.ui.captchaImg.attr("src");s=s.replace(/\?d\=[0-9]+/,""),this.ui.captchaImg.attr("src",s+"?d="+(new Date).getTime())}}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.LeaveMessageSentDescription=t.Marionette.ItemView.extend({template:s.templates["leave_message/sent_description"],serializeData:function(){return{page:e.Objects.Models.page.toJSON()}}})}(Mibew,Backbone,Handlebars),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Views.Message=e.Views.Message.extend({template:t.templates["chat/message"]})}(Mibew,Handlebars),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){e.Views.MessageForm=t.Marionette.ItemView.extend({template:s.templates["chat/message_form"],events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},initialize:function(){e.Objects.Models.user.on("change:canPost",this.render,this)},serializeData:function(){var t=this.model.toJSON();return t.user=e.Objects.Models.user.toJSON(),t},postMessage:function(){var t=this.ui.message.val();""!=t&&(this.disableInput(),this.model.postMessage(t)),e.Objects.Collections.messages.on("multiple:add",this.postMessageComplete,this)},messageKeyDown:function(e){var t=e.which,s=e.ctrlKey;(13==t&&(s||this.model.get("ignoreCtrl"))||10==t)&&this.postMessage()},enableInput:function(){this.ui.message.removeAttr("disabled")},disableInput:function(){this.ui.message.attr("disabled","disabled")},clearInput:function(){this.ui.message.val("").change()},postMessageComplete:function(){this.clearInput(),this.enableInput(),this.focused&&this.ui.focus(),e.Objects.Collections.messages.off("multiple:add",this.postMessageComplete,this)},selectPredefinedAnswer:function(){var e=this.ui.message,t=this.ui.predefinedAnswer,s=t.get(0).selectedIndex;s&&(e.val(this.model.get("predefinedAnswers")[s-1].full).change(),e.focus(),t.get(0).selectedIndex=0)},checkUserTyping:function(){var t=e.Objects.Models.user,s=""!=this.ui.message.val();s!=t.get("typing")&&t.set({typing:s})},setFocus:function(){this.focused=!0},dropFocus:function(){this.focused=!1}})}(Mibew,Backbone,Handlebars),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Views.StatusMessage=e.Views.Status.extend({template:t.templates["chat/status/message"]})}(Mibew,Handlebars),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Views.StatusTyping=e.Views.Status.extend({template:t.templates["chat/status/typing"]})}(Mibew,Handlebars),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t,s){var o=e.Views.BaseSurveyForm;e.Views.SurveyForm=o.extend({template:t.templates["survey/form"],events:s.extend({},o.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){this.showAjaxLoader();var e={};this.model.get("groups")&&(e.groupId=this.ui.groupSelect.val()),this.model.get("canChangeName")&&(e.name=this.ui.name.val()||""),this.model.get("showEmail")&&(e.email=this.ui.email.val()||""),this.model.get("showMessage")&&(e.message=this.ui.message.val()||""),this.model.set(e,{validate:!0}),this.model.submit()}})}(Mibew,Handlebars,_),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e){e.Views.MessagesCollection=e.Views.CollectionBase.extend({itemView:e.Views.Message,className:"messages-collection"})}(Mibew),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e){e.Views.StatusCollection=e.Views.CollectionBase.extend({itemView:e.Views.Status,className:"status-collection"})}(Mibew),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Regions.Messages=t.Marionette.Region.extend({onShow:function(e){e.on("after:item:added",this.scrollToBottom,this)},scrollToBottom:function(){this.$el.scrollTop(this.$el.prop("scrollHeight"))}})}(Mibew,Backbone),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Layouts.Chat=t.Marionette.Layout.extend({template:Handlebars.templates["chat/layout"],regions:{controlsRegion:"#controls-region",avatarRegion:"#avatar-region",messagesRegion:{selector:"#messages-region",regionType:e.Regions.Messages},statusRegion:"#status-region",messageFormRegion:"#message-form-region"},serializeData:function(){var t=e.Objects.Models;return{page:t.page.toJSON(),user:t.user.toJSON()}}})}(Mibew,Backbone),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Layouts.Invitation=t.Marionette.Layout.extend({template:Handlebars.templates["invitation/layout"],regions:{messagesRegion:{selector:"#invitation-messages-region",regionType:e.Regions.Messages}}})}(Mibew,Backbone),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Layouts.LeaveMessage=t.Marionette.Layout.extend({template:Handlebars.templates["leave_message/layout"],regions:{leaveMessageFormRegion:"#content-wrapper",descriptionRegion:"#description-region"},serializeData:function(){return{page:e.Objects.Models.page.toJSON()}}})}(Mibew,Backbone),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e,t){e.Layouts.Survey=t.Marionette.Layout.extend({template:Handlebars.templates["survey/layout"],regions:{surveyFormRegion:"#content-wrapper"},serializeData:function(){return{page:e.Objects.Models.page.toJSON()}}})}(Mibew,Backbone),/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -function(e){e.Objects.Models.Controls={},e.Objects.Models.Status={};var t=[],s=e.Application,o=s.module("Chat",{startWithParent:!1});o.addInitializer(function(o){var n=e.Objects,a=e.Objects.Models,i=e.Objects.Models.Controls,r=e.Objects.Models.Status;o.page&&a.page.set(o.page),a.thread=new e.Models.Thread(o.thread),a.user=new e.Models.ChatUser(o.user);var l=new e.Layouts.Chat;n.chatLayout=l,s.mainRegion.show(l);var d=new e.Collections.Controls;a.user.get("isAgent")||(i.userName=new e.Models.UserNameControl({weight:220}),d.add(i.userName),i.sendMail=new e.Models.SendMailControl({weight:200,link:o.links.mail,windowParams:o.windowsParams.mail}),d.add(i.sendMail)),a.user.get("isAgent")&&(i.redirect=new e.Models.RedirectControl({weight:200,link:o.links.redirect}),d.add(i.redirect),i.history=new e.Models.HistoryControl({weight:180,link:o.links.history,windowParams:o.windowsParams.history}),d.add(i.history)),i.sound=new e.Models.SoundControl({weight:160}),d.add(i.sound),i.refresh=new e.Models.RefreshControl({weight:140}),d.add(i.refresh),o.links.ssl&&(i.secureMode=new e.Models.SecureModeControl({weight:120,link:o.links.ssl}),d.add(i.secureMode)),i.close=new e.Models.CloseControl({weight:100}),d.add(i.close),n.Collections.controls=d,l.controlsRegion.show(new e.Views.ControlsCollection({collection:d})),r.message=new e.Models.StatusMessage({hideTimeout:5e3}),r.typing=new e.Models.StatusTyping({hideTimeout:5e3}),n.Collections.status=new e.Collections.Status([r.message,r.typing]),l.statusRegion.show(new e.Views.StatusCollection({collection:n.Collections.status})),a.user.get("isAgent")||(a.avatar=new e.Models.Avatar,l.avatarRegion.show(new e.Views.Avatar({model:a.avatar}))),n.Collections.messages=new e.Collections.Messages,a.messageForm=new e.Models.MessageForm(o.messageForm),l.messageFormRegion.show(new e.Views.MessageForm({model:a.messageForm})),l.messagesRegion.show(new e.Views.MessagesCollection({collection:n.Collections.messages})),a.soundManager=new e.Models.ChatSoundManager,t.push(n.server.callFunctionsPeriodically(function(){var t=e.Objects.Models.thread,s=e.Objects.Models.user;return[{"function":"update",arguments:{"return":{typing:"typing",canPost:"canPost"},references:{},threadId:t.get("id"),token:t.get("token"),lastId:t.get("lastId"),typed:s.get("typing"),user:!s.get("isAgent")}}]},function(t){return t.errorCode?void e.Objects.Models.Status.message.setMessage(t.errorMessage||"refresh failed"):(t.typing&&e.Objects.Models.Status.typing.show(),void e.Objects.Models.user.set({canPost:t.canPost||!1}))}))}),o.on("start",function(){e.Objects.server.restartUpdater()}),o.addFinalizer(function(){e.Objects.chatLayout.close();for(var s=0;s$2"),t=t.replace(/<span class="(.*?)">(.*?)<\/span>/g,'$2'),new r.SafeString(t)}),r.registerHelper("formatTime",function(e){var r=new Date(1e3*e),t=r.getHours().toString(),n=r.getMinutes().toString(),i=r.getSeconds().toString();return t=10>t?"0"+t:t,n=10>n?"0"+n:n,i=10>i?"0"+i:i,t+":"+n+":"+i}),r.registerHelper("urlReplace",function(e){return new r.SafeString(e.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))}),r.registerHelper("nl2br",function(e){return new r.SafeString(e.replace(/\n/g,"
"))}),r.registerHelper("l10n",function(r){return e.Localization.get(r)||""}),r.registerHelper("ifEven",function(e,r){return e%2===0?r.fn(this):r.inverse(this)}),r.registerHelper("ifOdd",function(e,r){return e%2!==0?r.fn(this):r.inverse(this)})}(Mibew,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/init.js b/src/mibew/js/compiled/default/init.js deleted file mode 100644 index 0093db82..00000000 --- a/src/mibew/js/compiled/default/init.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -var Mibew={};!function(e,t,o){t.Marionette.TemplateCache.prototype.compileTemplate=function(e){return o.compile(e)};for(var a in o.templates)o.templates.hasOwnProperty(a)&&o.registerPartial(a,o.templates[a]);e.Models={},e.Collections={},e.Views={},e.Objects={},e.Objects.Models={},e.Objects.Collections={}}(Mibew,Backbone,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/localization.js b/src/mibew/js/compiled/default/localization.js deleted file mode 100644 index ce8b499b..00000000 --- a/src/mibew/js/compiled/default/localization.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(n,t){n.Localization={};var i={};n.Localization.get=function(n){return i.hasOwnProperty(n)?i[n]:!1},n.Localization.set=function(n){t.extend(i,n)}}(Mibew,_); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/model_views/control.js b/src/mibew/js/compiled/default/model_views/control.js deleted file mode 100644 index bbdbd020..00000000 --- a/src/mibew/js/compiled/default/model_views/control.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,s){e.Views.Control=t.Marionette.ItemView.extend({template:s.templates.default_control,modelEvents:{change:"render"},events:{mouseover:"mouseOver",mouseleave:"mouseLeave"},attributes:function(){var e=[];e.push("control"),this.className&&(e.push(this.className),this.className="");var t=this.getDashedControlType();return t&&e.push(t),{"class":e.join(" ")}},mouseOver:function(){var e=this.getDashedControlType();this.$el.addClass("active"+(e?"-"+e:""))},mouseLeave:function(){var e=this.getDashedControlType();this.$el.removeClass("active"+(e?"-"+e:""))},getDashedControlType:function(){return"undefined"==typeof this.dashedControlType&&(this.dashedControlType=e.Utils.toDashFormat(this.model.getModelType())||""),this.dashedControlType}})}(Mibew,Backbone,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/model_views/message.js b/src/mibew/js/compiled/default/model_views/message.js deleted file mode 100644 index 9f3fe8fc..00000000 --- a/src/mibew/js/compiled/default/model_views/message.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,t,n){var i={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},s=/[&<>'"`]/g;e.Views.Message=t.Marionette.ItemView.extend({template:n.templates.message,className:"message",modelEvents:{change:"render"},serializeData:function(){var e=this.model.toJSON(),t=this.model.get("kind");return e.allowFormatting=t!=this.model.KIND_USER&&t!=this.model.KIND_AGENT,e.kindName=this.kindToString(t),e.message=this.escapeString(e.message),e},kindToString:function(e){return e==this.model.KIND_USER?"user":e==this.model.KIND_AGENT?"agent":e==this.model.KIND_FOR_AGENT?"hidden":e==this.model.KIND_INFO?"inf":e==this.model.KIND_CONN?"conn":e==this.model.KIND_EVENTS?"event":e==this.model.KIND_PLUGIN?"plugin":""},escapeString:function(e){return e.replace(s,function(e){return i[e]||"&"})}})}(Mibew,Backbone,Handlebars); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/models/base.js b/src/mibew/js/compiled/default/models/base.js deleted file mode 100644 index 890cdb8a..00000000 --- a/src/mibew/js/compiled/default/models/base.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,n){e.Models.Base=n.Model.extend({getModelType:function(){return""}})}(Mibew,Backbone); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/models/control.js b/src/mibew/js/compiled/default/models/control.js deleted file mode 100644 index 265a5f1e..00000000 --- a/src/mibew/js/compiled/default/models/control.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e){e.Models.Control=e.Models.Base.extend({defaults:{title:"",weight:0}})}(Mibew); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/models/message.js b/src/mibew/js/compiled/default/models/message.js deleted file mode 100644 index 437528e9..00000000 --- a/src/mibew/js/compiled/default/models/message.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e){e.Models.Message=e.Models.Base.extend({defaults:{kind:null,created:0,name:"",message:"",plugin:"",data:{}},KIND_USER:1,KIND_AGENT:2,KIND_FOR_AGENT:3,KIND_INFO:4,KIND_CONN:5,KIND_EVENTS:6,KIND_PLUGIN:7})}(Mibew); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/models/page.js b/src/mibew/js/compiled/default/models/page.js deleted file mode 100644 index eb9bbdcf..00000000 --- a/src/mibew/js/compiled/default/models/page.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e,n){e.Models.Page=n.Model.extend()}(Mibew,Backbone); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/models/thread.js b/src/mibew/js/compiled/default/models/thread.js deleted file mode 100644 index 653752cb..00000000 --- a/src/mibew/js/compiled/default/models/thread.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(T){T.Models.Thread=T.Models.Base.extend({defaults:{id:0,token:0,lastId:0,state:null},STATE_QUEUE:0,STATE_WAITING:1,STATE_CHATTING:2,STATE_CLOSED:3,STATE_LOADING:4,STATE_LEFT:5,STATE_INVITED:6})}(Mibew); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/models/user.js b/src/mibew/js/compiled/default/models/user.js deleted file mode 100644 index 715633ed..00000000 --- a/src/mibew/js/compiled/default/models/user.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(e){e.Models.User=e.Models.Base.extend({defaults:{isAgent:!1,name:""}})}(Mibew); \ No newline at end of file diff --git a/src/mibew/js/compiled/default/server.js b/src/mibew/js/compiled/default/server.js deleted file mode 100644 index 1496786c..00000000 --- a/src/mibew/js/compiled/default/server.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @preserve Copyright 2005-2014 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - */ -!function(t,e,i,n){t.Server=function(t){this.updateTimer=null,this.options=n.extend({url:"",requestsFrequency:2,reconnectPause:1,onTimeout:function(){},onTransportError:function(){},onCallError:function(){},onUpdateError:function(){},onResponseError:function(){}},t),this.callbacks={},this.callPeriodically={},this.callPeriodicallyLastId=0,this.ajaxRequest=null,this.buffer=[],this.functions={},this.functionsLastId=0,this.mibewAPI=new e(new this.options.interactionType)},t.Server.prototype.callFunctions=function(t,e,i){try{if(!(t instanceof Array))throw new Error("The first arguments must be an array");for(var n=0;n()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},t.Utils.playSound=function(t){var a=e('audio[data-file="'+t+'"]');if(a.length>0)a.get(0).play();else{var i=e("