From 6a477d39f02bd7f9e19adb68a45f2a6aacfcfa3c Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 16 May 2013 11:12:02 +0000 Subject: [PATCH] Update license headers in JavaScript files --- .../tools/compiled_templates_header.txt | 8 +- src/messenger/webim/js/compiled/brws.js | 9 +- src/messenger/webim/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/messenger/webim/js/compiled/chat/init.js | 8 +- .../webim/js/compiled/chat/layouts/chat.js | 8 +- .../js/compiled/chat/layouts/leave_message.js | 8 +- .../webim/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 +- .../webim/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/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 +- .../webim/js/compiled/chat/modules/chat.js | 8 +- .../js/compiled/chat/modules/leave_message.js | 8 +- .../webim/js/compiled/chat/modules/survey.js | 8 +- .../js/compiled/chat/regions/messages.js | 8 +- src/messenger/webim/js/compiled/chat_app.js | 400 +++++++++--------- .../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 +- .../webim/js/compiled/default/init.js | 8 +- .../webim/js/compiled/default/localization.js | 8 +- .../compiled/default/model_views/control.js | 8 +- .../compiled/default/model_views/message.js | 8 +- .../webim/js/compiled/default/models/base.js | 8 +- .../js/compiled/default/models/control.js | 8 +- .../js/compiled/default/models/message.js | 8 +- .../webim/js/compiled/default/models/page.js | 8 +- .../js/compiled/default/models/thread.js | 8 +- .../webim/js/compiled/default/models/user.js | 8 +- .../webim/js/compiled/default/server.js | 8 +- .../webim/js/compiled/default/utils.js | 8 +- .../webim/js/compiled/default_app.js | 136 +++--- src/messenger/webim/js/compiled/invite.js | 12 +- src/messenger/webim/js/compiled/invite/app.js | 8 +- .../invite/mibewapi_invite_interaction.js | 8 +- src/messenger/webim/js/compiled/invite_app.js | 16 +- src/messenger/webim/js/compiled/mibewapi.js | 8 +- src/messenger/webim/js/compiled/request.js | 8 +- src/messenger/webim/js/compiled/soundcheck.js | 7 + .../webim/js/compiled/thread_log/app.js | 8 +- .../collection_views/messages_collection.js | 8 +- .../thread_log/collections/messages.js | 8 +- .../webim/js/compiled/thread_log_app.js | 24 +- src/messenger/webim/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/messenger/webim/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 +- .../webim/js/compiled/users/models/agent.js | 8 +- .../js/compiled/users/models/queued_thread.js | 8 +- .../js/compiled/users/models/status_panel.js | 8 +- .../webim/js/compiled/users/models/visitor.js | 8 +- src/messenger/webim/js/compiled/users_app.js | 160 +++---- src/messenger/webim/js/source/brws.js | 8 + src/messenger/webim/js/source/chat/app.js | 10 +- .../collection_views/messages_collection.js | 10 +- .../collection_views/status_collection.js | 10 +- .../js/source/chat/collections/messages.js | 10 +- .../js/source/chat/collections/status.js | 10 +- src/messenger/webim/js/source/chat/init.js | 10 +- .../webim/js/source/chat/layouts/chat.js | 10 +- .../js/source/chat/layouts/leave_message.js | 10 +- .../webim/js/source/chat/layouts/survey.js | 10 +- .../source/chat/mibewapi_chat_interaction.js | 10 +- .../js/source/chat/model_views/avatar.js | 10 +- .../source/chat/model_views/controls/close.js | 10 +- .../chat/model_views/controls/history.js | 10 +- .../chat/model_views/controls/redirect.js | 10 +- .../chat/model_views/controls/refresh.js | 10 +- .../chat/model_views/controls/secure_mode.js | 10 +- .../chat/model_views/controls/send_mail.js | 10 +- .../source/chat/model_views/controls/sound.js | 10 +- .../chat/model_views/controls/user_name.js | 10 +- .../leave_message_description.js | 10 +- .../leave_message/leave_message_form.js | 10 +- .../leave_message_sent_description.js | 10 +- .../chat/model_views/messages/message.js | 10 +- .../chat/model_views/messages/message_form.js | 10 +- .../chat/model_views/status/base_status.js | 10 +- .../source/chat/model_views/status/message.js | 10 +- .../source/chat/model_views/status/typing.js | 10 +- .../model_views/survey/base_survey_form.js | 10 +- .../chat/model_views/survey/survey_form.js | 10 +- .../webim/js/source/chat/models/avatar.js | 10 +- .../webim/js/source/chat/models/chat_user.js | 10 +- .../js/source/chat/models/controls/close.js | 10 +- .../js/source/chat/models/controls/history.js | 10 +- .../source/chat/models/controls/redirect.js | 10 +- .../js/source/chat/models/controls/refresh.js | 10 +- .../chat/models/controls/secure_mode.js | 10 +- .../source/chat/models/controls/send_mail.js | 10 +- .../js/source/chat/models/controls/sound.js | 10 +- .../source/chat/models/controls/user_name.js | 10 +- .../leave_message/leave_message_form.js | 10 +- .../chat/models/messages/message_form.js | 10 +- .../source/chat/models/status/base_status.js | 10 +- .../js/source/chat/models/status/message.js | 10 +- .../js/source/chat/models/status/typing.js | 10 +- .../chat/models/survey/base_survey_form.js | 10 +- .../source/chat/models/survey/survey_form.js | 10 +- .../webim/js/source/chat/modules/chat.js | 10 +- .../js/source/chat/modules/leave_message.js | 10 +- .../webim/js/source/chat/modules/survey.js | 10 +- .../webim/js/source/chat/regions/messages.js | 10 +- .../collection_views/base_collection.js | 10 +- .../collection_views/controls_collection.js | 10 +- .../js/source/default/collections/controls.js | 10 +- .../js/source/default/handlebars_helpers.js | 8 +- src/messenger/webim/js/source/default/init.js | 10 +- .../webim/js/source/default/localization.js | 10 +- .../js/source/default/model_views/control.js | 10 +- .../js/source/default/model_views/message.js | 10 +- .../webim/js/source/default/models/base.js | 10 +- .../webim/js/source/default/models/control.js | 11 +- .../webim/js/source/default/models/message.js | 10 +- .../webim/js/source/default/models/page.js | 10 +- .../webim/js/source/default/models/thread.js | 8 +- .../webim/js/source/default/models/user.js | 10 +- .../webim/js/source/default/server.js | 8 +- .../webim/js/source/default/utils.js | 10 +- src/messenger/webim/js/source/invite.js | 8 + src/messenger/webim/js/source/invite/app.js | 10 +- .../invite/mibewapi_invite_interaction.js | 10 +- src/messenger/webim/js/source/mibewapi.js | 10 +- src/messenger/webim/js/source/request.js | 8 +- src/messenger/webim/js/source/soundcheck.js | 8 + .../webim/js/source/thread_log/app.js | 10 +- .../collection_views/messages_collection.js | 10 +- .../source/thread_log/collections/messages.js | 10 +- src/messenger/webim/js/source/users/app.js | 10 +- .../collection_views/agents_collection.js | 10 +- .../collection_views/threads_collection.js | 10 +- .../collection_views/visitors_collection.js | 10 +- .../js/source/users/collections/agents.js | 10 +- .../js/source/users/collections/threads.js | 10 +- .../js/source/users/collections/visitors.js | 10 +- src/messenger/webim/js/source/users/init.js | 10 +- .../users/mibewapi_users_interaction.js | 10 +- .../js/source/users/model_views/agent.js | 10 +- .../js/source/users/model_views/no_threads.js | 10 +- .../source/users/model_views/no_visitors.js | 10 +- .../source/users/model_views/queued_thread.js | 10 +- .../source/users/model_views/status_panel.js | 10 +- .../js/source/users/model_views/visitor.js | 10 +- .../webim/js/source/users/models/agent.js | 10 +- .../js/source/users/models/queued_thread.js | 8 +- .../js/source/users/models/status_panel.js | 10 +- .../webim/js/source/users/models/visitor.js | 10 +- .../js/templates/compiled/default_app.tpl.js | 8 +- .../js/templates/compiled/users_app.tpl.js | 8 +- .../dialogs/default/js/compiled/scripts.js | 7 + .../dialogs/default/js/compiled/templates.js | 8 +- .../dialogs/default/js/source/resize.js | 8 + 201 files changed, 1270 insertions(+), 1212 deletions(-) diff --git a/src/messenger/tools/compiled_templates_header.txt b/src/messenger/tools/compiled_templates_header.txt index 8fe1d6c9..5b585e04 100644 --- a/src/messenger/tools/compiled_templates_header.txt +++ b/src/messenger/tools/compiled_templates_header.txt @@ -1,6 +1,6 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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 */ diff --git a/src/messenger/webim/js/compiled/brws.js b/src/messenger/webim/js/compiled/brws.js index 34b72c55..a419e774 100644 --- a/src/messenger/webim/js/compiled/brws.js +++ b/src/messenger/webim/js/compiled/brws.js @@ -1 +1,8 @@ -var myAgent="",myVer=0,myRealAgent="";function detectAgent(){for(var a=["opera","msie","safari","firefox","netscape","mozilla"],b=navigator.userAgent.toLowerCase(),c=0;c$2");a=a.replace(/<span class="(.*?)">(.*?)<\/span>/g,'$2'); return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g,"
"))});b.registerHelper("L10n",function(a){return e.Localization.get(a)|| diff --git a/src/messenger/webim/js/compiled/default/init.js b/src/messenger/webim/js/compiled/default/init.js index 8ea74616..8fe6de9f 100644 --- a/src/messenger/webim/js/compiled/default/init.js +++ b/src/messenger/webim/js/compiled/default/init.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(a,b){b.Marionette.TemplateCache.prototype.compileTemplate=function(a){return Handlebars.compile(a)};a.Models={};a.Collections={};a.Views={};a.Objects={};a.Objects.Models={};a.Objects.Collections={}})(Mibew,Backbone); diff --git a/src/messenger/webim/js/compiled/default/localization.js b/src/messenger/webim/js/compiled/default/localization.js index 117016c7..3c1c8aa6 100644 --- a/src/messenger/webim/js/compiled/default/localization.js +++ b/src/messenger/webim/js/compiled/default/localization.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(b,d){b.Localization={};var c={};b.Localization.get=function(a){return!c.hasOwnProperty(a)?!1:c[a]};b.Localization.set=function(a){d.extend(c,a)}})(Mibew,_); diff --git a/src/messenger/webim/js/compiled/default/model_views/control.js b/src/messenger/webim/js/compiled/default/model_views/control.js index c7616a18..592fed24 100644 --- a/src/messenger/webim/js/compiled/default/model_views/control.js +++ b/src/messenger/webim/js/compiled/default/model_views/control.js @@ -1,9 +1,9 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(b,c,d){b.Views.Control=c.Marionette.ItemView.extend({template:d.templates.default_control,modelEvents:{change:"render"},events:{mouseover:"mouseOver",mouseleave:"mouseLeave"},attributes:function(){var a=[];a.push("control");this.className&&(a.push(this.className),this.className="");var b=this.getDashedControlType();b&&a.push(b);return{"class":a.join(" ")}},mouseOver:function(){var a=this.getDashedControlType();this.$el.addClass("active"+(a?"-"+a:""))},mouseLeave:function(){var a=this.getDashedControlType(); this.$el.removeClass("active"+(a?"-"+a:""))},getDashedControlType:function(){"undefined"==typeof this.dashedControlType&&(this.dashedControlType=b.Utils.toDashFormat(this.model.getModelType())||"");return this.dashedControlType}})})(Mibew,Backbone,Handlebars); diff --git a/src/messenger/webim/js/compiled/default/model_views/message.js b/src/messenger/webim/js/compiled/default/model_views/message.js index a37e0a1f..d20189f6 100644 --- a/src/messenger/webim/js/compiled/default/model_views/message.js +++ b/src/messenger/webim/js/compiled/default/model_views/message.js @@ -1,9 +1,9 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(c,d,e){var f={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},g=/[&<>'"`]/g;c.Views.Message=d.Marionette.ItemView.extend({template:e.templates.message,className:"message",modelEvents:{change:"render"},serializeData:function(){var a=this.model.toJSON(),b=this.model.get("kind");a.allowFormatting=b!=this.model.KIND_USER&&b!=this.model.KIND_AGENT;a.kindName=this.kindToString(b);a.message=this.escapeString(a.message);return a},kindToString:function(a){return a==this.model.KIND_USER? "user":a==this.model.KIND_AGENT?"agent":a==this.model.KIND_FOR_AGENT?"hidden":a==this.model.KIND_INFO?"inf":a==this.model.KIND_CONN?"conn":a==this.model.KIND_EVENTS?"event":a==this.model.KIND_PLUGIN?"plugin":""},escapeString:function(a){return a.replace(g,function(a){return f[a]||"&"})}})})(Mibew,Backbone,Handlebars); diff --git a/src/messenger/webim/js/compiled/default/models/base.js b/src/messenger/webim/js/compiled/default/models/base.js index 5c9156ad..4c4ff0c9 100644 --- a/src/messenger/webim/js/compiled/default/models/base.js +++ b/src/messenger/webim/js/compiled/default/models/base.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(a,b){a.Models.Base=b.Model.extend({getModelType:function(){return""}})})(Mibew,Backbone); diff --git a/src/messenger/webim/js/compiled/default/models/control.js b/src/messenger/webim/js/compiled/default/models/control.js index 6e6f0b1b..d7df45aa 100644 --- a/src/messenger/webim/js/compiled/default/models/control.js +++ b/src/messenger/webim/js/compiled/default/models/control.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(a){a.Models.Control=a.Models.Base.extend({defaults:{title:"",weight:0}})})(Mibew); diff --git a/src/messenger/webim/js/compiled/default/models/message.js b/src/messenger/webim/js/compiled/default/models/message.js index 5a94d6c5..196e5d5b 100644 --- a/src/messenger/webim/js/compiled/default/models/message.js +++ b/src/messenger/webim/js/compiled/default/models/message.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(a){a.Models.Message=a.Models.Base.extend({defaults:{kind:null,created:0,name:"",message:""},KIND_USER:1,KIND_AGENT:2,KIND_FOR_AGENT:3,KIND_INFO:4,KIND_CONN:5,KIND_EVENTS:6,KIND_PLUGIN:7})})(Mibew); diff --git a/src/messenger/webim/js/compiled/default/models/page.js b/src/messenger/webim/js/compiled/default/models/page.js index 59b9a3fc..f5136b9d 100644 --- a/src/messenger/webim/js/compiled/default/models/page.js +++ b/src/messenger/webim/js/compiled/default/models/page.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(a,b){a.Models.Page=b.Model.extend()})(Mibew,Backbone); diff --git a/src/messenger/webim/js/compiled/default/models/thread.js b/src/messenger/webim/js/compiled/default/models/thread.js index 39f88cbd..60d5b2e7 100644 --- a/src/messenger/webim/js/compiled/default/models/thread.js +++ b/src/messenger/webim/js/compiled/default/models/thread.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(a){a.Models.Thread=a.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})})(Mibew); diff --git a/src/messenger/webim/js/compiled/default/models/user.js b/src/messenger/webim/js/compiled/default/models/user.js index 0e17dc79..4573bda3 100644 --- a/src/messenger/webim/js/compiled/default/models/user.js +++ b/src/messenger/webim/js/compiled/default/models/user.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(a){a.Models.User=a.Models.Base.extend({defaults:{isAgent:!1,name:""}})})(Mibew); diff --git a/src/messenger/webim/js/compiled/default/server.js b/src/messenger/webim/js/compiled/default/server.js index 25248be3..f7a4dfc0 100644 --- a/src/messenger/webim/js/compiled/default/server.js +++ b/src/messenger/webim/js/compiled/default/server.js @@ -1,9 +1,9 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(b,f,g,e){b.Server=function(a){this.updateTimer=null;this.options=e.extend({url:"",requestsFrequency:2,reconnectPause:1,onTimeout:function(){},onTransportError:function(){},onCallError:function(){},onUpdateError:function(){},onResponseError:function(){}},a);this.callbacks={};this.callPeriodically={};this.callPeriodicallyLastId=0;this.ajaxRequest=null;this.buffer=[];this.functions={};this.functionsLastId=0;this.mibewAPI=new f(new this.options.interactionType)};b.Server.prototype.callFunctions= function(a,c,b){try{if(!(a instanceof Array))throw Error("The first arguments must be an array");for(var d=0;d()[\]\\.,;:\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(a)}; b.Utils.playSound=function(a){c("body").append('')}})(Mibew,$); diff --git a/src/messenger/webim/js/compiled/default_app.js b/src/messenger/webim/js/compiled/default_app.js index 835fb57b..79521223 100644 --- a/src/messenger/webim/js/compiled/default_app.js +++ b/src/messenger/webim/js/compiled/default_app.js @@ -1,41 +1,41 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.default_control=k(function(a,b,e,h,f){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||a.helpers;f=f||{};h=this.escapeExpression;a="";(e=e.title)?e=e.call(b,{hash:{},data:f}):(e=b.title,e="function"===typeof e?e.apply(b):e);return a+=h(e)+""});l.message=k(function(a,b,e,h,f){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||a.helpers;f=f||{};var c,g=this.escapeExpression,j=e.helperMissing;a={hash:{},data:f}; a=""+(g((c=e.formatTime,c?c.call(b,b.created,a):j.call(b,"formatTime",b.created,a)))+"\n");if((c=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d;b="";(d=e.name)?d=d.call(a,{hash:{},data:c}):(d=a.name,d="function"===typeof d?d.apply(a):d);return b+=g(d)+": "},f),data:f}))||0===c)a+=c;a+="\n";if((c=e["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a,b){var c,d;d={hash:{},data:b};return g((c=e.apply,c?c.call(a,a.message,"urlReplace, nl2br",d):j.call(a,"apply",a.message,"urlReplace, nl2br",d)))},f),fn:this.program(3,function(a,c){var b,d;d={hash:{},data:c};return g((b=e.apply,b?b.call(a,a.message,"urlReplace, nl2br, allowTags",d):j.call(a,"apply",a.message,"urlReplace, nl2br, allowTags", d)))},f),data:f}))||0===c)a+=c;return a+="
"})})(); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a,b){b.Marionette.TemplateCache.prototype.compileTemplate=function(a){return Handlebars.compile(a)};a.Models={};a.Collections={};a.Views={};a.Objects={};a.Objects.Models={};a.Objects.Collections={}})(Mibew,Backbone); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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,b){b.registerHelper("apply",function(a,c){var f=a,e=/^[0-9A-z_]+$/;c=c.split(/\s*,\s*/);for(var d in c)if(c.hasOwnProperty(d)&&e.test(c[d])){if("function"!=typeof b.helpers[c[d]])throw Error("Unregistered helper '"+c[d]+"'!");f=b.helpers[c[d]](f).toString()}return new b.SafeString(f)});b.registerHelper("allowTags",function(a){a=a.replace(/<(span|strong)>(.*?)<\/\1>/g,"<$1>$2");a=a.replace(/<span class="(.*?)">(.*?)<\/span>/g,'$2'); return new b.SafeString(a)});b.registerHelper("formatTime",function(a){var c=new Date(1E3*a);a=c.getHours().toString();var b=c.getMinutes().toString(),c=c.getSeconds().toString();return(10>a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g,"
"))});b.registerHelper("L10n",function(a){return e.Localization.get(a)|| ""})})(Mibew,Handlebars); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(b,d){b.Localization={};var c={};b.Localization.get=function(a){return!c.hasOwnProperty(a)?!1:c[a]};b.Localization.set=function(a){d.extend(c,a)}})(Mibew,_); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(b,f,g,e){b.Server=function(a){this.updateTimer=null;this.options=e.extend({url:"",requestsFrequency:2,reconnectPause:1,onTimeout:function(){},onTransportError:function(){},onCallError:function(){},onUpdateError:function(){},onResponseError:function(){}},a);this.callbacks={};this.callPeriodically={};this.callPeriodicallyLastId=0;this.ajaxRequest=null;this.buffer=[];this.functions={};this.functionsLastId=0;this.mibewAPI=new f(new this.options.interactionType)};b.Server.prototype.callFunctions= function(a,c,b){try{if(!(a instanceof Array))throw Error("The first arguments must be an array");for(var d=0;d()[\]\\.,;:\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(a)}; b.Utils.playSound=function(a){c("body").append('')}})(Mibew,$); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a,b){a.Models.Base=b.Model.extend({getModelType:function(){return""}})})(Mibew,Backbone); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a){a.Models.Control=a.Models.Base.extend({defaults:{title:"",weight:0}})})(Mibew); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a){a.Models.Message=a.Models.Base.extend({defaults:{kind:null,created:0,name:"",message:""},KIND_USER:1,KIND_AGENT:2,KIND_FOR_AGENT:3,KIND_INFO:4,KIND_CONN:5,KIND_EVENTS:6,KIND_PLUGIN:7})})(Mibew); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a,b){a.Models.Page=b.Model.extend()})(Mibew,Backbone); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a){a.Models.Thread=a.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})})(Mibew); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a){a.Models.User=a.Models.Base.extend({defaults:{isAgent:!1,name:""}})})(Mibew); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a,b){a.Collections.Controls=b.Collection.extend({comparator:function(a){return a.get("weight")}})})(Mibew,Backbone); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(b,c,d){b.Views.Control=c.Marionette.ItemView.extend({template:d.templates.default_control,modelEvents:{change:"render"},events:{mouseover:"mouseOver",mouseleave:"mouseLeave"},attributes:function(){var a=[];a.push("control");this.className&&(a.push(this.className),this.className="");var b=this.getDashedControlType();b&&a.push(b);return{"class":a.join(" ")}},mouseOver:function(){var a=this.getDashedControlType();this.$el.addClass("active"+(a?"-"+a:""))},mouseLeave:function(){var a=this.getDashedControlType(); this.$el.removeClass("active"+(a?"-"+a:""))},getDashedControlType:function(){"undefined"==typeof this.dashedControlType&&(this.dashedControlType=b.Utils.toDashFormat(this.model.getModelType())||"");return this.dashedControlType}})})(Mibew,Backbone,Handlebars); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(c,d,e){var f={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},g=/[&<>'"`]/g;c.Views.Message=d.Marionette.ItemView.extend({template:e.templates.message,className:"message",modelEvents:{change:"render"},serializeData:function(){var a=this.model.toJSON(),b=this.model.get("kind");a.allowFormatting=b!=this.model.KIND_USER&&b!=this.model.KIND_AGENT;a.kindName=this.kindToString(b);a.message=this.escapeString(a.message);return a},kindToString:function(a){return a==this.model.KIND_USER? "user":a==this.model.KIND_AGENT?"agent":a==this.model.KIND_FOR_AGENT?"hidden":a==this.model.KIND_INFO?"inf":a==this.model.KIND_CONN?"conn":a==this.model.KIND_EVENTS?"event":a==this.model.KIND_PLUGIN?"plugin":""},escapeString:function(a){return a.replace(g,function(a){return f[a]||"&"})}})})(Mibew,Backbone,Handlebars); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(d,b,f){var e=function(a,b,c){c=f.extend({model:a},c);return"function"!=typeof a.getModelType?new b(c):(a=a.getModelType())&&d.Views[a]?new d.Views[a](c):new b(c)};d.Views.CollectionBase=b.Marionette.CollectionView.extend({itemView:b.Marionette.ItemView,buildItemView:e});d.Views.CompositeBase=b.Marionette.CompositeView.extend({buildItemView:e,renderCollection:function(){var a=Array.prototype.slice.apply(arguments);b.Marionette.CollectionView.prototype.render.apply(this,a)}})})(Mibew,Backbone, _); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a){a.Views.ControlsCollection=a.Views.CollectionBase.extend({itemView:a.Views.Control,className:"controls-collection"})})(Mibew); diff --git a/src/messenger/webim/js/compiled/invite.js b/src/messenger/webim/js/compiled/invite.js index 1593f86b..ddf2b627 100644 --- a/src/messenger/webim/js/compiled/invite.js +++ b/src/messenger/webim/js/compiled/invite.js @@ -1,4 +1,10 @@ +/* + Copyright 2005-2013 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 style=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(style);window.createPopup||(style.appendChild(document.createTextNode("")),style.setAttribute("type","text/css"));var sheet=document.styleSheets[document.styleSheets.length-1];if(window.createPopup)sheet.cssText=mibewInviteStyle;else{var node=document.createTextNode(mibewInviteStyle);style.appendChild(node)} -function mibewInviteOnResponse(a){var c=a.invitation.message,b=a.invitation.operator,d=a.invitation.avatar,a='
';b&&(a+='

'+b+"

");d&&(a+=''+b+'');a=a+('

'+c+"

")+'
'; if(c=document.getElementById("mibewinvitation"))c.innerHTML=a} -function mibewHideInvitation(){if(document.getElementById("mibewinvitationpopup"))document.getElementById("mibewinvitationpopup").style.display="none"} -function mibewOpenAgent(){document.getElementById("mibewAgentButton")&&(document.getElementById("mibewAgentButton").onclick(),mibewHideInvitation())}; \ No newline at end of file +function mibewInviteOnResponse(a){var c=a.invitation.message,b=a.invitation.operator,d=a.invitation.avatar;a='
';b&&(a+='

'+b+"

");d&&(a+=''+b+'');a=a+('

'+c+"

")+'
'; +if(c=document.getElementById("mibewinvitation"))c.innerHTML=a}function mibewHideInvitation(){document.getElementById("mibewinvitationpopup")&&(document.getElementById("mibewinvitationpopup").style.display="none")}function mibewOpenAgent(){document.getElementById("mibewAgentButton")&&(document.getElementById("mibewAgentButton").onclick(),mibewHideInvitation())}; diff --git a/src/messenger/webim/js/compiled/invite/app.js b/src/messenger/webim/js/compiled/invite/app.js index f9ebd182..7ec43fa6 100644 --- a/src/messenger/webim/js/compiled/invite/app.js +++ b/src/messenger/webim/js/compiled/invite/app.js @@ -1,9 +1,9 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(c,a,e){a=new a.Marionette.Application;a.addInitializer(function(a){var d=new c.Server(e.extend({interactionType:MibewAPIInviteInteraction},a.server));d.callFunctionsPeriodically(function(){return[{"function":"invitationState",arguments:{"return":{invited:"invited",threadId:"threadId"},references:{},visitorId:a.visitorId}}]},function(b){0==b.errorCode&&(b.invited||window.close(),b.threadId&&(window.name="ImCenter"+b.threadId,window.location=a.chatLink+"?thread="+b.threadId))});d.runUpdater(); c.Objects.server=d});c.Application=a})(Mibew,Backbone,_); diff --git a/src/messenger/webim/js/compiled/invite/mibewapi_invite_interaction.js b/src/messenger/webim/js/compiled/invite/mibewapi_invite_interaction.js index 6d58b39e..8d4b1267 100644 --- a/src/messenger/webim/js/compiled/invite/mibewapi_invite_interaction.js +++ b/src/messenger/webim/js/compiled/invite/mibewapi_invite_interaction.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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 */ MibewAPIInviteInteraction=function(){this.obligatoryArguments={"*":{"return":{},references:{},visitorId:null},result:{errorCode:0}};this.reservedFunctionNames=["result"]};MibewAPIInviteInteraction.prototype=new MibewAPIInteraction; diff --git a/src/messenger/webim/js/compiled/invite_app.js b/src/messenger/webim/js/compiled/invite_app.js index f41ae113..040fe578 100644 --- a/src/messenger/webim/js/compiled/invite_app.js +++ b/src/messenger/webim/js/compiled/invite_app.js @@ -1,15 +1,15 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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 */ MibewAPIInviteInteraction=function(){this.obligatoryArguments={"*":{"return":{},references:{},visitorId:null},result:{errorCode:0}};this.reservedFunctionNames=["result"]};MibewAPIInviteInteraction.prototype=new MibewAPIInteraction; /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(c,a,e){a=new a.Marionette.Application;a.addInitializer(function(a){var d=new c.Server(e.extend({interactionType:MibewAPIInviteInteraction},a.server));d.callFunctionsPeriodically(function(){return[{"function":"invitationState",arguments:{"return":{invited:"invited",threadId:"threadId"},references:{},visitorId:a.visitorId}}]},function(b){0==b.errorCode&&(b.invited||window.close(),b.threadId&&(window.name="ImCenter"+b.threadId,window.location=a.chatLink+"?thread="+b.threadId))});d.runUpdater(); c.Objects.server=d});c.Application=a})(Mibew,Backbone,_); diff --git a/src/messenger/webim/js/compiled/mibewapi.js b/src/messenger/webim/js/compiled/mibewapi.js index 988493e5..443c7ac7 100644 --- a/src/messenger/webim/js/compiled/mibewapi.js +++ b/src/messenger/webim/js/compiled/mibewapi.js @@ -1,9 +1,9 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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 MibewAPI(a){this.protocolVersion="1.0";if("object"!=typeof a||!(a instanceof MibewAPIInteraction))throw Error("Wrong interaction type");this.interaction=a} MibewAPI.prototype.checkFunction=function(a,b){if("undefined"==typeof a["function"]||""==a["function"])throw Error("Cannot call for function with no name");if(b)for(var c=0;cb?"0"+b:b);d.push(10>a?"0"+a:a);e(this).html(d.join(":"))}})}})(Mibew,jQuery); diff --git a/src/messenger/webim/js/compiled/users/mibewapi_users_interaction.js b/src/messenger/webim/js/compiled/users/mibewapi_users_interaction.js index ee5b7aca..7c3956f5 100644 --- a/src/messenger/webim/js/compiled/users/mibewapi_users_interaction.js +++ b/src/messenger/webim/js/compiled/users/mibewapi_users_interaction.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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 */ MibewAPIUsersInteraction=function(){this.obligatoryArguments={"*":{agentId:null,"return":{},references:{}},result:{errorCode:0}};this.reservedFunctionNames=["result"]};MibewAPIUsersInteraction.prototype=new MibewAPIInteraction; diff --git a/src/messenger/webim/js/compiled/users/model_views/agent.js b/src/messenger/webim/js/compiled/users/model_views/agent.js index c8a12a30..3d4b1361 100644 --- a/src/messenger/webim/js/compiled/users/model_views/agent.js +++ b/src/messenger/webim/js/compiled/users/model_views/agent.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(b,c,d){b.Views.Agent=c.Marionette.ItemView.extend({template:d.templates.agent,tagName:"span",className:"agent",modelEvents:{change:"render"},initialize:function(){this.isModelLast=this.isModelFirst=!1},serializeData:function(){var a=this.model.toJSON();a.isFirst=this.isModelFirst;a.isLast=this.isModelLast;return a}})})(Mibew,Backbone,Handlebars); diff --git a/src/messenger/webim/js/compiled/users/model_views/no_threads.js b/src/messenger/webim/js/compiled/users/model_views/no_threads.js index 53049710..1c5ed31d 100644 --- a/src/messenger/webim/js/compiled/users/model_views/no_threads.js +++ b/src/messenger/webim/js/compiled/users/model_views/no_threads.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(a,b,c){a.Views.NoThreads=b.Marionette.ItemView.extend({template:c.templates.no_threads,initialize:function(a){this.tagName=a.tagName}})})(Mibew,Backbone,Handlebars); diff --git a/src/messenger/webim/js/compiled/users/model_views/no_visitors.js b/src/messenger/webim/js/compiled/users/model_views/no_visitors.js index 84aa8a2e..2d2197fb 100644 --- a/src/messenger/webim/js/compiled/users/model_views/no_visitors.js +++ b/src/messenger/webim/js/compiled/users/model_views/no_visitors.js @@ -1,8 +1,8 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(a,b,c){a.Views.NoVisitors=b.Marionette.ItemView.extend({template:c.templates.no_visitors,initialize:function(a){this.tagName=a.tagName}})})(Mibew,Backbone,Handlebars); diff --git a/src/messenger/webim/js/compiled/users/model_views/queued_thread.js b/src/messenger/webim/js/compiled/users/model_views/queued_thread.js index 3f76310f..780e832f 100644 --- a/src/messenger/webim/js/compiled/users/model_views/queued_thread.js +++ b/src/messenger/webim/js/compiled/users/model_views/queued_thread.js @@ -1,9 +1,9 @@ /* - This file is part of Mibew Messenger project. - http://mibew.org + Copyright 2005-2013 the original author or authors. - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + 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(d,e){d.Views.QueuedThread=d.Views.CompositeBase.extend({template:e.templates.queued_thread,itemView:d.Views.Control,itemViewContainer:".thread-controls",className:"thread",modelEvents:{change:"render"},events:{"click .open-dialog":"openDialog","click .view-control":"viewDialog","click .track-control":"showTrack","click .ban-control":"showBan","click .geo-link":"showGeoInfo","click .first-message a":"showFirstMessage"},initialize:function(){this.lastStyles=[]},serializeData:function(){var a= this.model,b=d.Objects.Models.page,c=a.toJSON();c.stateDesc=this.stateToDesc(a.get("state"));c.chatting=a.get("state")==a.STATE_CHATTING;c.tracked=b.get("showVisitors");c.firstMessage&&(c.firstMessagePreview=30= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f=e.helperMissing,h=this.escapeExpression;b='';(a=e.name)?a=a.call(c,{hash:{},data:d}):(a=c.name,a="function"===typeof a?a.apply(c):a);b+=h(a);if((a=e.unless.call(c,c.isLast,{hash:{},inverse:this.noop,fn:this.program(9, @@ -32,98 +32,98 @@ a={hash:{},data:d};b='\n\n \n \n \n \n \n\n\n\n\n
\n ";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.firsttimeonsite",a):h.call(c,"L10n","visitors.table.head.firsttimeonsite",a)))+"";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.lasttimeonsite",a):h.call(c,"L10n","visitors.table.head.lasttimeonsite",a)))+"";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.invited.by",a):h.call(c,"L10n","visitors.table.head.invited.by",a)))+"";a= {hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.invitationtime",a):h.call(c,"L10n","visitors.table.head.invitationtime",a)))+"";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.invitations",a):h.call(c,"L10n","visitors.table.head.invitations",a)))+"";a={hash:{},data:d};return b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.etc",a):h.call(c,"L10n","visitors.table.head.etc",a)))+'
'})})(); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a,e){a.Regions={};a.Popup={};a.Popup.open=function(b,a,g){b=window.open(b,a,g);b.focus();b.opener=window};a.Utils.updateTimers=function(a,f){a.find(f).each(function(){var a=e(this).data("timestamp");if(a){var c=Math.round((new Date).getTime()/1E3)-a,a=c%60,b=Math.floor(c/60)%60,c=Math.floor(c/3600),d=[];0b?"0"+b:b);d.push(10>a?"0"+a:a);e(this).html(d.join(":"))}})}})(Mibew,jQuery); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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 */ MibewAPIUsersInteraction=function(){this.obligatoryArguments={"*":{agentId:null,"return":{},references:{}},result:{errorCode:0}};this.reservedFunctionNames=["result"]};MibewAPIUsersInteraction.prototype=new MibewAPIInteraction; /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a,b){a.Models.Agent=a.Models.User.extend({defaults:b.extend({},a.Models.User.prototype.defaults,{id:null,isAgent:!0,away:!1}),away:function(){this.setAvailability(!1)},available:function(){this.setAvailability(!0)},setAvailability:function(c){var b=this;a.Objects.server.callFunctions([{"function":c?"available":"away",arguments:{agentId:this.id,references:{},"return":{}}}],function(a){0==a.errorCode&&b.set({away:!c})},!0)}})})(Mibew,_); /* - This file is part of Mibew Messenger project. - http://mibew.org - Copyright (c) 2005-2011 Mibew Messenger Community - License: http://mibew.org/license.php + Copyright 2005-2013 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(a,c){var b=[],f=a.Models.QueuedThread=a.Models.Thread.extend({defaults:c.extend({},a.Models.Thread.prototype.defaults,{controls:null,userName:"",userIp:"",remote:"",userAgent:"",agentName:"",canOpen:!1,canView:!1,canBan:!1,ban:!1,totalTime:0,waitingTime:0,firstMessage:null}),initialize:function(){for(var e=[],b=f.getControls(),d=0,c=b.length;d= 1.0.0-rc.4"];e=e||a.helpers;f=f||{};h=this.escapeExpression;a="";(e=e.title)?e=e.call(b,{hash:{},data:f}):(e=b.title,e="function"===typeof e?e.apply(b):e);return a+=h(e)+""});l.message=k(function(a,b,e,h,f){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||a.helpers;f=f||{};var c,g=this.escapeExpression,j=e.helperMissing;a={hash:{},data:f}; a=""+(g((c=e.formatTime,c?c.call(b,b.created,a):j.call(b,"formatTime",b.created,a)))+"\n");if((c=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d;b="";(d=e.name)?d=d.call(a,{hash:{},data:c}):(d=a.name,d="function"===typeof d?d.apply(a):d);return b+=g(d)+": "},f),data:f}))||0===c)a+=c;a+="\n';(a=e.name)?a=a.call(c,{hash:{},data:d}):(a=c.name,a="function"===typeof a?a.apply(c):a);b+=h(a);if((a=e.unless.call(c,c.isLast,{hash:{},inverse:this.noop,fn:this.program(9, diff --git a/src/messenger/webim/styles/dialogs/default/js/compiled/scripts.js b/src/messenger/webim/styles/dialogs/default/js/compiled/scripts.js index d68ab19d..f5328cfe 100644 --- a/src/messenger/webim/styles/dialogs/default/js/compiled/scripts.js +++ b/src/messenger/webim/styles/dialogs/default/js/compiled/scripts.js @@ -1,2 +1,9 @@ +/* + Copyright 2005-2013 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(j,b){var e=!1,f,h=function(){if(0!=b("#messages-region").size()){var a=b("#messages-region"),c=b("#avatar-region");if(!1===e){var d=0;b("body > *").each(function(){var a=b(this),c=a.offset(),a=a.height();d= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g=this.escapeExpression;return(a=f["if"].call(d,d.imageLink,{hash:{},inverse:this.program(3,function(){return'
'},c),fn:this.program(1,function(a,b){var d,c;d=''},c),data:c}))||0===a?a:""});s.chat_controls_close=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g;a=f.helperMissing;b=this.escapeExpression;c={hash:{},data:c};return d='
')});s.chat_controls_history=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g;a=f.helperMissing; diff --git a/src/messenger/webim/styles/dialogs/default/js/source/resize.js b/src/messenger/webim/styles/dialogs/default/js/source/resize.js index f5b4e93b..1f210343 100644 --- a/src/messenger/webim/styles/dialogs/default/js/source/resize.js +++ b/src/messenger/webim/styles/dialogs/default/js/source/resize.js @@ -1,3 +1,11 @@ +/** + * @preserve Copyright 2005-2013 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(Mibew, $){ /**